/* style.css */
:root {
  --bg: #0a0a0c;
  --surface: #121216;
  --surface-hover: #18181d;
  --text-main: #ededed;
  --text-muted: #8a8a93;
  --accent: #8b9cb6;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);
  --font: 'Manrope', sans-serif;
  --space-section: 110px;
}

/* Force dark theme on all browsers including Safari iOS */
:root, html {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  background-color: #0a0a0c;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Prevent white flash on iOS Safari */
  -webkit-overflow-scrolling: touch;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 5%;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
header.scrolled {
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
}
.logo svg {
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo:hover svg {
  transform: translateY(-2px) scale(1.05);
  color: var(--text-main);
}
.logo span {
  color: var(--accent);
}
.lang-switcher {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px;
}
.lang-switcher button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-switcher button.active {
  background: var(--bg);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-cta {
  background: var(--text-main);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.header-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .header-actions { gap: 0.5rem; }
  .header-cta { padding: 6px 12px; font-size: 12px; }
  .lang-switcher button { padding: 6px 8px; font-size: 11px; }
}


/* Base Layout */
section {
  padding: var(--space-section) 5%;
  max-width: 1200px;
  margin: 0 auto;
}
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
}
.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Hero */
#hero {
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  max-width: none;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.2);
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.85;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content > * {
  max-width: 800px;
}
.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-content .subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.typewriter-container {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 3rem;
  height: 2.5rem;
}
.cursor {
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.btn-primary {
  background: var(--text-main);
  color: var(--bg);
  border: none;
  padding: 16px 32px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, box-shadow 0.3s ease;
  will-change: transform;
  box-shadow: 0 0 20px rgba(237, 237, 237, 0.07);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary::after {
  content: '\2192';
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 32px rgba(237, 237, 237, 0.18);
}
.btn-primary:hover::after {
  transform: translateX(4px);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 24px;
  filter: grayscale(20%) contrast(1.1);
}
.about-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}
.stat-item h3 {
  font-size: 3rem;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cards Genric */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-icon {
  margin-bottom: 2rem;
  color: var(--accent);
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Portfolio */
.filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text-main);
  will-change: transform;
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.portfolio-visual {
  background: var(--bg);
  border-radius: 12px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.portfolio-visual svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.5;
}
.portfolio-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.portfolio-info .view-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Process */
.process-layout {
  display: flex;
  align-items: flex-start;
  gap: 5%;
  position: relative;
}
.process-left {
  flex: 1;
  position: sticky;
  top: 150px;
  height: max-content;
  padding-bottom: 50px;
}
.process-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sticky-number {
  font-size: clamp(6rem, 10vw, 12rem);
  font-weight: 700;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.05);
  font-family: monospace;
  margin-left: -5px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.05em;
}
.sticky-title {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-top: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-number.updating {
  transform: translateY(-30px);
  opacity: 0;
  filter: blur(8px);
}
.sticky-title.updating {
  transform: translateY(15px);
  opacity: 0;
  filter: blur(8px);
}
.process-step {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}
.step-mobile-title {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.step-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .process-layout {
    flex-direction: column;
  }
  .process-left {
    display: none;
  }
  .process-step {
    min-height: auto;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
  }
  .process-step:last-child {
    border-bottom: none;
  }
  .step-mobile-title {
    display: block;
  }
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.tech-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.3s ease;
  cursor: default;
}
.tech-item:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

/* ── Anatomy Split Layout ──────────────────────────────────── */

/* Zone palette — muted tones that match the dark theme */
:root {
  --z0: rgba(139, 156, 182, 0.18);  /* nav      — desaturated blue */
  --z0h: rgba(139, 156, 182, 0.55);
  --z1: rgba(168, 148, 182, 0.18);  /* hero     — muted lavender */
  --z1h: rgba(168, 148, 182, 0.55);
  --z2: rgba(139, 182, 160, 0.18);  /* cta      — dusty sage */
  --z2h: rgba(139, 182, 160, 0.55);
  --z3: rgba(182, 167, 139, 0.18);  /* social   — warm sand */
  --z3h: rgba(182, 167, 139, 0.55);
  --z4: rgba(139, 170, 182, 0.18);  /* features — steel */
  --z4h: rgba(139, 170, 182, 0.55);
  --z5: rgba(182, 139, 145, 0.18);  /* mobile   — dusty rose */
  --z5h: rgba(182, 139, 145, 0.55);
  --z6: rgba(182, 175, 139, 0.18);  /* speed    — warm ochre */
  --z6h: rgba(182, 175, 139, 0.55);
  --z7: rgba(152, 139, 182, 0.18);  /* footer   — soft violet */
  --z7h: rgba(152, 139, 182, 0.55);
}

.anatomy-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
}

/* LEFT ─ Sticky wireframe column */
.anatomy-left {
  position: sticky;
  top: 120px;
  height: max-content;
}

.anatomy-wireframe-wrap {
  position: relative;
  width: 100%;
}

/* SVG connector overlay — same size as wireframe */
.anatomy-connectors {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 10;
}
.anatomy-connectors line {
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.anatomy-connectors line.visible {
  opacity: 0.7;
}

/* Wireframe card */
.anatomy-wf {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* ── Individual WF Zones ─────── */
.wf-zone {
  position: relative;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.wf-zone:last-child { border-bottom: none; }

/* Zone number label (top-right corner) */
.wf-zone-label {
  position: absolute;
  top: 6px; right: 8px;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity 0.3s ease;
  font-family: monospace;
  user-select: none;
}

/* Active zone highlight (driven by JS class .wf-active) */
.wf-zone.wf-active .wf-zone-label { opacity: 1; }

.wf-zone[data-zone="0"].wf-active { background: var(--z0); border-color: var(--z0h); }
.wf-zone[data-zone="1"].wf-active { background: var(--z1); border-color: var(--z1h); }
.wf-zone[data-zone="2"].wf-active { background: var(--z2); border-color: var(--z2h); }
.wf-zone[data-zone="3"].wf-active { background: var(--z3); border-color: var(--z3h); }
.wf-zone[data-zone="4"].wf-active { background: var(--z4); border-color: var(--z4h); }
.wf-zone[data-zone="5"].wf-active { background: var(--z5); border-color: var(--z5h); }
.wf-zone[data-zone="6"].wf-active { background: var(--z6); border-color: var(--z6h); }
.wf-zone[data-zone="7"].wf-active { background: var(--z7); border-color: var(--z7h); }

/* Zone 0 — Nav */
.wf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}
.wf-nav-logo {
  width: 52px; height: 8px;
  background: var(--border-hover);
  border-radius: 4px;
}
.wf-nav-links {
  display: flex; gap: 6px;
}
.wf-nav-link {
  width: 28px; height: 6px;
  background: var(--border-hover);
  border-radius: 3px;
}

/* Zone 1 — Hero */
.wf-hero {
  padding: 20px 14px;
}
.wf-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.wf-h-badge {
  width: 60px; height: 14px;
  background: var(--border-hover);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.wf-h-title {
  width: 85%; height: 14px;
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
}
.wf-h-subtitle {
  width: 60%; height: 8px;
  background: var(--border-hover);
  border-radius: 3px;
}
.wf-h-btn {
  width: 80px; height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
/* CTA shimmer — also acts as zone 2 indicator */
.wf-h-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  animation: btnShimmer 2.5s ease infinite;
}
@keyframes btnShimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Zone 2 — CTA row (standalone button row) */
.wf-cta-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
}
.wf-cta-row .wf-h-btn {
  width: 90px;
  height: 26px;
  margin-top: 0;
}

/* Zone 3 — Social proof */
.wf-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}
.wf-social-avatars {
  display: flex;
}
.wf-avatar {
  width: 20px; height: 20px;
  background: var(--border-hover);
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -6px;
}
.wf-avatar:first-child { margin-left: 0; }
.wf-social-stars {
  width: 48px; height: 6px;
  background: rgba(182,167,139,0.4);
  border-radius: 3px;
}
.wf-social-text {
  flex: 1; height: 6px;
  background: var(--border-hover);
  border-radius: 3px;
}

/* Zone 4 — Features */
.wf-features {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
}
.wf-feat-block {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wf-feat-icon {
  width: 16px; height: 16px;
  background: var(--border-hover);
  border-radius: 4px;
}
.wf-feat-text {
  width: 100%; height: 6px;
  background: var(--border-hover);
  border-radius: 3px;
}

/* Zone 5 — Mobile */
.wf-mobile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.wf-mobile-device {
  width: 36px; height: 56px;
  border: 2px solid var(--border-hover);
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}
.wf-mobile-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 3px;
}
.wf-mob-line {
  width: 100%; height: 4px;
  background: var(--border-hover);
  border-radius: 2px;
}
.wf-mob-line.short { width: 65%; }
.wf-mob-btn {
  width: 70%; height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin-top: 2px;
}
.wf-mobile-label-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wf-mob-text-line {
  height: 6px;
  background: var(--border-hover);
  border-radius: 3px;
  width: 100%;
}
.wf-mob-text-line.short { width: 65%; }

/* Zone 6 — Speed */
.wf-speed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.wf-speed-bar {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-hover);
}
.wf-speed-fill {
  width: 18%;
  height: 100%;
  background: rgba(182,175,139,0.6);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wf-speed-fill.animated { width: 18%; }
.wf-speed-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
}

/* Zone 7 — Footer */
.wf-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}
.wf-footer-line {
  width: 100%; height: 1px;
  background: var(--border-hover);
}
.wf-footer-cta {
  width: 80px; height: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  align-self: center;
}
.wf-footer-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.wf-footer-link {
  width: 36px; height: 6px;
  background: var(--border-hover);
  border-radius: 3px;
}

/* ── RIGHT: scroll list ────────────────────────────────────── */
.anatomy-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.5rem;
}

