/* ═══════════════════════════════════════════════════════════
   Glo-Web — design system
   Day mode: white · Night mode: black · Accent: cyan
   Font: Apple San Francisco system stack
   Full token reference: DESIGN.md
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --cyan: #06B6D4;          /* main brand cyan */
  --cyan-deep: #0891B2;     /* darker cyan — readable on white */
  --cyan-bright: #22D3EE;   /* lighter cyan — readable on black */

  /* Day mode (default) */
  --bg: #FFFFFF;
  --bg-soft: #F7FAFB;
  --surface: #FFFFFF;
  --text: #0B1220;
  --text-muted: #5A6675;
  --line: #E6EBEF;
  --accent: var(--cyan-deep);
  --accent-soft: rgba(6, 182, 212, 0.10);
  --glow: rgba(6, 182, 212, 0.35);
  --orb: rgba(6, 182, 212, 0.16);
  --error: #DC2626;
  --success: #0E9F6E;

  /* Honeycomb — invisible at rest; revealed only by the cursor light.
     Three tones build one light source: hot core, mid glow, soft bloom. */
  --hex-core: rgba(8, 145, 178, 1);
  --hex-glow: rgba(6, 182, 212, 0.55);
  --hex-bloom: rgba(6, 182, 212, 0.5);
  --hex-halo: rgba(6, 182, 212, 0.07);

  /* Tileable pointy-top hexagon grid used as a mask (see DESIGN.md).
     Double-lined: every cell carries an outer ring plus an inner ring inset by
     scaling 0.875 about the cell's own centre, so the two stay parallel. */
  --hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60' viewBox='0 0 34.64 60'%3E%3Cg fill='none' stroke='%23000'%3E%3Cg stroke-width='1.1'%3E%3Cpolygon points='17.32,10 34.64,20 34.64,40 17.32,50 0,40 0,20'/%3E%3Cpolygon points='0,-20 17.32,-10 17.32,10 0,20 -17.32,10 -17.32,-10'/%3E%3Cpolygon points='34.64,-20 51.96,-10 51.96,10 34.64,20 17.32,10 17.32,-10'/%3E%3Cpolygon points='0,40 17.32,50 17.32,70 0,80 -17.32,70 -17.32,50'/%3E%3Cpolygon points='34.64,40 51.96,50 51.96,70 34.64,80 17.32,70 17.32,50'/%3E%3C/g%3E%3Cg stroke-width='0.7'%3E%3Cpolygon points='17.32,12.5 32.48,21.25 32.48,38.75 17.32,47.5 2.16,38.75 2.16,21.25'/%3E%3Cpolygon points='0,-17.5 15.16,-8.75 15.16,8.75 0,17.5 -15.16,8.75 -15.16,-8.75'/%3E%3Cpolygon points='34.64,-17.5 49.8,-8.75 49.8,8.75 34.64,17.5 19.48,8.75 19.48,-8.75'/%3E%3Cpolygon points='0,42.5 15.16,51.25 15.16,68.75 0,77.5 -15.16,68.75 -15.16,51.25'/%3E%3Cpolygon points='34.64,42.5 49.8,51.25 49.8,68.75 34.64,77.5 19.48,68.75 19.48,51.25'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  /* Cells sized so the double outline reads as two distinct rings, not a mesh */
  --hex-size: 58px 100.46px;

  /* Type scale */
  --fs-hero: clamp(3rem, 9vw, 6.5rem);
  --fs-h2: clamp(2rem, 5vw, 3.25rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  /* Spacing rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  --radius: 18px;
  --radius-pill: 999px;
  --container: 68rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="night"] {
  --bg: #050708;
  --bg-soft: #0A0E10;
  --surface: #0C1114;
  --text: #F2F6F8;
  --text-muted: #9AA7B0;
  --line: rgba(255, 255, 255, 0.10);
  --accent: var(--cyan-bright);
  --accent-soft: rgba(34, 211, 238, 0.10);
  --glow: rgba(34, 211, 238, 0.45);
  --orb: rgba(6, 182, 212, 0.13);
  --hex-core: rgba(190, 247, 255, 1);
  --hex-glow: rgba(34, 211, 238, 0.7);
  --hex-bloom: rgba(34, 211, 238, 0.6);
  --hex-halo: rgba(34, 211, 238, 0.07);
  --error: #F87171;
  --success: #34D399;
}

/* ═══════════ Base ═══════════ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.45s ease, color 0.45s ease;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-2); }

a { color: var(--accent); text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-soft); color: var(--text); }

/* ═══════════ Scroll progress ═══════════ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1000;
  box-shadow: 0 0 12px var(--glow);
}

/* ═══════════ Aurora backdrop ═══════════ */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--orb), transparent 65%);
  will-change: transform;
  transition: background 0.45s ease;
}

