/* =========================================================
   Uplift Studios — Glassmorphism landing
   ========================================================= */

:root {
  color-scheme: dark light;

  --bg: #0b0710;
  --bg-2: #140a17;
  --text: #f4eef7;
  --muted: #b9a9c4;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.3);

  /* Surfaces that need to invert between themes */
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-bg-focus: rgba(255, 255, 255, 0.07);
  --placeholder: rgba(185, 169, 196, 0.6);
  --nav-mobile-bg: rgba(20, 10, 23, 0.95);

  --accent: #ff7a3d;
  --accent-2: #ff3d77;
  --accent-3: #8b5cf6;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --bg-warm-glow: rgba(255, 116, 68, 0.24);
  --bg-pink-glow: rgba(255, 61, 119, 0.22);
  --bg-violet-glow: rgba(139, 92, 246, 0.2);
  --bg-cool-glow: rgba(94, 234, 212, 0.08);
  --bokeh-soft: rgba(255, 255, 255, 0.18);
  --bokeh-warm: rgba(255, 122, 61, 0.52);
  --bokeh-pink: rgba(255, 61, 119, 0.44);
  --bokeh-violet: rgba(139, 92, 246, 0.42);
  --bokeh-cool: rgba(94, 234, 212, 0.16);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;

  /* Safe-area insets (notch / status bar / home indicator) — 0 on non-iOS */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

/* ============================ Light mode ============================ */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f0fb;
    --bg-2: #ece2f4;
    --text: #1c1226;
    --muted: #6a5b76;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-strong: rgba(255, 255, 255, 0.72);
    --border: rgba(28, 18, 38, 0.12);
    --border-soft: rgba(28, 18, 38, 0.08);
    --border-hover: rgba(28, 18, 38, 0.28);

    --input-bg: rgba(255, 255, 255, 0.6);
    --input-bg-focus: rgba(255, 255, 255, 0.9);
    --placeholder: rgba(80, 65, 95, 0.55);
    --nav-mobile-bg: rgba(255, 255, 255, 0.92);

    --shadow: 0 22px 50px -26px rgba(80, 40, 120, 0.32);
    --bg-warm-glow: rgba(255, 139, 91, 0.34);
    --bg-pink-glow: rgba(255, 89, 139, 0.24);
    --bg-violet-glow: rgba(139, 92, 246, 0.18);
    --bg-cool-glow: rgba(59, 130, 246, 0.12);
    --bokeh-soft: rgba(255, 255, 255, 0.72);
    --bokeh-warm: rgba(255, 122, 61, 0.26);
    --bokeh-pink: rgba(255, 61, 119, 0.2);
    --bokeh-violet: rgba(139, 92, 246, 0.18);
    --bokeh-cool: rgba(59, 130, 246, 0.14);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(100px + var(--safe-top));
  overflow-x: hidden;
  max-width: 100%;
  /* Paint the theme bg behind the status-bar / safe areas so iOS shows no black bar */
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(24px, var(--safe-left));
  padding-right: max(24px, var(--safe-right));
}