.anatomy-item {
  position: relative;
  padding: 2rem 0 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  cursor: default;
}
.anatomy-item:last-child { border-bottom: none; }

/* entry animation driven by JS .visible class */
.anatomy-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* active state (current zone in view) */
.anatomy-item.active {
  border-color: transparent;
}

/* Left accent bar */
.anatomy-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  border-radius: 2px;
  background: var(--zone-color, var(--accent));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.anatomy-item.active::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

.anatomy-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.anatomy-item-num {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--zone-color, var(--text-muted));
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.anatomy-item.active .anatomy-item-num {
  border-color: var(--zone-color, var(--accent));
  background: rgba(255,255,255,0.07);
}

.anatomy-item-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  transition: color 0.35s ease;
}
.anatomy-item.active .anatomy-item-title {
  color: var(--text-main);
}

.anatomy-item-metric {
  margin-left: auto;
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--zone-color, var(--text-muted));
  opacity: 0.7;
  white-space: nowrap;
}

.anatomy-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  opacity: 0.65;
  transition: opacity 0.35s ease;
}
.anatomy-item.active .anatomy-item-desc {
  opacity: 1;
}

/* ── Scanning line animation on active zone wireframe ─ */
@keyframes scanLine {
  0%   { top: 0; opacity: 0.6; }
  90%  { top: 100%; opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}
.wf-zone.wf-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  animation: scanLine 1.2s ease forwards;
}
.wf-zone[data-zone="0"].wf-active::after { color: var(--z0h); }
.wf-zone[data-zone="1"].wf-active::after { color: var(--z1h); }
.wf-zone[data-zone="2"].wf-active::after { color: var(--z2h); }
.wf-zone[data-zone="3"].wf-active::after { color: var(--z3h); }
.wf-zone[data-zone="4"].wf-active::after { color: var(--z4h); }
.wf-zone[data-zone="5"].wf-active::after { color: var(--z5h); }
.wf-zone[data-zone="6"].wf-active::after { color: var(--z6h); }
.wf-zone[data-zone="7"].wf-active::after { color: var(--z7h); }