.aurora-orb-1 { top: -22vmax; right: -18vmax; }
.aurora-orb-2 { bottom: -30vmax; left: -20vmax; }

/* ═══════════ Honeycomb + cursor glow ═══════════ */

/* The grid has NO resting state — it exists only where the cursor light falls.
   Three layers stack into one believable light source:
     1. .cursor-halo      — soft ambient wash (no mask)
     2. .honeycomb-bloom  — blurred hexagons, the halo around the filament
     3. .honeycomb-glow   — crisp hexagons, the filament itself           */

.honeycomb-glow,
.honeycomb-bloom > i {
  -webkit-mask-image: var(--hex-mask);
  mask-image: var(--hex-mask);
  -webkit-mask-size: var(--hex-size);
  mask-size: var(--hex-size);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  /* Scroll-bound: JS drives --hex-shift so the grid slides with scroll depth
     while the light above it stays locked to the cursor. */
  -webkit-mask-position: 0 var(--hex-shift, 0px);
  mask-position: 0 var(--hex-shift, 0px);
  /* No will-change here — measured at a locked 60fps without it, and the hint
     showed no benefit while costing memory on two full-viewport layers. */
}

.cursor-halo,
.honeycomb-bloom,
.honeycomb-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s var(--ease-out);
}

.aurora.glow-on .cursor-halo,
.aurora.glow-on .honeycomb-bloom,
.aurora.glow-on .honeycomb-glow { opacity: 1; }

/* 1. Ambient wash — gives the light somewhere to sit */
.cursor-halo {
  background: radial-gradient(
    circle 340px at var(--mx, -999px) var(--my, -999px),
    var(--hex-halo),
    transparent 70%
  );
}

/* 2. Bloom — blur lives on the wrapper so it softens the ALREADY-masked
      hexagons (a filter on the masked element itself gets re-clipped). */
.honeycomb-bloom {
  filter: blur(7px);
}

.honeycomb-bloom > i {
  display: block;
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 300px at var(--mx, -999px) var(--my, -999px),
    var(--hex-bloom),
    transparent 74%
  );
}

/* 3. Filament — hot core fading through brand cyan to nothing */
.honeycomb-glow {
  background: radial-gradient(
    circle 230px at var(--mx, -999px) var(--my, -999px),
    var(--hex-core) 0%,
    var(--hex-glow) 32%,
    transparent 70%
  );
}

/* ═══════════ Nav ═══════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-glow {
  color: var(--accent);
  text-shadow: 0 0 18px var(--glow);
}

.brand-dot { color: var(--accent); }

/* The hyphen reads as punctuation, not a glowing brand letter — keep it quiet */
.brand-hyphen { color: var(--text-muted); font-weight: 400; }

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0.25rem;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.45s ease, color 0.45s ease;
}

.theme-toggle:hover, .menu-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--glow);
}

.theme-toggle svg, .menu-toggle svg { width: 20px; height: 20px; }

/* Sun shown in night mode (tap → day), moon in day mode (tap → night) */
.icon-sun { display: none; }
[data-theme="night"] .icon-sun { display: block; }
[data-theme="night"] .icon-moon { display: none; }

.menu-toggle { display: none; }

/* ═══════════ Layout ═══════════ */

main { display: block; }

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-6) clamp(1.25rem, 4vw, 3rem);
}

