/* === 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.10);
  --color-muted: #64748B;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(2, 6, 23, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(2, 6, 23, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.narrow-center { max-width: 760px; margin-inline: auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-accent); margin: 0 0 1rem; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--color-accent), #075985); color: var(--color-neutral-light); box-shadow: 0 10px 30px -10px rgba(3, 105, 161, 0.6); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(3, 105, 161, 0.7); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-ghost:hover { background: rgba(2, 6, 23, 0.04); }
.btn-sm { padding: .55rem 1rem; font-size: 0.85rem; }

/* === 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 .2s, box-shadow .2s, border-color .2s;
}
.site-header.scrolled { background: rgba(248, 250, 252, 0.92); border-bottom-color: var(--color-border); box-shadow: 0 4px 20px -10px rgba(2, 6, 23, 0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: transparent; border: 1px solid var(--color-border); border-radius: 10px; padding: .5rem; color: var(--color-primary); cursor: pointer; }
.primary-nav { display: none; }
.primary-nav a { color: var(--color-secondary); font-weight: 500; font-size: 0.95rem; position: relative; }
.primary-nav a:not(.btn):hover { color: var(--color-primary); text-decoration: none; }
.primary-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:not(.btn):hover::after, .primary-nav a.is-current::after { transform: scaleX(1); }
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; left: 1rem; right: 1rem; top: 68px; background: var(--color-neutral-light); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem; gap: .75rem; box-shadow: var(--shadow-md); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex !important; align-items: center; gap: 1.75rem; position: static; background: transparent; border: 0; padding: 0; box-shadow: none; flex-direction: row; }
  .logo img { height: 96px; }
}

/* === Hero === */
.hero { position: relative; overflow: hidden; padding-block: 4rem 2rem; }
.hero-saas { background: linear-gradient(180deg, var(--color-neutral-light) 0%, #EEF3F8 100%); }
.hero-inner-page { padding-block: 3rem 1.5rem; }
.hero-glow { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; background: radial-gradient(circle, rgba(3, 105, 161, 0.16), transparent 60%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { font-size: 1.15rem; color: var(--color-secondary); max-width: 58ch; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-visual { max-width: 980px; margin: 2rem auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.hero-visual img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.proof-strip { margin-top: 3rem; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: rgba(255,255,255,0.5); }
.proof-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; padding-block: 1.25rem; color: var(--color-muted); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }

@media (min-width: 900px) {
  .hero { padding-block: 6rem 3rem; }
  .hero-inner-page { padding-block: 4rem 2rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-alt { background: #EEF3F8; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header p { color: var(--color-secondary); font-size: 1.05rem; }
@media (min-width: 900px) { .section { padding-block: 6rem; } }

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

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

/* === Testimonial === */
.section-quote { background: var(--color-primary); color: var(--color-neutral-light); }
.section-quote h2 { color: var(--color-neutral-light); }
.testimonial { max-width: 800px; margin: 0 auto; text-align: center; font-family: var(--font-heading); }
.testimonial p { font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.5; font-weight: 500; color: var(--color-neutral-light); }
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; font-family: var(--font-body); font-size: 0.95rem; color: rgba(248, 250, 252, 0.7); }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), #1e293b); color: var(--color-neutral-light); padding-block: 4rem; }
.cta-band h2 { color: var(--color-neutral-light); margin: 0 0 .5rem; }
.cta-band p { color: rgba(248, 250, 252, 0.75); margin: 0; }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 800px) {
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}

/* === Stats === */
.stats-band .stat { background: #fff; border-radius: var(--radius); border: 1px solid var(--color-border); padding: 2rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-family: var(--font-heading); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 700; color: var(--color-accent); letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: .5rem; color: var(--color-secondary); font-size: 0.95rem; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-md); }
.pricing-card__badge { position: absolute; top: -14px; right: 1.5rem; background: var(--color-accent); color: var(--color-neutral-light); padding: .35rem .75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.pricing-card__plan { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-secondary); font-weight: 600; margin: 0 0 .5rem; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-primary); margin: 0 0 .5rem; letter-spacing: -0.02em; }
.pricing-card__lede { color: var(--color-secondary); font-size: 0.95rem; margin: 0 0 1.5rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .6rem; }
.pricing-card__features li { display: flex; gap: .5rem; color: var(--color-primary); font-size: 0.95rem; }
.pricing-card__cta { margin-top: auto; align-self: stretch; text-align: center; }

/* === FAQ === */
.faq details { border-bottom: 1px solid var(--color-border); padding: 1.25rem 0; }
.faq summary { font-weight: 600; font-family: var(--font-heading); font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--color-accent); transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 1rem 0 0; color: var(--color-secondary); }

/* === Form === */
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--color-primary); }
.form-row input, .form-row textarea { font-family: var(--font-body); font-size: 1rem; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-primary); transition: border-color .15s, box-shadow .15s; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: 0.88rem; color: var(--color-secondary); margin: 0 0 1.5rem; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: var(--color-primary); color: var(--color-neutral-light); padding-block: 3.5rem 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer h3 { color: var(--color-neutral-light); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 1rem; }
.site-footer a { color: rgba(248, 250, 252, 0.75); }
.site-footer a:hover { color: var(--color-neutral-light); }
.logo-footer img { filter: brightness(0) invert(1); height: 64px; }
.tagline { color: rgba(248, 250, 252, 0.65); margin-top: 1rem; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact address { font-style: normal; color: rgba(248, 250, 252, 0.75); line-height: 1.7; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; color: rgba(248, 250, 252, 0.65); }
.copyright { border-top: 1px solid rgba(248, 250, 252, 0.12); padding-top: 1.5rem; color: rgba(248, 250, 252, 0.55); font-size: 0.85rem; text-align: center; }

/* === 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); box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.9rem; color: rgba(248, 250, 252, 0.85); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn-ghost { color: var(--color-neutral-light); border-color: rgba(248, 250, 252, 0.25); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(248, 250, 252, 0.08); }
.cookie-banner__prefs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(248, 250, 252, 0.15); display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: 0.9rem; color: rgba(248, 250, 252, 0.85); }
.cookie-banner__prefs button { margin-top: .5rem; align-self: flex-start; }

/* === 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; } }