/* ── MOBILE: Split-screen swipe carousel (Variant B) ────────── */
@media (max-width: 1024px) {

  /* Section itself: let content flow, no padding-bottom on right */
  #landing-anatomy {
    padding-bottom: 0;
  }

  .anatomy-split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Wireframe panel: normal flow on mobile, full width */
  .anatomy-left {
    position: relative;
    top: auto;
    width: 100%;
    background: transparent;
    padding-bottom: 1rem;
    border-bottom: none;
  }

  /* Wireframe: max height, internal scroll for zone visibility */
  .anatomy-wf {
    max-width: 100%;
    max-height: 42vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 12px;
  }
  .anatomy-wf::-webkit-scrollbar { display: none; }

  /* Hide SVG connectors on mobile */
  .anatomy-connectors { display: none; }

  /* ── Swipe carousel container ────── */
  .anatomy-right {
    position: relative;
    overflow: hidden;
    min-height: 200px;
  }

  /* Track: items laid out horizontally */
  .anatomy-mobile-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    touch-action: pan-y;
  }

  /* Each item in carousel: full width of right panel */
  .anatomy-item {
    min-width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: none;
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
  }
  .anatomy-item::before { display: none; }

  .anatomy-item-desc {
    max-width: 100%;
    opacity: 1 !important;
  }

  .anatomy-item-title {
    font-size: 1.1rem;
    color: var(--text-main) !important;
  }

  /* ── Counter & nav row ───────────── */
  .anatomy-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
  }

  .anatomy-mobile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-hover);
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .anatomy-mobile-btn:active {
    transform: scale(0.92);
  }
  .anatomy-mobile-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
  }

  .anatomy-mobile-counter {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    flex: 1;
    text-align: center;
  }

  /* Progress dots */
  .anatomy-mobile-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
  .anatomy-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border-hover);
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .anatomy-dot.active {
    background: var(--zone-color, var(--accent));
    transform: scale(1.5);
  }
}

