/* =========================================================
   SynerApp – Landing page
   Nowoczesny, czysty, korporacyjny styl
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Kolory marki */
  --navy-900: #0A2540;
  --navy-800: #0E2E52;
  --navy-700: #14395f;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;
  --cyan-500: #06B6D4;

  /* Neutralne */
  --ink: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* Semantyczne */
  --ok: #16A34A;
  --warn: #D97706;

  /* Typografia */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Rytm i kształty */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .18);
  --container: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2rem);

  --gradient: linear-gradient(120deg, var(--blue-600), var(--cyan-500));
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--slate-50); }
.section--dark { background: var(--navy-900); color: var(--slate-100); }

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-lead { color: var(--slate-500); font-size: 1.08rem; }
.section-lead--light { color: var(--slate-300); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin: 0 0 .75rem;
}
.eyebrow--light { color: var(--cyan-500); }

.grid { display: grid; gap: clamp(1.2rem, 3vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(37, 99, 235, .38); }
.btn-ghost { background: var(--white); color: var(--navy-900); border-color: var(--slate-200); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--slate-300); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; }
.nav-menu a { color: var(--slate-700); font-weight: 500; font-size: .96rem; }
.nav-menu a:hover { color: var(--blue-600); text-decoration: none; }
.nav-cta {
  background: var(--gradient); color: #fff !important; padding: .5rem 1.1rem; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px;
}
.nav-toggle:hover { background: var(--slate-100); }
.nav-toggle-bar { height: 2.5px; width: 100%; background: var(--navy-900); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(6, 182, 212, .12), transparent 60%),
    radial-gradient(900px 500px at 5% 10%, rgba(37, 99, 235, .10), transparent 55%),
    var(--white);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-lead { font-size: 1.15rem; color: var(--slate-700); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.75rem 0 1.5rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; }
.hero-badges li {
  font-size: .85rem; font-weight: 500; color: var(--slate-700);
  background: var(--slate-100); border: 1px solid var(--slate-200);
  padding: .4rem .8rem; border-radius: 999px;
}

/* Hero visual */
.hero-visual { position: relative; min-height: 300px; }
.stat-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.4rem;
}
.stat-card--main { position: relative; z-index: 2; }
.stat-label { font-size: .8rem; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; }
.stat-bars { display: flex; align-items: flex-end; gap: .5rem; height: 130px; margin: 1rem 0 .75rem; }
.stat-bars span {
  flex: 1; height: var(--h); min-height: 8px; border-radius: 6px 6px 3px 3px;
  background: var(--gradient); opacity: .9;
  animation: grow .9s cubic-bezier(.2, .7, .3, 1) both;
}
.stat-bars span:nth-child(2) { animation-delay: .08s; }
.stat-bars span:nth-child(3) { animation-delay: .16s; }
.stat-bars span:nth-child(4) { animation-delay: .24s; }
.stat-bars span:nth-child(5) { animation-delay: .32s; }
.stat-bars span:nth-child(6) { animation-delay: .40s; }
@keyframes grow { from { height: 0; opacity: 0; } }
.stat-foot { font-size: .85rem; color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.stat-foot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }

.stat-card--float { position: absolute; padding: .9rem 1.1rem; z-index: 3; text-align: left; }
.stat-card--a { top: -18px; right: -10px; }
.stat-card--b { bottom: -22px; left: -14px; }
.stat-big { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.stat-card--a .stat-big { color: var(--ok); }
.stat-small { font-size: .78rem; color: var(--slate-500); }

/* ---------- Package cards ---------- */
.package-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.package-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--white);
  background: var(--gradient); margin-bottom: 1.1rem;
}
.package-card p { color: var(--slate-500); }

.check-list { list-style: none; padding: 0; margin: 1rem 0 1.3rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; color: var(--slate-700); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Feature split ---------- */
.feature-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-split--reverse .feature-copy { order: 2; }
.feature-points { margin-top: 1.6rem; }
.point h4 { margin-bottom: .3rem; color: var(--navy-800); }
.point p { color: var(--slate-500); font-size: .96rem; margin: 0; }

/* Panel mock */
.feature-visual { }
.panel {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel-row {
  display: grid; grid-template-columns: 1.4fr .8fr 1fr; align-items: center; gap: 1rem;
  padding: .85rem 1.2rem; border-bottom: 1px solid var(--slate-100); font-size: .95rem;
}
.panel-row:last-of-type { border-bottom: 0; }
.panel-head { background: var(--slate-50); font-weight: 700; color: var(--slate-500); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.tag { justify-self: start; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: rgba(22,163,74,.12); color: var(--ok); }
.tag-warn { background: rgba(217,119,6,.14); color: var(--warn); }
.panel-foot {
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.2rem; background: var(--navy-900); color: var(--slate-100); font-size: .85rem;
}
.panel-foot .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan-500); box-shadow: 0 0 0 4px rgba(6,182,212,.25); flex: none; }

/* ---------- Model cards / steps ---------- */
.model-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm); position: relative;
}
.model-num {
  font-size: 2.2rem; font-weight: 800; color: var(--blue-100);
  display: block; line-height: 1; margin-bottom: .5rem;
}
.model-card p { color: var(--slate-500); margin: 0; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.8rem);
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.step-dot {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(37,99,235,.3);
}
.step p { color: var(--slate-700); font-size: .92rem; margin: 0; }

/* ---------- Benefits ---------- */
.benefit {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit h4 { color: var(--navy-800); }
.benefit p { color: var(--slate-500); margin: 0; font-size: .96rem; }

/* ---------- Security (dark) ---------- */
.section--dark h2 { color: #fff; }
.security-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.security-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.security-list li {
  background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; display: flex; flex-direction: column;
}
.security-list strong { color: #fff; font-size: 1.05rem; }
.security-list span { color: var(--slate-300); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta-section { background: linear-gradient(160deg, var(--slate-50), var(--blue-100)); }
.cta-inner { max-width: 680px; margin-inline: auto; text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin: 1.75rem 0 1rem; }
.cta-note { color: var(--slate-500); font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand img { filter: brightness(0) invert(1); opacity: .95; margin-bottom: .8rem; }
.footer-brand p { color: var(--slate-300); max-width: 34ch; font-size: .95rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h5 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.footer-nav a { display: block; color: var(--slate-300); font-size: .95rem; margin-bottom: .5rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--navy-700);
  font-size: .85rem; color: var(--slate-500);
}
.footer-bottom a { color: var(--slate-300); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split--reverse .feature-copy { order: 0; }
  .security-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-200);
    padding: .5rem var(--gutter) 1.2rem; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .28s ease; visibility: hidden;
  }
  .nav-menu.open { transform: translateY(0); visibility: visible; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--slate-100); }
  .nav-cta { text-align: center; margin-top: .6rem; border-bottom: 0 !important; }
  .nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { justify-content: center; text-align: center; }
}
