:root {
  --bg: #060b18;
  --bg-alt: #0a1226;
  --card-bg: #0f1a35;
  --card-bg-hover: #131f42;
  --navy: #0b1220;
  --navy-dark: #04070f;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #60a5fa;
  --white: #ffffff;
  --text: #eef2ff;
  --text-muted: #93a1c2;
  --text-faint: #7683ab;
  --border: rgba(148, 163, 255, 0.14);
  --border-hover: rgba(96, 165, 250, 0.5);
  --radius: 14px;
  --shadow: 0 4px 24px rgba(2, 6, 16, 0.4);
  --shadow-lg: 0 20px 60px rgba(2, 6, 16, 0.55);
  --glow: 0 0 0 1px var(--border-hover), 0 8px 20px rgba(2, 6, 16, 0.35);
  --max-width: 1160px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Ambient background glow ---------- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.bg-glow-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  animation: drift-glow-1 18s ease-in-out infinite;
}
.bg-glow-2 {
  width: 480px;
  height: 480px;
  bottom: 10%;
  left: -160px;
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 70%);
  opacity: 0.2;
  animation: drift-glow-2 22s ease-in-out infinite;
}
@keyframes drift-glow-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 50px) scale(1.15); }
}
@keyframes drift-glow-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50% { transform: translate(70px, -40px) scale(1.2); opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-glow-1, .bg-glow-2 { animation: none; }
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
[data-reveal-delay="1"] { transition-delay: 0.06s; }
[data-reveal-delay="2"] { transition-delay: 0.12s; }
[data-reveal-delay="3"] { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .card, .logo-img, .step-number, .stat-card { transition: none !important; }
  .main-nav, .main-nav a, .nav-toggle span { transition: none !important; }
}

/* Hover-triggered motion, gated so touch taps don't get stuck mid-animation */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { background: var(--blue-dark); }
  .btn-primary:hover .btn-icon {
    transform: translate(2px, -2px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
  }
  .btn-ghost:hover {
    border-color: var(--blue-light);
    color: var(--blue-light);
    box-shadow: 0 0 0 1px var(--blue-light) inset;
  }
  .logo:hover .logo-icon {
    transform: translateY(-3px) scale(1.08) rotate(-3deg);
    filter: brightness(1.2);
  }
  .footer-logo-icon:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: brightness(1.2);
  }
  .main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav-cta:hover {
    background: var(--blue-dark);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.45);
    transform: translateY(-2px);
  }
  .card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--glow);
    transform: translateY(-6px);
  }
  .card:hover .card-icon { transform: scale(1.15) rotate(-4deg); }
  .step:hover .step-number {
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
  }
  .stat-card:hover {
    transform: translateY(-6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--glow);
  }
  @media (min-width: 901px) {
    .stat-card:nth-child(1):hover { transform: rotate(-2deg) translateY(-6px); }
    .stat-card:nth-child(2):hover { transform: rotate(2deg) translateY(-6px); }
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); transition: transform 100ms ease-out; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  gap: 12px;
  padding: 8px 8px 8px 24px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out), background 0.25s ease;
}
.btn-icon svg { width: 15px; height: 15px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-full { width: 100%; }
/* The form submit button reuses .btn-primary but has no trailing icon chip — keep it symmetric */
.btn-primary.btn-full { padding: 14px 28px; gap: 0; }

/* ---------- Header (floating pill, detached from the viewport edge) ---------- */
.site-header {
  position: sticky;
  top: 16px;
  margin-top: 16px;
  z-index: 50;
  padding: 0 24px;
  transition: top 0.3s ease;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 12px 0 20px;
}
/* Decorative glass layer, kept separate from .header-inner so its backdrop-filter
   doesn't turn .header-inner into a containing block that traps the mobile menu's
   position:fixed (a real CSS gotcha: filter/backdrop-filter on an ancestor does this). */
.header-glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: rgba(15, 26, 53, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(2, 6, 16, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled .header-glass {
  background: rgba(15, 26, 53, 0.78);
  box-shadow: 0 12px 40px rgba(2, 6, 16, 0.5);
}
@media (prefers-reduced-transparency: reduce) {
  .header-glass {
    background: var(--card-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  height: 38px;
  width: auto;
  transform: translateY(-3px);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.logo-text .accent { color: var(--blue-light); }

.footer-logo-icon {
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.footer-logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--white);
  vertical-align: middle;
}
.footer-logo-text .accent { color: var(--blue-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.nav-cta):hover {
  color: var(--text);
}

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease, top 0.3s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scale(0); }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  /* top padding capped near 96px (the taste-skill's hero-top-padding-cap rule) so content
     doesn't float mid-viewport; extra breathing room goes to the bottom instead */
  padding: 96px 0 110px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-light);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.eyebrow.center {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--white);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Hero brand mark */
.brand-mark {
  position: relative;
  aspect-ratio: 1;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.brand-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
  animation: pulse-ring 3.5s ease-in-out infinite;
}
.brand-mark-icon {
  position: relative;
  width: 46%;
  height: auto;
  transform: translate(8px, -8px);
  filter: drop-shadow(0 12px 32px rgba(59, 130, 246, 0.35));
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark-ring { animation: none; }
}
.brand-mark-caption {
  position: relative;
  text-align: center;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: 128px 0;
}
.section.alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--white);
}
.section-title.center { text-align: center; }

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0 0 48px;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards */
.cards {
  display: grid;
  gap: 24px;
}
.services-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--blue-light);
  transition: transform 0.3s ease;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--white); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  text-align: center;
  padding: 0 12px;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--white); }
