/* === Tokens === */
:root {
  --color-primary: #0891B2;
  --color-secondary: #22D3EE;
  --color-accent: #22C55E;
  --color-neutral-dark: #164E63;
  --color-neutral-light: #ECFEFF;
  --color-bg: #ffffff;
  --color-text: #0f2933;
  --color-muted: #4a6b75;
  --color-border: rgba(22, 78, 99, 0.12);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(22, 78, 99, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(22, 78, 99, 0.20);
  --shadow-lg: 0 30px 60px -30px rgba(22, 78, 99, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

/* === 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-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.75em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 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-secondary); outline-offset: 2px; border-radius: 4px; }

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--color-border);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-sm); }
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-neutral-dark);
  padding: 0.5rem;
  cursor: pointer;
  display: inline-flex;
}
.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  gap: 0.25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-neutral-dark);
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.primary-nav a:last-child { border-bottom: none; }
.primary-nav .nav-cta {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  text-align: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border-bottom: none;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    padding: 0;
    gap: 0.5rem;
  }
  .primary-nav a {
    padding: 0.5rem 0.85rem;
    border-bottom: none;
  }
  .primary-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .primary-nav a:not(.nav-cta):hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav .nav-cta { margin-left: 0.5rem; margin-top: 0; padding: 0.6rem 1.1rem; }
  .primary-nav .nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
}

/* === Layout helpers === */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section__title { text-align: center; margin-bottom: 2rem; }
.section__lede { text-align: center; max-width: 60ch; margin: 0 auto 2rem; color: var(--color-muted); }
.intro { max-width: 760px; text-align: center; }
.intro p { font-size: 1.0625rem; color: var(--color-muted); }
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

/* === Hero card === */
.hero {
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(34, 211, 238, 0.18), transparent 70%),
    radial-gradient(50% 50% at 90% 30%, rgba(34, 197, 94, 0.10), transparent 70%),
    linear-gradient(180deg, var(--color-neutral-light), #fff);
  padding: 3rem 1rem 4rem;
}
.hero-card__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--color-border);
}
.hero__sub { font-size: 1.125rem; color: var(--color-muted); max-width: 56ch; margin: 0 auto 1.75rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; }
.hero-card__media { margin: 1rem 0 0; }
.hero-card__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (min-width: 768px) {
  .hero { padding: 5rem 1.25rem 6rem; }
  .hero-card__inner { padding: 4rem 3rem; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(8, 145, 178, 0.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(8, 145, 178, 0.6); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-neutral-light); transform: translateY(-2px); color: var(--color-neutral-dark); }

/* === Cards grid === */
.grid--cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .grid--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: 0.9375rem; }

/* === Testimonial === */
.testimonial { text-align: center; max-width: 820px; }
.testimonial blockquote {
  margin: 0;
  padding: 2rem 1rem;
  position: relative;
}
.testimonial blockquote::before {
  content: '"';
  position: absolute;
  left: 50%;
  top: -0.5rem;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-secondary);
  opacity: 0.35;
  line-height: 1;
}
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  color: var(--color-neutral-dark);
  font-weight: 500;
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* === CTA band === */
.cta-band {
  margin: 4rem 1rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  overflow: hidden;
  position: relative;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 80% 30%, rgba(34, 197, 94, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255, 255, 255, 0.86); margin-bottom: 1.75rem; }
.cta-band .btn--primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.35);
}
.cta-band .btn--primary:hover { color: var(--color-neutral-dark); }
@media (min-width: 768px) {
  .cta-band { margin: 5rem auto; max-width: calc(var(--maxw) - 2.5rem); }
  .cta-band__inner { padding: 4rem 2rem; }
}

/* === 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-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s 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: -0.75rem;
  right: 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.pricing-card__plan { margin-bottom: 0.25rem; font-size: 1.5rem; }
.pricing-card__price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-neutral-dark);
  margin: 0 0 0.5rem;
}
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.25rem; font-size: 0.9375rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex-grow: 1; }
.pricing-card__features li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { align-self: stretch; }

/* === Contact form === */
.contact-form-section { max-width: 720px; }
.contact-form { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-neutral-dark);
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}
.field input, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}
.contact-form button { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(236, 254, 255, 0.85);
  margin-top: 4rem;
  padding: 3rem 1.25rem 1.5rem;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.footer-col a {
  color: rgba(236, 254, 255, 0.85);
  display: block;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: var(--color-secondary); }
.footer-col address { font-style: normal; line-height: 1.7; margin-bottom: 0.75rem; }
.footer-col address a { display: inline; padding: 0; }
.legal-links a { display: inline; padding: 0; }
.logo--footer img { height: 64px; width: auto; filter: brightness(0) invert(1); }
.site-footer__copy {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(236, 254, 255, 0.15);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(236, 254, 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;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(236, 254, 255, 0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-size: 0.875rem;
  transition: background .2s ease, transform .2s ease;
}
.cookie-banner button:hover { transform: translateY(-1px); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #1ea54a; }
.cookie-banner__prefs { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: 0.5rem; background: var(--color-primary); border-color: var(--color-primary); }
@media (min-width: 640px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 1.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; }
}
