/* ============================================================
   Aurora Consensus AI – strona marketingowa
   Light theme (à la Gemini), gradient Aurory #4fadb5 → #084051
   Fonts: Plus Jakarta Sans (sans, szeroki) + Newsreader (serif italic, akcenty)
   ============================================================ */

:root {
  /* Brand */
  --teal: #4fadb5;
  --teal-deep: #084051;
  --teal-mid: #2c8a93;
  --grad: linear-gradient(135deg, #5cc0c8 0%, #2c8a93 45%, #084051 100%);
  --grad-soft: linear-gradient(160deg, #f3fbfb 0%, #eaf6f7 100%);

  /* Ink & surfaces */
  --ink: #0c2429;
  --ink-2: #2a4a50;
  --muted: #5e7a7f;
  --bg: #ffffff;
  --bg-soft: #f5fafb;
  --card: #ffffff;
  --line: rgba(8, 64, 81, 0.10);
  --line-strong: rgba(8, 64, 81, 0.16);

  /* Effects */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(8, 64, 81, .06), 0 4px 16px rgba(8, 64, 81, .05);
  --shadow: 0 8px 30px rgba(8, 64, 81, .08), 0 2px 8px rgba(8, 64, 81, .05);
  --shadow-lg: 0 24px 60px rgba(8, 64, 81, .14);

  --container: 1180px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-mid);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -0.01em;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.section-head { max-width: 640px; margin: 0 auto 56px; }
.section-head.left { margin-inline: 0; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(44, 138, 147, .35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(44, 138, 147, .45); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-soft { background: var(--bg-soft); color: var(--teal-deep); border-color: var(--line); }
.btn-soft:hover { border-color: var(--teal); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 18px; letter-spacing: -0.02em; line-height: 1.05; }
.brand-sub { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-mid); }
.nav { display: flex; gap: 6px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-deep); background: var(--bg-soft); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 720px; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(92, 192, 200, .22), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(8, 64, 81, .08), transparent 70%);
}
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { margin: 22px 0 0; }
.hero .lead { margin: 24px auto 0; max-width: 660px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-visual {
  margin: 64px auto 0; max-width: 980px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-visual .bar { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.hero-visual .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.hero-visual .stage { padding: 28px; display: grid; gap: 14px; background: linear-gradient(180deg, #fff, #fbfdfd); }
.chat-row { display: flex; gap: 12px; align-items: flex-start; }
.chat-av { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--grad); }
.chat-av.user { background: #e7f1f2; }
.chat-bubble { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 14.5px; color: var(--ink-2); }
.chat-bubble.out { background: #fff; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; color: var(--teal-deep); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }

/* ---------- Marquee / trust ---------- */
.trust { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust p { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.trust-logos { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; opacity: .65; font-weight: 700; font-size: 18px; color: var(--ink-2); letter-spacing: -.02em; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--teal-deep); margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-serif); font-style: italic; font-size: 30px; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grad); color: #fff; padding: 64px 48px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 80% -10%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 16px auto 0; max-width: 520px; }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .hero-actions { margin-top: 30px; }

/* ---------- Pricing ---------- */
.price-toggle { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; margin-top: 28px; }
.price-toggle button { border: none; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.price-toggle button.active { background: #fff; color: var(--teal-deep); box-shadow: var(--shadow-sm); }
.price-toggle .save { font-size: 11px; color: var(--teal-mid); margin-left: 6px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 48px auto 0; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.plan.featured { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); position: relative; }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 16px; border-radius: 999px; }
.plan-name { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--teal-mid); }
.plan-desc { color: var(--muted); font-size: 15px; margin-top: 6px; min-height: 44px; }
.plan-price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; }
.plan-price .per { color: var(--muted); font-size: 15px; font-weight: 500; }
.plan .btn { margin: 22px 0 26px; }
.plan-feats { list-style: none; padding: 0; display: grid; gap: 13px; margin-top: auto; }
.plan-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan-feats li svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 1px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--teal); transition: transform .2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- Legal / prose ---------- */
.page-hero { padding: 72px 0 40px; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-hero p { margin-top: 14px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.18rem; margin: 28px 0 10px; }
.prose p { margin: 12px 0; color: var(--ink-2); }
.prose ul { margin: 12px 0; padding-left: 22px; color: var(--ink-2); }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); }
.prose .meta { color: var(--muted); font-size: 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; }
.note-box { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .item:last-child { border-bottom: none; }
.contact-info .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal-deep); flex: none; }
.contact-info .item h4 { font-size: 15px; }
.contact-info .item a, .contact-info .item span { color: var(--muted); font-size: 15px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79,173,181,.18); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .container { padding-top: 64px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 280px; }
.footer-col h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-mid); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--teal-deep); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: 13.5px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { color: var(--muted); margin-top: 4px; font-size: 15px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow);
  }
  .site-header.open .header-cta { display: flex; position: absolute; top: 72px; left: 0; right: 0; transform: translateY(190px); flex-direction: column; padding: 0 24px 20px; background: #fff; }
  .grid-3, .steps, .stats, .plans, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