.step p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Why us */
.why-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 18px; }
.why-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue-light);
}
.why-list strong { color: var(--white); }

.why-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--navy) 100%);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Z-axis cascade: slight opposing tilt + overlap so the pair reads as stacked physical cards */
@media (min-width: 901px) {
  .stat-card:nth-child(1) { transform: rotate(-2deg); margin-bottom: -6px; }
  .stat-card:nth-child(2) { transform: rotate(2deg); z-index: 1; }
}
.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-light);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pricing list — flat, divided rows instead of cards (differentiates from the services grid) */
.pricing-list {
  display: flex;
  flex-direction: column;
}
.pricing-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.pricing-item:last-child { border-bottom: 1px solid var(--border); }
.pricing-index {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.05em;
  padding-top: 2px;
  flex-shrink: 0;
}
.pricing-item h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--white); }
.pricing-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; max-width: 60ch; }

/* Pricing CTA */
.pricing-cta {
  text-align: center;
  margin-top: 48px;
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-email {
  margin-top: 20px;
  font-weight: 500;
  color: var(--text-muted);
}
.contact-email a { color: var(--blue-light); }
.contact-email a:hover { text-decoration: underline; }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.form-note {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-light);
  min-height: 1.2em;
}

/* Recovery link shown when a submit fails - must read as a clear action. */
.form-note-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out);
}
.form-note-link:hover,
.form-note-link:focus-visible {
  color: var(--blue-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tagline {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .why-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .why-visual {
    flex-direction: row;
  }
  .why-visual .stat-card { flex: 1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
}

body.nav-open { overflow: hidden; }

@media (max-width: 720px) {
  .site-header { padding: 0 16px; }

  /* Full-screen glass overlay menu, not a small dropdown */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s var(--ease-out);
  }
  .main-nav a {
    padding: 14px 24px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  }
  .main-nav.open a {
    opacity: 1;
    transform: translateY(0);
  }
  .main-nav.open a:nth-child(1) { transition-delay: 0.08s; }
  .main-nav.open a:nth-child(2) { transition-delay: 0.14s; }
  .main-nav.open a:nth-child(3) { transition-delay: 0.2s; }
  .main-nav.open a:nth-child(4) { transition-delay: 0.26s; }
  .main-nav.open a:nth-child(5) { transition-delay: 0.32s; }
  .main-nav a::after { display: none; }
  .nav-cta {
    margin-top: 16px;
    padding: 14px 32px;
  }
  .nav-toggle { display: block; z-index: 41; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 56px; }
  .section { padding: 64px 0; }
}