/* ============================ Background ============================ */
.bg {
  position: fixed;
  top: calc(-1 * var(--safe-top));
  left: 0;
  right: 0;
  /* Cover the *largest* viewport (address bar hidden). iOS freezes fixed
     elements during a scroll gesture, so pinning the bottom to the dynamic
     viewport (inset: 0) leaves an uncovered strip when the toolbar collapses
     mid-scroll — the flat theme color shows through as a "black bar". A static
     lvh height is never re-laid-out while scrolling, so the animated
     background stays continuous edge to edge. */
  height: calc(100vh + var(--safe-top) + var(--safe-bottom)); /* fallback ≈ large viewport on older iOS */
  height: calc(100lvh + var(--safe-top) + var(--safe-bottom));
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 720px at 83% -8%, var(--bg-warm-glow), transparent 62%),
    radial-gradient(880px 640px at 8% 104%, var(--bg-pink-glow), transparent 58%),
    radial-gradient(920px 660px at 64% 86%, var(--bg-violet-glow), transparent 62%),
    radial-gradient(620px 520px at 12% 18%, var(--bg-cool-glow), transparent 64%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

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

.bg::before,
.bg::after {
  content: "";
  position: absolute;
  inset: -18vmax;
  pointer-events: none;
  will-change: transform;
}

.bg::before {
  opacity: 0.7;
  filter: blur(28px) saturate(130%);
  background:
    radial-gradient(circle at 14% 19%, var(--bokeh-soft) 0 7px, transparent 24px),
    radial-gradient(circle at 28% 69%, var(--bokeh-pink) 0 10px, transparent 34px),
    radial-gradient(circle at 42% 16%, var(--bokeh-warm) 0 14px, transparent 42px),
    radial-gradient(circle at 58% 82%, var(--bokeh-violet) 0 11px, transparent 38px),
    radial-gradient(circle at 72% 34%, var(--bokeh-soft) 0 8px, transparent 30px),
    radial-gradient(circle at 86% 70%, var(--bokeh-warm) 0 16px, transparent 50px);
  animation: bokeh-drift 34s ease-in-out infinite alternate;
}

.bg::after {
  opacity: 0.54;
  filter: blur(46px) saturate(145%);
  background:
    radial-gradient(circle at 18% 78%, var(--bokeh-violet) 0 24px, transparent 76px),
    radial-gradient(circle at 35% 32%, var(--bokeh-cool) 0 20px, transparent 68px),
    radial-gradient(circle at 55% 14%, var(--bokeh-pink) 0 28px, transparent 90px),
    radial-gradient(circle at 78% 22%, var(--bokeh-warm) 0 30px, transparent 96px),
    radial-gradient(circle at 88% 88%, var(--bokeh-violet) 0 24px, transparent 84px);
  animation: bokeh-orbit 44s ease-in-out infinite alternate;
}

.bokeh {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: var(--alpha, 0.48);
  mix-blend-mode: screen;
  /* Soft, out-of-focus orb: blur scales with the ball size so every
     ball reads as evenly defocused rather than a crisp bokeh disc. */
  filter: blur(calc(var(--size) * 0.16)) saturate(125%);
  background:
    radial-gradient(circle, var(--color) 0%, transparent 70%);
  animation: bokeh-float var(--duration, 28s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.bokeh--1 {
  --size: 116px;
  --x: 8%;
  --y: 16%;
  --color: var(--bokeh-warm);
  --alpha: 0.46;
  --duration: 27s;
  --delay: -6s;
  --float-x: 42px;
  --float-y: -36px;
  --float-x-end: -28px;
  --float-y-end: 26px;
}
.bokeh--2 {
  --size: 74px;
  --x: 28%;
  --y: 8%;
  --color: var(--bokeh-soft);
  --alpha: 0.36;
  --duration: 22s;
  --delay: -12s;
  --float-x: -26px;
  --float-y: 40px;
  --float-x-end: 34px;
  --float-y-end: -18px;
}
.bokeh--3 {
  --size: 168px;
  --x: 70%;
  --y: 18%;
  --color: var(--bokeh-pink);
  --alpha: 0.34;
  --duration: 31s;
  --delay: -18s;
  --float-x: -48px;
  --float-y: 34px;
  --float-x-end: 22px;
  --float-y-end: -42px;
}
.bokeh--4 {
  --size: 96px;
  --x: 86%;
  --y: 54%;
  --color: var(--bokeh-warm);
  --alpha: 0.42;
  --duration: 25s;
  --delay: -9s;
  --float-x: -38px;
  --float-y: -48px;
  --float-x-end: 20px;
  --float-y-end: 34px;
}
.bokeh--5 {
  --size: 144px;
  --x: 16%;
  --y: 72%;
  --color: var(--bokeh-violet);
  --alpha: 0.32;
  --duration: 35s;
  --delay: -15s;
  --float-x: 54px;
  --float-y: -30px;
  --float-x-end: -36px;
  --float-y-end: 36px;
}
.bokeh--6 {
  --size: 64px;
  --x: 48%;
  --y: 62%;
  --color: var(--bokeh-soft);
  --alpha: 0.34;
  --duration: 24s;
  --delay: -3s;
  --float-x: 30px;
  --float-y: 44px;
  --float-x-end: -24px;
  --float-y-end: -32px;
}
.bokeh--7 {
  --size: 118px;
  --x: 58%;
  --y: 82%;
  --color: var(--bokeh-cool);
  --alpha: 0.38;
  --duration: 29s;
  --delay: -21s;
  --float-x: -34px;
  --float-y: -46px;
  --float-x-end: 42px;
  --float-y-end: 28px;
}
.bokeh--8 {
  --size: 52px;
  --x: 38%;
  --y: 34%;
  --color: var(--bokeh-pink);
  --alpha: 0.4;
  --duration: 19s;
  --delay: -5s;
  --float-x: 26px;
  --float-y: -30px;
  --float-x-end: -18px;
  --float-y-end: 20px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.58;
  will-change: transform;
  mix-blend-mode: screen;
}
.blob--1 {
  width: 560px; height: 560px;
  top: -150px; right: -90px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: drift1 18s ease-in-out infinite;
}
.blob--2 {
  width: 520px; height: 520px;
  bottom: -180px; left: -130px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  animation: drift2 22s ease-in-out infinite;
}
.blob--3 {
  width: 480px; height: 480px;
  top: 38%; left: 50%;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  animation: drift3 26s ease-in-out infinite;
}
.grain {
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift1 { 50% { transform: translate(-60px, 50px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(50px, -40px) scale(1.05); } }
@keyframes drift3 { 50% { transform: translate(-40px, -30px) scale(0.95); } }
@keyframes bokeh-drift {
  50% { transform: translate3d(-2.5%, 1.8%, 0) rotate(2deg) scale(1.04); }
  100% { transform: translate3d(2%, -2.2%, 0) rotate(-2deg) scale(1.02); }
}
@keyframes bokeh-orbit {
  50% { transform: translate3d(2.8%, -2%, 0) rotate(-3deg) scale(1.05); }
  100% { transform: translate3d(-1.8%, 2.4%, 0) rotate(2deg) scale(1.03); }
}
@keyframes bokeh-float {
  0% { transform: translate3d(0, 0, 0) scale(0.92); }
  50% { transform: translate3d(var(--float-x), var(--float-y), 0) scale(1.08); }
  100% { transform: translate3d(var(--float-x-end), var(--float-y-end), 0) scale(0.98); }
}

/* ============================ Glass utility ============================ */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Light-mode background/glass tuning. Declared *after* the base .blob/.grain/
   .glass rules above so it actually wins the cascade — same specificity means
   source order decides. */
@media (prefers-color-scheme: light) {
  /* Soften the floating blobs so they read as a tint, not a wash, on light bg */
  .blob { opacity: 0.3; mix-blend-mode: multiply; }
  .bokeh { opacity: 0.28; mix-blend-mode: multiply; }
  .bg::before { opacity: 0.78; filter: blur(30px) saturate(118%); }
  .bg::after { opacity: 0.42; filter: blur(52px) saturate(120%); }
  .grain { opacity: 0.025; }
  /* The inset white highlight is for dark glass; drop it on light surfaces */
  .glass { box-shadow: var(--shadow); }
}

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(255, 61, 119, 0.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -10px rgba(255, 61, 119, 0.75); }
.btn--ghost {
  background: var(--glass);
  border-color: var(--border);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--border-hover); background: var(--glass-strong); }
.btn--block { width: 100%; }

/* ============================ Navbar ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: calc(16px + var(--safe-top)) max(20px, var(--safe-right)) 16px max(20px, var(--safe-left));
  transition: padding 0.3s ease;
}
.nav.scrolled { padding-top: calc(10px + var(--safe-top)); padding-bottom: 10px; }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 20px;
  border-radius: 100px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand__mark { display: inline-flex; }
.brand__dot { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a { position: relative; transition: color 0.2s ease; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta { padding: 11px 22px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ Sections ============================ */
.section { padding: 110px 0; position: relative; }

.section__head { max-width: 620px; margin-bottom: 56px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.section__lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================ Hero ============================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(140px + var(--safe-top));
  padding-bottom: calc(60px + var(--safe-bottom));
  position: relative;
}
.hero__inner { max-width: 880px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
}
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 122, 61, 0); } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__sub {
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
}
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: calc(32px + var(--safe-bottom)); left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 100px;
  display: flex;
  justify-content: center;
}
.scroll-cue span {
  width: 4px; height: 8px;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrolldot 1.6s ease-in-out infinite;
}
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8px); } }

