/* === Tokens === */
:root {
  --color-primary: #0F172A;
  --color-secondary: #334155;
  --color-accent: #0369A1;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-border: rgba(2, 6, 23, 0.12);
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 20px rgba(2, 6, 23, 0.06);
  --shadow-lg: 0 30px 60px -30px rgba(2, 6, 23, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1180px;
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s var(--ease-hover); }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: .78rem; font-weight: 600; color: var(--color-accent); margin: 0 0 1rem; }
.section-eyebrow { font-size: .85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-text-muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #0284c7);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(3, 105, 161, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(3, 105, 161, 0.7); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--color-border); color: var(--color-primary); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--color-accent); color: var(--color-accent); }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease-hover), border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 24px -18px rgba(2, 6, 23, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; gap: 1rem; }
.logo { display: inline-flex; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo--footer img { height: 64px; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--color-border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--color-primary); border-radius: 2px; transition: transform .2s; }
.primary-nav { display: none; gap: 1.5rem; align-items: center; }
.primary-nav a { color: var(--color-primary); font-weight: 500; position: relative; padding: .35rem 0; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-hover); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta { background: var(--color-primary); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; }
.primary-nav .nav-cta:hover { background: var(--color-accent); }
.primary-nav .nav-cta::after { display: none; }

.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); background: #fff; padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); gap: .5rem; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
  .primary-nav.is-open { position: static; flex-direction: row; background: transparent; padding: 0; border: 0; box-shadow: none; }
}

/* === Hero card === */
.hero { padding-block: 3rem 3rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(ellipse at top, rgba(3, 105, 161, 0.18), transparent 65%);
  z-index: 0; pointer-events: none;
}
.hero-card__inner {
  position: relative; z-index: 1;
  max-width: 880px; margin-inline: auto;
  background: #fff;
  border-radius: 28px;
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  text-align: left;
}
@media (min-width: 768px) { .hero-card__inner { padding: 4rem; } }
.hero-card__inner h1 { max-width: 22ch; }
.lede { font-size: 1.15rem; color: var(--color-text-muted); max-width: 55ch; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px -20px rgba(2, 6, 23, 0.25); aspect-ratio: 16/9; background: var(--color-neutral-light); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* === Generic sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section--muted { background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }

/* === Grids === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Cards === */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(2, 6, 23, 0.25); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-text-muted); margin: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(3,105,161,0.12), rgba(3,105,161,0.04));
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial { margin: 0; padding: 2.5rem; background: linear-gradient(135deg, var(--color-primary), #1e293b); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-align: center; }
.testimonial h2, .testimonial .section-eyebrow { color: rgba(255,255,255,0.75); }
.testimonial p { font-size: 1.2rem; line-height: 1.6; font-family: var(--font-heading); font-weight: 500; margin-bottom: 1.25rem; color: #fff; }
.testimonial cite { font-style: normal; color: rgba(255,255,255,0.8); font-size: .95rem; }

/* === CTA band === */
.cta-band { padding-block: 3rem; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; }
.cta-band__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 768px) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.4); }
.cta-band .btn-primary:hover { background: var(--color-neutral-light); color: var(--color-primary); }

/* === Data viz block === */
.data-viz { margin: 2rem 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-sm); }
.data-viz img { width: 100%; height: 100%; object-fit: cover; }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .pricing-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  position: relative;
  background: #fff;
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(2, 6, 23, 0.2); }
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: 0 20px 40px -20px rgba(3, 105, 161, 0.35); }
.pricing-card__badge { position: absolute; top: -12px; right: 1.5rem; background: var(--color-accent); color: #fff; padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.pricing-card__plan { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: .5rem; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-primary); margin-bottom: .75rem; }
.pricing-card__lede { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .65rem; }
.pricing-card__features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; color: var(--color-secondary); }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { margin-top: auto; align-self: stretch; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--color-accent); transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: .75rem 0 0; color: var(--color-text-muted); }

/* === Contact === */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 500; color: var(--color-secondary); }
.contact-form input, .contact-form textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-primary); font-family: var(--font-body); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.form-consent { flex-direction: row !important; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--color-text-muted); font-weight: 400; }
.form-consent input { margin-top: .2rem; }
.contact-info { background: #fff; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.contact-info .btn { margin-right: .35rem; margin-top: .35rem; }

/* === Footer === */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.82); padding-block: 3rem 1.5rem; margin-top: 3rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: .75rem; }
.legal-links { font-size: .85rem; color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem; font-size: .85rem; color: rgba(255,255,255,0.6); }

/* === Cookie banner === */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; display: none; z-index: 9999; background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 1.25rem 1.5rem; border-radius: var(--radius-md); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button, .cookie-banner__prefs button { font: inherit; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(248,250,252,0.25); background: transparent; color: var(--color-neutral-light); cursor: pointer; font-weight: 500; font-size: .88rem; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-banner__actions button:hover { border-color: var(--color-neutral-light); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; }

/* === Reveal motion === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