@media (max-width: 480px) {
  .anatomy-wf {
    max-height: 38vh;
    border-radius: 10px;
  }
  .anatomy-item {
    padding: 1.5rem 1.25rem 1rem;
  }
  .anatomy-item-metric { display: none; }
}


/* Features Unpacking */
.features-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
}
.features-list {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.feature-item:last-child { border-bottom: none; }
.feature-item.active, .feature-item:hover { opacity: 1; padding-left: 1rem; }
.feature-item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main); transition: color 0.3s ease;}
.feature-item.active h3 { color: var(--accent); }
.feature-item p { font-size: 1rem; color: var(--text-muted); }

.features-visual {
  position: relative;
  background: var(--border);
  overflow: hidden;
}
.visual-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}
.feature-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.05);
}
.feature-img.active {
  opacity: 1;
  transform: scale(1);
}
@media(max-width: 768px) {
  .features-wrapper { grid-template-columns: 1fr; }
  .features-list { padding: 2rem; }
  .features-visual { display: none; }
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  display: flex;
  flex-direction: column;
}
.review-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}
.avatar {
  width: 40px;
  height: 40px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-main);
}
.author-info h4 {
  font-size: 0.95rem;
}
.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Form Section */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.contact-text {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row {
  display: flex;
  gap: 1.5rem;
}
.form-row .form-group {
  flex: 1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}
.contact-form select option {
  background: #111;
  color: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}
.submit-btn {
  background: var(--text-main);
  color: var(--bg);
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1rem;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}
.contact-alt {
  margin-top: 3rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.contact-alt p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alt-btn {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  display: inline-block;
}
.alt-btn:hover {
  border-color: var(--text-main);
  background: var(--text-main);
  color: var(--bg);
}

.giant-cta {
  text-align: center;
  padding: 4rem 0;
}
.cta-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.1em;
  background: linear-gradient(135deg, #fff 0%, #8b9cb6 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 5s ease infinite;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes gradientFlow {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.cta-title:hover {
  transform: scale(1.02);
}
.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
}
.cta-btn {
  display: inline-block;
  background: var(--text-main);
  color: var(--bg);
  padding: 20px 48px;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 80px 5%; }
  .header-inner { flex-direction: row; gap: 1rem; flex-wrap: wrap; }
  header { padding: 16px 5%; }

  /* Fix: use flex not block so ::after arrow works */
  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 1rem;
    box-sizing: border-box;
  }
  .cta-btn {
    width: 100%;
    display: block;
    padding: 18px 24px;
    font-size: 1.1rem;
    text-align: center;
    box-sizing: border-box;
  }

  /* Hero */
  #hero { min-height: 100svh; padding: 120px 5% 100px; }
  .hero-content h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-actions { width: 100%; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }
  .filters { gap: 0.4rem; }
  .filter-btn { padding: 7px 14px; font-size: 12px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Stats */
  .about-stats { gap: 2rem; }
  .stat-item h3 { font-size: 2.5rem; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Process */
  .process-number { font-size: clamp(6rem, 30vw, 10rem); }

  /* CTA / Contact Form */
  .cta-title { font-size: clamp(2rem, 8vw, 3rem); }
  .giant-cta { padding: 0 5%; }
  .contact-wrapper { padding: 2rem 1.5rem; }
  .form-row { flex-direction: column; gap: 1.5rem; }

  /* Tech grid */
  .tech-grid { gap: 0.6rem; }
}

@media (max-width: 480px) {
  section { padding: 60px 5%; }
  .about-image img { aspect-ratio: 3/4; }
  .card { padding: 1.75rem; }
  .portfolio-card { padding: 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-links { gap: 1.25rem; flex-wrap: wrap; }
}


/* Tech Marquee */
.tech-marquee {
  width: 100%;
  padding: 0.8rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.tech-marquee-inner {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  animation: scrollText 20s linear infinite;
  will-change: transform;
}
.tech-marquee-inner .dot {
  color: var(--accent);
}
@keyframes scrollText {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}


/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted);
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* Subtle Background Glow */
body::before {
  content: "";
  position: fixed;
  top: -20%; left: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(120, 120, 255, 0.04) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  bottom: -20%; right: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(255, 120, 200, 0.03) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Hero Widgets */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-badge .badge-icon {
  color: var(--accent);
  font-weight: bold;
}

.hero-bottom-left {
  position: absolute;
  bottom: 5%;
  left: 5%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.local-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.hero-bottom-right {
  position: absolute;
  bottom: 5%;
  right: 5%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.scroll-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transform: rotate(180deg);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted) 0%, transparent 100%);
}

@media (max-width: 768px) {
  .hero-bottom-right {
    display: none;
  }
  .hero-bottom-left {
    bottom: 3%;
  }
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-main);
}
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: row; }
}

