/* === Tokens === */
:root {
  --color-primary: #0F172A;
  --color-secondary: #1E3A8A;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-border: rgba(2, 6, 23, 0.10);
  --color-muted: #475569;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(15, 23, 42, 0.20);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
  --radius: 16px;
  --radius-lg: 20px;
}

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

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: 4rem; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-lede { max-width: 60ch; margin-inline: auto; margin-bottom: 2rem; color: var(--color-muted); }

/* === Header (glass nav) === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 252, 0.7); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.site-header.scrolled { background: rgba(248, 250, 252, 0.92); border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.primary-nav { display: none; align-items: center; gap: 1.5rem; }
.primary-nav a { position: relative; color: var(--color-primary); font-weight: 500; font-size: 0.95rem; padding: 0.4rem 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 0.25s var(--ease); }
.primary-nav a:hover { text-decoration: none; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a.nav-cta { background: var(--color-primary); color: var(--color-neutral-light); padding: 0.55rem 1.1rem; border-radius: 999px; }
.primary-nav a.nav-cta::after { display: none; }
.primary-nav a.nav-cta:hover { background: var(--color-secondary); }
.nav-toggle { display: inline-flex; background: transparent; border: 1px solid var(--color-border); color: var(--color-primary); padding: 0.5rem; border-radius: 8px; cursor: pointer; }
.nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; gap: 0.5rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .primary-nav.is-open { position: static; flex-direction: row; box-shadow: none; padding: 0; border: 0; } }

/* === Hero (saas-spotlight) === */
.hero { position: relative; overflow: hidden; padding-block: 4rem 3rem; background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%); }
.hero-inner-page { padding-block: 3rem 2rem; }
.hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(202, 138, 4, 0.14) 0%, rgba(30, 58, 138, 0.05) 40%, transparent 70%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--color-secondary); margin-bottom: 1rem; }
.hero h1 { max-width: 22ch; }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 58ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }
.hero-visual { margin-top: 1rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

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

/* === Proof strip === */
.proof-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); border: 1px solid var(--color-border); }
.proof-strip div { display: flex; flex-direction: column; gap: 0.15rem; }
.proof-strip strong { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--color-secondary); }
.proof-strip span { color: var(--color-muted); font-size: 0.9rem; }
@media (min-width: 768px) { .proof-strip { grid-template-columns: repeat(4, 1fr); } }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; padding: 0.85rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease); line-height: 1; }
.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-primary), var(--color-secondary)); color: var(--color-neutral-light); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-light); box-shadow: 0 8px 30px -8px rgba(202, 138, 4, 0.5); }
.btn-accent:hover { background: #a86e03; }
.btn-ghost { background: transparent; color: var(--color-primary); border: 1px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); background: rgba(15,23,42,0.03); }

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

.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); display: flex; flex-direction: column; gap: 0.35rem; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.25rem; }
.card p { color: var(--color-muted); margin-bottom: 0; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(30,58,138,0.10), rgba(202,138,4,0.15)); color: var(--color-secondary); margin-bottom: 0.75rem; }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover { text-decoration: none; }

/* === Testimonial === */
.testimonial-section { background: linear-gradient(180deg, transparent, rgba(30,58,138,0.04)); }
.testimonial { margin: 0; padding: 2.5rem 1.5rem; text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; font-weight: 500; color: var(--color-primary); margin-bottom: 1rem; }
.testimonial cite { display: block; font-style: normal; font-size: 0.95rem; color: var(--color-muted); }

/* === CTA band === */
.cta-band { margin: 3rem 0; padding: 3.5rem 1.5rem; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: var(--color-neutral-light); border-radius: var(--radius-lg); }
.cta-band h2, .cta-band p { color: var(--color-neutral-light); }
.cta-band p { color: rgba(248,250,252,0.85); margin-bottom: 1.5rem; max-width: 55ch; margin-inline: auto; }
.cta-band .container { padding-inline: 0; }

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

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 500; font-size: 0.95rem; color: var(--color-primary); }
.contact-form .opt { color: var(--color-muted); font-weight: 400; font-size: 0.85rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light); transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(30,58,138,0.15); }
.form-consent { flex-direction: row !important; align-items: flex-start; gap: 0.6rem !important; font-size: 0.88rem; color: var(--color-muted); font-weight: 400 !important; }
.form-consent input { margin-top: 0.15rem; }
.contact-form button[type="submit"] { align-self: flex-start; }

/* === Footer === */
.site-footer { background: var(--color-primary); color: var(--color-neutral-light); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: rgba(248,250,252,0.85); }
.site-footer a:hover { color: var(--color-accent); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.logo-footer img { height: 72px; filter: brightness(0) invert(1); }
.tagline { color: rgba(248,250,252,0.75); font-size: 0.95rem; max-width: 32ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-contact { font-style: normal; font-size: 0.95rem; line-height: 1.8; color: rgba(248,250,252,0.85); }
.legal-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.85rem; }
.copyright { border-top: 1px solid rgba(248,250,252,0.15); padding-top: 1.25rem; font-size: 0.85rem; color: rgba(248,250,252,0.65); }

/* === Reveal on scroll === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.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; } .btn:hover, .card:hover { transform: none; } }

/* === 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 { color: var(--color-neutral-light); font-size: 0.92rem; margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button { font: inherit; font-weight: 600; font-size: 0.88rem; padding: 0.55rem 1.1rem; border: 0; border-radius: 8px; cursor: pointer; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: var(--color-neutral-light); }
.cookie-banner__actions button[data-cookie-reject] { background: rgba(248,250,252,0.15); color: var(--color-neutral-light); }
.cookie-banner__actions button[data-cookie-settings] { background: transparent; color: var(--color-neutral-light); text-decoration: underline; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(248,250,252,0.15); font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; background: var(--color-accent); color: var(--color-neutral-light); border: 0; border-radius: 8px; padding: 0.5rem 1rem; font-weight: 600; cursor: pointer; }