.section-eyebrow, .hero-eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.section-title { font-size: var(--fs-h2); font-weight: 700; max-width: 26ch; }

.section-sub { color: var(--text-muted); max-width: 54ch; margin-bottom: var(--space-4); }

/* ═══════════ Hero ═══════════ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem clamp(1.25rem, 4vw, 3rem) var(--space-5);
  position: relative;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-3);
}

.glow-text {
  color: var(--accent);
  text-shadow: 0 0 34px var(--glow), 0 0 90px var(--glow);
}

.hero-dot { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: var(--space-4);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-hint svg {
  width: 16px; height: 16px;
  animation: hint-bob 2.2s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════════ Buttons ═══════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan));
  color: #FFFFFF;
  box-shadow: 0 6px 24px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px var(--glow);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

/* ═══════════ Cards ═══════════ */

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out),
              background 0.45s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.12);
  transform: translateY(-4px);
}

.card h3 { font-size: var(--fs-h3); font-weight: 700; }

.card p { color: var(--text-muted); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.card-icon svg { width: 26px; height: 26px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.5rem 0;
  min-height: 44px;
}

.card-link svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }
.card-link:hover svg { transform: translateX(4px); }

/* ═══════════ Steps ═══════════ */

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.step-num {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: 0.98rem; }

/* ═══════════ Request form ═══════════ */

.request-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, var(--space-4));
  max-width: 46rem;
  transition: background 0.45s ease, border-color 0.45s ease;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-3);
}

.form-field { margin-bottom: var(--space-3); }

.form-field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.req { color: var(--accent); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.45s ease, color 0.45s ease;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:hover, .form-field select:hover, .form-field textarea:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: var(--error); }

.field-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0;
}

.field-error {
  font-size: 0.82rem;
  color: var(--error);
  margin: 0.4rem 0 0;
  min-height: 0;
}

.field-error:empty { display: none; }

.btn-submit { position: relative; min-width: 11rem; }

.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .btn-spinner { display: inline-block; }
.btn-submit.loading { pointer-events: none; opacity: 0.85; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: var(--space-2);
  font-weight: 500;
  min-height: 1.5em;
}

.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }

/* ═══════════ Payments ═══════════ */

.pay-brand { color: var(--accent); }

.pay-card .btn { margin-top: var(--space-2); }

.pay-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--space-3);
  max-width: 60ch;
}

/* ═══════════ Footer ═══════════ */

.footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-5);
  padding: var(--space-5) clamp(1.25rem, 4vw, 3rem) var(--space-3);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo { font-size: 1.5rem; margin-bottom: 0.5rem; display: inline-block; }

.footer-tag { color: var(--text-muted); font-size: var(--fs-small); }

.footer-contact { text-align: right; }

.footer-link {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--accent); }

.footer-small { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

/* Instagram — deliberately small, bottom corner */
.insta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  color: var(--text-muted);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.insta-link svg { width: 18px; height: 18px; }

.insta-link:hover { color: var(--accent); box-shadow: 0 0 14px var(--glow); }

/* ═══════════ Toast ═══════════ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, calc(100% + 2.5rem));
  background: var(--text);
  color: var(--bg);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease-out);
  z-index: 1100;
  max-width: min(92vw, 34rem);
  text-align: center;
}

.toast.show { transform: translate(-50%, 0); }

/* ═══════════ Cinematic reveals ═══════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out),
              filter 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ═══════════ Reduced motion ═══════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-scroll-hint svg { animation: none; }
  .aurora-orb { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.15s !important; }
}

/* ═══════════ Responsive ═══════════ */

@media (max-width: 860px) {
  .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-contact { text-align: left; }
}

@media (max-width: 720px) {
  /* Smaller cells so the grid stays proportional on a phone */
  :root { --hex-size: 41px 71.01px; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-links a:hover { background: var(--accent-soft); }

  .menu-toggle { display: inline-flex; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .section { padding-top: var(--space-5); padding-bottom: var(--space-5); }

  .hero { padding-top: 6rem; }

  .hero-scroll-hint { display: none; }
}