/* Tech Badges */
.tech-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background-color: var(--badge-color, var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text-main);
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* CTA Button Glow */
.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

/* Modal Case Study — iOS Safari safe */
.modal-overlay {
  position: fixed;
  inset: 0;
  /* Solid fallback for browsers that don't support backdrop-filter */
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
  /* Hardware-accelerate the overlay to fix iOS stacking bug */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: opacity;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  /* translateZ forces GPU layer so iOS renders it above the overlay */
  -webkit-transform: translateY(30px) translateZ(0) scale(0.95);
  transform: translateY(30px) translateZ(0) scale(0.95);
  transition: -webkit-transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  will-change: transform;
  /* Safari fix: prevent bleed-through */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.modal-overlay.active .modal-content {
  -webkit-transform: translateY(0) translateZ(0) scale(1);
  transform: translateY(0) translateZ(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.modal-header {
  padding: 40px 40px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-badge {
  display: inline-block;
  background: var(--text-main);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.modal-header h3 {
  font-size: 2.5rem;
  color: var(--text-main);
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}
.modal-visual {
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.modal-info h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
.modal-info h4:first-child {
  margin-top: 0;
}
.modal-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.modal-results {
  display: flex;
  gap: 20px;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.m-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  flex: 1;
}
.m-val {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.m-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.modal-btn:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .modal-header {
    padding: 30px 20px 20px;
  }
  .modal-header h3 { font-size: 1.8rem; }
}

/* Custom Cursor — desktop only */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  z-index: 99999;
  display: none; /* hidden on mobile by default */
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--text-main);
  top: -3px;
  left: -3px;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
}
.cursor-outline {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,0.4);
  top: -16px;
  left: -16px;
  transition: width 0.3s ease, height 0.3s ease,
              border-color 0.3s ease, opacity 0.3s ease;
}
.cursor-dot.cursor-grow {
  width: 10px;
  height: 10px;
}
.cursor-outline.cursor-grow {
  width: 48px;
  height: 48px;
  border-color: rgba(255,255,255,0.6);
}

/* Show cursor elements only on real pointer devices (mouse) */
@media (pointer: fine) {
  .cursor-dot,
  .cursor-outline {
    display: block;
  }
  /* Hide native cursor site-wide only when JS custom cursor is active */
  body.custom-cursor * {
    cursor: none !important;
  }
}
