/* =========================================================
   Kerneland — Brand stylesheet
   Palette derived from the Kerneland logo + tech accents
   ========================================================= */

:root {
  /* Brand */
  --navy-deep:  #0B1426;
  --navy:       #0F1B33;
  --navy-2:     #1A2B4A;
  --navy-3:     #233A5E;

  --teal:       #2BBFB1;
  --teal-soft:  #3FD5C6;
  --orange:     #F39A2B;
  --orange-soft:#FFB857;

  /* Tech accents */
  --cyan:       #5BE9E9;
  --violet:     #7C6EF0;

  /* Neutrals */
  --ink:        #0E1626;
  --ink-2:      #1F2A3A;
  --slate:      #5A6B7B;
  --slate-2:    #8A97A6;
  --line:       rgba(255,255,255,0.08);
  --line-light: rgba(15,27,51,0.08);

  --bg-light:   #F7F9FC;
  --card-light: #FFFFFF;

  /* Font stacks */
  --ff-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ff-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --container: 1180px;

  --shadow-card: 0 18px 40px -22px rgba(15,27,51,0.55), 0 2px 8px -2px rgba(15,27,51,0.18);
  --shadow-soft: 0 8px 24px -12px rgba(15,27,51,0.25);
}

/* ============== Resets ============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: #E7ECF3;
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.container { width: min(var(--container), 92%); margin-inline: auto; }

/* ============== Background FX ============== */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  filter: blur(110px);
  opacity: 0.45;
  border-radius: 50%;
}
.blob-teal   { top: -10%; left: -10%; background: radial-gradient(circle, var(--teal) 0%, transparent 70%); }
.blob-orange { bottom: -20%; right: -10%; background: radial-gradient(circle, var(--orange) 0%, transparent 70%); opacity: 0.30; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============== Typography ============== */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: #FFFFFF;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-2); }

p { margin: 0 0 1em; }
.lead { font-size: 1.1rem; color: #C5CFDD; max-width: 56ch; }

.grad-teal   { background: linear-gradient(120deg, var(--teal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-orange { background: linear-gradient(120deg, var(--orange), var(--orange-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(43,191,177,0.35);
  border-radius: 999px;
  margin-bottom: 1.1rem;
  background: rgba(43,191,177,0.06);
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(120deg, var(--teal) 0%, var(--cyan) 100%);
  color: #051018;
  box-shadow: 0 12px 28px -10px rgba(43,191,177,0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(43,191,177,0.7); }
.btn-ghost {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.32); }

/* ============== Header / Nav ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(15,27,51,0.08);
  box-shadow: 0 1px 0 rgba(15,27,51,0.04);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 18px -10px rgba(15,27,51,0.18);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}
.brand img { height: 42px; width: auto; display: block; }
.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-main a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-2);
  transition: color .2s ease;
}
.nav-main a:hover { color: var(--teal); }
.nav-cta {
  color: #051018 !important;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}
.nav-cta:hover { color: #051018 !important; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(15,27,51,0.04);
  border: 1px solid rgba(15,27,51,0.1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--navy-2); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============== HERO ============== */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #C5CFDD;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}
.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.8rem 0 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { font-size: 0.82rem; color: var(--slate-2); }

/* Code card */
.hero-visual { position: relative; }
.code-card {
  background: linear-gradient(160deg, #1A2B4A 0%, #0F1B33 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55), 0 0 0 1px rgba(43,191,177,0.08);
  font-family: var(--ff-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}
.code-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.code-card-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.5rem 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.code-card-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.code-card-bar span:nth-child(1) { background: #FF6058; }
.code-card-bar span:nth-child(2) { background: #FFBE2F; }
.code-card-bar span:nth-child(3) { background: #28C942; }
.code-card-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--slate-2);
}
.code-card pre { margin: 0; white-space: pre; overflow-x: auto; }
.code-card code { color: #DDE4EF; }
.c-key { color: #FF8FA8; }
.c-cls { color: var(--cyan); }
.c-str { color: var(--orange-soft); }
.c-num { color: var(--violet); }
.c-fn  { color: var(--teal-soft); }
.c-var { color: #DDE4EF; }
.c-com { color: #6F829B; font-style: italic; }

/* ============== Trust strip ============== */
.trust {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.trust-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--slate-2);
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
.trust-logos .trust-tile {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  padding: 14px 18px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.4);
}
.trust-logos .trust-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(43,191,177,0.45);
}
.trust-logos .trust-tile img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ============== Sections ============== */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.section-alt {
  background:
    linear-gradient(180deg, rgba(43,191,177,0.025), transparent 60%),
    rgba(255,255,255,0.015);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p { color: #C5CFDD; }

/* ============== Service cards ============== */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(43,191,177,0.35);
  box-shadow: 0 28px 50px -28px rgba(43,191,177,0.4);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(43,191,177,0.18), rgba(91,233,233,0.05));
  border: 1px solid rgba(43,191,177,0.25);
  color: var(--teal);
  margin-bottom: 1rem;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card > p { color: #C5CFDD; margin-bottom: 1rem; font-size: 0.95rem; }
.service-card ul li {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--slate-2);
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}
.service-card ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* ============== Project cards ============== */
.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243,154,43,0.35);
  box-shadow: 0 28px 50px -28px rgba(243,154,43,0.35);
}
.project-logo {
  width: 88px; height: 88px;
  border-radius: 18px;
  background: #FFFFFF;
  padding: 12px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.project-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.project-logo-dark { background: var(--navy-2); }
.project-card h3 { margin-bottom: 0.25rem; }
.project-tag {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-card > p { color: #C5CFDD; font-size: 0.92rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.chip {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--slate-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* ============== Process ============== */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}
.step-num {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--orange), var(--orange-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: #C5CFDD; font-size: 0.92rem; margin: 0; }

/* ============== About ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p { color: #C5CFDD; }
.about-text em { color: var(--orange); font-style: italic; }
.founder {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.founder-avatar {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  display: grid; place-items: center;
  color: var(--navy-deep);
  font-weight: 800;
  font-family: var(--ff-display);
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px -10px rgba(43,191,177,0.55);
}
.founder strong { display: block; color: #FFF; font-size: 1.05rem; }
.founder span { display: block; color: var(--slate-2); font-size: 0.85rem; margin-top: 0.15rem; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.value {
  padding: 1.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value h4 { color: var(--teal); margin-bottom: 0.4rem; }
.value p { color: #C5CFDD; font-size: 0.9rem; margin: 0; }

/* ============== Contact ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-text p { color: #C5CFDD; }
.contact-channels {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-channel:hover {
  border-color: var(--teal);
  transform: translateX(2px);
}
.cc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43,191,177,0.2), rgba(91,233,233,0.05));
  border: 1px solid rgba(43,191,177,0.3);
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--teal);
}
.contact-channel strong { display: block; color: #FFF; }
.contact-channel span { display: block; color: var(--slate-2); font-size: 0.88rem; font-family: var(--ff-mono); }

.contact-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-2);
}
.field input, .field select, .field textarea {
  font: inherit;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(11,20,38,0.7);
  color: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,191,177,0.18);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #C5CFDD;
  margin: 0.5rem 0 1rem;
  cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--teal); }
.check a { color: var(--teal); border-bottom: 1px dashed rgba(43,191,177,0.4); }
.form-hint { font-size: 0.78rem; color: var(--slate-2); margin: 0.8rem 0 0; text-align: center; }

/* ============== Footer ============== */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
.footer-brand img { height: 36px; margin-bottom: 0.9rem; }
.footer-brand p { color: var(--slate-2); font-size: 0.9rem; max-width: 36ch; }
.site-footer h5 { color: #FFFFFF; margin-bottom: 0.9rem; }
.site-footer ul li { padding: 0.25rem 0; }
.site-footer a { color: var(--slate-2); font-size: 0.9rem; }
.site-footer a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--slate-2);
}
.footer-bottom p { margin: 0; }

/* ============== Privacy page ============== */
.legal {
  padding: clamp(3rem, 7vw, 5.5rem) 0 4rem;
}
.legal-container {
  width: min(880px, 92%);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.legal h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.4rem; }
.legal .updated { color: var(--slate-2); font-size: 0.85rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; color: var(--teal); }
.legal h3 { font-size: 1rem; margin-top: 1.4rem; color: #FFFFFF; }
.legal p, .legal li { color: #D1D9E5; font-size: 0.96rem; }
.legal ul { margin: 0.5rem 0 1rem 1.2rem; list-style: disc; }
.legal a { color: var(--teal); border-bottom: 1px dashed rgba(43,191,177,0.4); }
.legal .back {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--teal);
  font-size: 0.88rem;
}

/* ============== Responsive ============== */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-logos { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 720px) {
  .nav-main {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(11,20,38,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 5%;
    gap: 0.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, opacity .25s ease, visibility 0s linear .3s;
  }
  .nav-main a {
    padding: 0.8rem 0.4rem;
    color: #E7ECF3;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-main a:hover { color: var(--teal); }
  .nav-main.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s ease, opacity .25s ease, visibility 0s linear 0s;
  }
  .nav-cta {
    margin-top: 0.6rem;
    border-radius: 999px;
    text-align: center;
  }
  .nav-toggle { display: flex; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}

/* ============== Reveal animation ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