/* ============================ Cards / Services ============================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-hover); background: var(--glass-strong); }
.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.card__icon svg { display: block; color: inherit; }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ============================ Process ============================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-hover); }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ============================ Contact ============================ */
.contact {
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact__intro .section__title { margin-top: 6px; }
.contact__list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 18px;
}
.contact__list li { display: flex; flex-direction: column; gap: 3px; }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__list a { font-size: 1.15rem; font-weight: 600; transition: color 0.2s ease; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--accent); }

.contact__form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--input-bg-focus);
}
.form__note { font-size: 0.9rem; min-height: 1em; }
.form__note.success { color: #4ade80; }
.form__note.error { color: #fb7185; }

/* ============================ Footer ============================ */
.footer { padding: 64px 0 calc(32px + var(--safe-bottom)); border-top: 1px solid var(--border-soft); margin-top: 40px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand .brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.footer__brand p { color: var(--muted); margin-top: 12px; max-width: 360px; }
.footer__col h4 { font-family: var(--font-display); margin-bottom: 16px; font-size: 1rem; }
.footer__col a, .footer__col span { display: block; color: var(--muted); margin-bottom: 10px; transition: color 0.2s ease; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer__top:hover { color: var(--accent); }

/* ============================ Reveal animation ============================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================ Responsive ============================ */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; padding: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--nav-mobile-bg);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  /* larger tap targets in the mobile menu */
  .nav__links a { padding: 12px 10px; border-radius: 12px; }
  .nav__links a::after { display: none; }
  .nav__links a:hover, .nav__links a.active { background: var(--glass); }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .hero { padding-top: calc(116px + var(--safe-top)); }
  .scroll-cue { display: none; }
  .hero__cta { gap: 12px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .nav, .nav.scrolled { padding-inline: 14px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .contact { padding: 24px; gap: 32px; }
  .card, .step { padding: 26px 22px; }
  /* full-width CTAs are easier to tap */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  /* 16px inputs stop iOS from auto-zooming on focus */
  .field input, .field textarea { font-size: 16px; }
  .contact__list a { font-size: 1.05rem; }
}

/* Landscape phones (short viewports). The portrait hero reserves a full
   screen height with generous top padding tuned for tall layouts; on a phone
   held sideways (~360–430px tall) that buries the value prop and the primary
   CTAs below the fold. Compact the hero so the headline, subhead, and call to
   action stay reachable without a long scroll. Gated on height + orientation
   so portrait phones, iPads, and desktops keep their full-height hero. */
@media (orientation: landscape) and (max-height: 480px) {
  .hero {
    min-height: 0;
    /* clears the fixed nav (~91px with the inline CTA) plus a small gap */
    padding-top: calc(100px + var(--safe-top));
    padding-bottom: calc(36px + var(--safe-bottom));
  }
  .pill { margin-bottom: 14px; }
  .hero__title { font-size: clamp(2rem, 5.4vw, 3.1rem); }
  .hero__sub { margin-top: 12px; }
  .hero__cta { margin-top: 20px; }
  .scroll-cue { display: none; }
}

/* Lighter blurred background work on small / low-power devices */
@media (max-width: 760px) {
  .bokeh { transform-origin: center; }
  .bokeh--1 { --size: 86px; --x: 10%; --y: 18%; }
  .bokeh--2 { --size: 56px; --x: 44%; --y: 10%; }
  .bokeh--3 { --size: 118px; --x: 68%; --y: 26%; }
  .bokeh--4 { --size: 74px; --x: 82%; --y: 58%; }
  .bokeh--5 { --size: 108px; --x: 8%; --y: 72%; }
  .bokeh--6 { --size: 52px; --x: 50%; --y: 66%; }
  .bokeh--7 { --size: 92px; --x: 58%; --y: 84%; }
  .bokeh--8 { --size: 46px; --x: 34%; --y: 38%; }
  .bg::before { filter: blur(22px) saturate(125%); opacity: 0.58; }
  .bg::after { filter: blur(34px) saturate(135%); opacity: 0.42; }
  .blob { filter: blur(74px); opacity: 0.48; }
  .blob--1 { width: 390px; height: 390px; }
  .blob--2 { width: 360px; height: 360px; }
  .blob--3 { width: 330px; height: 330px; }
}

@media (prefers-color-scheme: light) and (max-width: 760px) {
  .bg::before { opacity: 0.68; }
  .bg::after { opacity: 0.34; }
  .blob { opacity: 0.28; }
}

/* ============================ Legal pages ============================ */
.legal { padding: calc(150px + var(--safe-top)) 0 calc(90px + var(--safe-bottom)); }
.legal__inner {
  max-width: 820px;
  margin-inline: auto;
  border-radius: 28px;
  padding: 48px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 22px;
  transition: color 0.2s ease;
}
.legal__back:hover { color: var(--accent); }
.legal__inner h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.legal__updated { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.legal__inner h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 34px 0 12px;
}
.legal__inner p, .legal__inner li { color: var(--muted); }
.legal__inner p { margin-bottom: 14px; }
.legal__inner ul { margin: 0 0 14px 20px; display: grid; gap: 8px; }
.legal__inner a { color: var(--accent); }

@media (max-width: 520px) {
  .legal__inner { padding: 28px; }
}

/* ============================ Accessibility ============================ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
