@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #07070d;
  --surface:    #0d0d18;
  --surface-2:  #12121f;
  --border:     rgba(255,255,255,0.07);
  --border-h:   rgba(255,255,255,0.15);
  --accent:     #7c6ff7;
  --accent-2:   #a78bfa;
  --glow:       rgba(124, 111, 247, 0.25);
  --glow-lg:    rgba(124, 111, 247, 0.12);
  --text:       #f0f0f0;
  --text-muted: #6b6b80;
  --text-dim:   #3a3a4d;
  --radius:     14px;
  --radius-lg:  24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  font-size: 16px;
}

::selection { background: var(--accent); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a3d; border-radius: 3px; }

/* ─── NOISE OVERLAY ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 1000;
}

/* ─── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: block; width: 20px; height: 1px;
  background: var(--accent);
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 30px var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(124,111,247,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  background: rgba(0,0,0,0.03);
}

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.82rem; }

/* arrow icon in button */
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1001;
  padding: 1.5rem 0;
  background: #07070d;
  transition: background 0.4s;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  bottom: -2.5rem;
  z-index: -1;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
nav.scrolled {
  background: rgba(7,7,13,0.65);
}
nav.scrolled::before {
  opacity: 1;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  padding: 2rem 2rem 2rem;
  padding-top: calc(100px + env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  flex-direction: column; gap: 2rem;
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn {
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
}

/* ─── SCROLL ANIMATIONS ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,111,247,0.15) 0%, transparent 70%);
  top: 10%; left: -10%;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 70%);
  top: 50%; right: -5%;
  animation-delay: 3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  bottom: 10%; left: 40%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.hero-content { position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  background: rgba(124,111,247,0.1);
  border: 1px solid rgba(124,111,247,0.25);
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,111,247,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(124,111,247,0); }
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-sub {
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card-wrap {
  position: relative;
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(100,90,200,0.1), 0 4px 16px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  display: block;
}
.hero-card-dots span:nth-child(1) { background: #ff5f57; }
.hero-card-dots span:nth-child(2) { background: #febc2e; }
.hero-card-dots span:nth-child(3) { background: #28c840; }

.hero-card-tag {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(124,111,247,0.1);
  padding: 0.3rem 0.75rem; border-radius: 100px;
}

.hero-metric-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1.5rem;
}

.hero-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.hero-metric-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--text);
  display: block;
}
.hero-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-progress-bar {
  margin-bottom: 0.5rem;
}
.hero-progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.hero-progress-track {
  height: 4px; background: rgba(0,0,0,0.07);
  border-radius: 2px; overflow: hidden;
}
.hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: progress-in 1.5s ease-out 0.5s both;
}
@keyframes progress-in {
  from { width: 0 !important; }
}

.hero-card-badge {
  position: absolute; top: -10px; right: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.4rem 1rem; border-radius: 100px;
  box-shadow: 0 4px 20px var(--glow);
}

.hero-floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(100,90,200,0.1), 0 2px 8px rgba(0,0,0,0.06);
}
.hero-floating-1 {
  bottom: -20px; left: -40px;
  animation: hero-float 6s ease-in-out infinite;
  animation-delay: 1s;
}
.hero-floating-2 {
  top: -20px; right: -20px;
  animation: hero-float 6s ease-in-out infinite;
  animation-delay: 2.5s;
}
.floating-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* ─── MARQUEE ───────────────────────────────────────────────── */
.marquee-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.marquee-track {
  display: flex; gap: 4rem;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text-dim);
  transition: color 0.2s;
  white-space: nowrap;
}
.marquee-item:hover { color: var(--text-muted); }
.marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* ─── SERVICES ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--glow-lg) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { border-color: var(--border-h); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.service-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.service-card p { font-size: 0.9rem; line-height: 1.7; }

.service-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent); text-decoration: none;
  transition: gap 0.2s;
}
.service-card-link:hover { gap: 0.7rem; }

/* ─── PROCESS ───────────────────────────────────────────────── */
.process-section { background: var(--surface); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 3rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute; top: 30px; left: 12.5%; right: 12.5%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.process-step {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.process-step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  color: var(--accent);
  margin: 0 auto 1.5rem;
  position: relative; z-index: 1;
  transition: var(--transition);
}
.process-step:hover .process-step-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--glow);
}

.process-step h4 { margin-bottom: 0.6rem; }
.process-step p { font-size: 0.88rem; }

/* ─── FEATURED WORK ─────────────────────────────────────────── */
.work-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem; flex-wrap: wrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: block;
}
.project-card:hover { border-color: var(--border-h); box-shadow: 0 16px 48px rgba(100,90,200,0.12), 0 4px 12px rgba(0,0,0,0.06); }

.project-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.project-thumb-inner {
  position: absolute; inset: 0;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.project-card:hover .project-thumb-inner { transform: scale(1.05); }

/* Browser chrome mockup */
.browser-chrome {
  position: absolute; top: 0; left: 0; right: 0;
  height: 32px;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center;
  padding: 0 0.75rem;
  gap: 0.4rem;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.browser-dot { width: 8px; height: 8px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: rgba(255,95,87,0.8); }
.browser-dot:nth-child(2) { background: rgba(254,188,46,0.8); }
.browser-dot:nth-child(3) { background: rgba(40,200,64,0.8); }
.browser-url {
  flex: 1; height: 16px; background: rgba(255,255,255,0.08);
  border-radius: 4px; margin: 0 0.75rem;
}

.project-info { padding: 1.5rem; }
.project-info h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.project-info p { font-size: 0.85rem; margin-bottom: 1rem; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.7rem;
  background: rgba(124,111,247,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

/* Thumb gradients */
.thumb-luminary { background: linear-gradient(135deg, #1a1040 0%, #2d1b69 50%, #4c1d95 100%); }
.thumb-novapay  { background: linear-gradient(135deg, #022c22 0%, #065f46 50%, #059669 100%); }
.thumb-arcadia  { background: linear-gradient(135deg, #1c1007 0%, #3d1e00 50%, #78350f 100%); }

/* ─── STATS ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.stat-cell {
  background: var(--surface);
  padding: 2rem 0.75rem;
  text-align: center;
  transition: background 0.3s;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
}
.stat-cell:hover { background: var(--surface-2); }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 15cqi, 2.8rem);
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ─── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-h); transform: translateY(-4px); }

.testimonial-quote {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1;
}
.testimonial-text {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  color: #fff; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; display: block; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

.stars { color: #f59e0b; font-size: 0.8rem; margin-bottom: 0.75rem; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-section { background: var(--surface); }
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 3rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--border-h); }

.faq-trigger {
  width: 100%; text-align: left;
  padding: 1.25rem 1.5rem;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text);
}
.faq-trigger:hover { color: var(--accent); }

.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-body-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.88rem; line-height: 1.7;
  color: var(--text-muted);
}

/* ─── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  padding: 5rem 0;
}
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,111,247,0.15) 0%, transparent 70%);
}
.cta-box::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-box h2 { position: relative; margin-bottom: 1rem; }
.cta-box p { position: relative; max-width: 500px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem;
}
.footer-brand p {
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem; line-height: 1.7;
  max-width: 300px;
}
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124,111,247,0.1);
}
.footer-col h5 {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  text-decoration: none; font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-definition {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}
.footer-def-word {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
}
.footer-def-phonetic {
  color: var(--accent);
  font-style: normal;
}
.footer-def-pos {
  font-style: normal;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.1rem; color: var(--text);
}

/* ─── PAGE HERO (inner pages) ───────────────────────────────── */
.page-hero {
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; max-width: 550px; margin: 0 auto; }

/* ─── WORK PAGE ─────────────────────────────────────────────── */
.work-filters {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border);
  background: none; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(124,111,247,0.08);
}

.all-work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Large card */
.project-card-lg {
  grid-column: span 2;
}
.project-card-lg .project-thumb { height: 320px; }

/* Client website mockups - full designs */
.mock-site {
  position: absolute; inset: 32px 0 0;
  overflow: hidden;
}

/* Luminary - AI Platform */
.mock-luminary {
  background: linear-gradient(160deg, #0f0828 0%, #1e1055 100%);
  display: flex; flex-direction: column;
}
.mock-luminary::before {
  content: '';
  position: absolute; top: -50%; left: -20%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 40% 30%, rgba(139,92,246,0.3) 0%, transparent 50%);
}

/* NovaPay - Fintech */
.mock-novapay { background: linear-gradient(160deg, #022c22 0%, #065f46 60%, #047857 100%); }

/* Arcadia - Fashion */
.mock-arcadia { background: linear-gradient(160deg, #1c0e04 0%, #3d1a08 60%, #92400e 100%); }

/* Prism - Analytics */
.mock-prism { background: linear-gradient(160deg, #0d1b4b 0%, #1e3a8a 60%, #1d4ed8 100%); }

/* Drift Labs - Dev */
.mock-drift { background: #020914; }
.mock-drift::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(74,222,128,0.03) 0px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(74,222,128,0.03) 0px, transparent 1px, transparent 20px);
}

/* Solace - Health */
.mock-solace { background: linear-gradient(160deg, #0c1524 0%, #0f2847 60%, #1e3a5f 100%); }

/* Meridian - Real Estate */
.mock-meridian { background: linear-gradient(160deg, #1a0f00 0%, #3b1e00 50%, #6b3a1f 100%); }

/* Forge - PM Tool */
.mock-forge { background: linear-gradient(160deg, #130500 0%, #431407 60%, #7c2d12 100%); }

/* Capsule - CRM */
.mock-capsule { background: linear-gradient(160deg, #19041a 0%, #3b0764 50%, #581c87 100%); }

/* Orbit - Social */
.mock-orbit {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0533 33%, #001a33 66%, #001a0f 100%);
}

/* Mock UI elements inside cards */
.mock-navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.mock-logo { width: 50px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.7); }
.mock-nav-items { display: flex; gap: 6px; }
.mock-nav-item { width: 24px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.25); }
.mock-cta-pill { width: 36px; height: 14px; border-radius: 7px; background: rgba(255,255,255,0.3); }

.mock-hero-section {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0.75rem;
  position: relative; z-index: 2;
  gap: 6px;
}
.mock-h1 { width: 60%; height: 12px; border-radius: 6px; background: rgba(255,255,255,0.75); }
.mock-h1-sm { width: 40%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.45); }
.mock-p { width: 70%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); }
.mock-p-sm { width: 55%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); }
.mock-btns { display: flex; gap: 6px; margin-top: 4px; }
.mock-btn-p { width: 44px; height: 14px; border-radius: 7px; }
.mock-btn-s { width: 36px; height: 14px; border-radius: 7px; background: rgba(255,255,255,0.15); }

/* ─── CONTACT PAGE ──────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: start;
  margin-top: 5rem;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-info-card h3 { margin-bottom: 0.75rem; }
.contact-info-card > p { margin-bottom: 2rem; font-size: 0.95rem; }

.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(124,111,247,0.1);
  border: 1px solid rgba(124,111,247,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-detail-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-detail-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.contact-detail-value a { color: inherit; text-decoration: none; }
.contact-detail-value a:hover { color: var(--accent); }

.availability-badge {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
  margin-top: 2rem;
}
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
.avail-text { font-size: 0.85rem; font-weight: 500; color: #22c55e; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form h3 { margin-bottom: 1.75rem; }

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

.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }

.form-control {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,111,247,0.1);
}
.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 130px; }

/* Custom select wrapper — iOS-native feel */
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 6px;
  background: var(--text-muted);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), background 0.2s;
}
.select-wrap:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
  background: var(--accent);
}
select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
}
select.form-control option { background: var(--surface-2); }

.form-submit { width: 100%; justify-content: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h4 { margin-bottom: 0.5rem; }

/* ─── PRICING ───────────────────────────────────────────────── */
.pricing-section { background: var(--surface); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
  background: linear-gradient(160deg, rgba(124,111,247,0.1), rgba(167,139,250,0.05));
  border-color: var(--accent);
}

.pricing-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.pricing-card h3 { margin-bottom: 0.5rem; }
.pricing-card > p { font-size: 0.88rem; margin-bottom: 1.5rem; }

.pricing-price { margin-bottom: 2rem; }
.price-from { font-size: 0.78rem; color: var(--text-muted); }
.price-amount {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem; font-weight: 800; color: var(--text);
}
.price-note { font-size: 0.78rem; color: var(--text-muted); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.pricing-features li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem;
}
.pricing-features li::before {
  content: '✓';
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(124,111,247,0.1);
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .all-work-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card-lg { grid-column: span 2; }
}

@media (max-width: 768px) {
  /* Nav — dark glass on mobile, centered logo */
  nav {
    background: #07070d;
    padding: 0;
    padding-top: env(safe-area-inset-top);
  }
  nav.scrolled {
    background: #07070d;
  }
  .nav-inner { justify-content: center; position: relative; padding: 1.1rem 1.25rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); }
  .nav-logo img { height: 52px; }
  .nav-logo-text { font-size: 1.7rem; }

  /* Sections */
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* Hero */
  .hero {
    padding: 7rem 0 4rem;
    text-align: center;
  }
  .hero-grid { gap: 2rem; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-floating-1, .hero-floating-2 { display: none; }
  .hero-badge { font-size: 0.75rem; }

  /* Grids */
  .featured-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .all-work-grid { grid-template-columns: 1fr; }
  .project-card-lg { grid-column: span 1; }
  .project-card-lg .project-thumb { height: 220px; }

  /* Process */
  .process-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-grid::before { display: none; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Work header */
  .work-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .work-filters { gap: 0.5rem; }

  /* CTA */
  .cta-box { padding: 3.5rem 1.75rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  /* Contact info cards stack properly */
  .contact-info-card, .contact-form { padding: 1.75rem; }

  /* Page hero inner pages */
  .page-hero { padding: 8rem 0 3rem; }

  /* Typography */
  h1, h2 { text-wrap: balance; }

  /* Phone scroll — mobile redesign: phone takes center stage */
  .phone-scroll-wrap {
    height: 300vh;
  }
  .phone-scroll-sticky {
    height: 100vh;
    overflow: visible;
    justify-content: flex-start;
    padding-top: 5.5rem;
  }
  .phone-scroll-sticky::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
  }
  .phone-scroll-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1.25rem;
    align-items: start;
  }
  .phone-scroll-text { order: 1; }
  .phone-scroll-text h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); margin-bottom: 0; }
  .phone-scroll-text p { display: none; }
  .phone-features { display: none; }
  .phone-scene {
    order: 2;
    transform: scale(0.88);
    transform-origin: top center;
  }

  /* Footer centering on mobile */
  .footer-grid { text-align: center; }
  .footer-brand p { margin: 0.75rem auto; max-width: 280px; }
  .footer-socials { justify-content: center; }
  .footer-col ul { padding: 0; list-style: none; }

  /* Disable hover-only effects on touch */
  .service-card:hover, .project-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .nav-logo img { height: 28px; }
  .container { padding: 0 1rem; }
  h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 1.75rem 1rem; }
  .cta-box { padding: 2.5rem 1.25rem; }
  .process-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-socials { flex-wrap: wrap; }
  .pricing-card { padding: 2rem 1.5rem; }
  .hero-actions .btn { max-width: 320px; }
  section { padding: 3rem 0; }
  .marquee-section { padding: 1.5rem 0; }
}

/* ─── AFFILIATE PAGE ────────────────────────────────────────── */
.affiliate-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(10rem, 22vh, 16rem) 0 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.affiliate-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.affiliate-orb-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,111,247,0.14) 0%, transparent 70%);
  top: -10%; left: -15%;
  filter: blur(60px);
  animation: float 10s ease-in-out infinite;
}
.affiliate-orb-2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 70%);
  bottom: -10%; right: -10%;
  filter: blur(60px);
  animation: float 10s ease-in-out infinite;
  animation-delay: 4s;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 0; right: 0;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  user-select: none;
}
.scroll-hint.revealed { opacity: 1; }
.scroll-hint-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.scroll-chevrons svg {
  width: 18px;
  height: 10px;
}
.chev-1 {
  animation: chev-cascade-1 1.9s ease-in-out infinite;
}
.chev-2 {
  animation: chev-cascade-2 1.9s ease-in-out infinite;
}
@keyframes chev-cascade-1 {
  0%, 100% { transform: translateY(0);  opacity: 0.45; }
  50%       { transform: translateY(6px); opacity: 1; }
}
@keyframes chev-cascade-2 {
  0%, 25%   { opacity: 0;   transform: translateY(-5px); }
  55%        { opacity: 0.6; transform: translateY(2px); }
  75%, 100%  { opacity: 0;   transform: translateY(6px); }
}

/* Typewriter */
.typewriter-block {
  margin-bottom: 3rem;
}
.tw-after {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tw-after.tw-visible {
  opacity: 1;
  transform: none;
}
.typewriter-line {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  min-height: 1.15em;
  position: relative;
}
.typewriter-line.accent { color: var(--accent); }

.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 2px;
  animation: blink-cursor 0.75s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.affiliate-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Perks grid */
.affiliate-perks {
  padding: 6rem 0;
  background: var(--surface);
}
.affiliate-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.perk-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.perk-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow-lg) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.perk-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
.perk-card:hover::before { opacity: 1; }
.perk-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124,111,247,0.08);
  border: 1px solid rgba(124,111,247,0.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent);
  transition: var(--transition);
}
.perk-card:hover .perk-icon {
  background: rgba(124,111,247,0.14);
  border-color: rgba(124,111,247,0.3);
}
.perk-icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.perk-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}
.perk-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}
.perk-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* How it works */
.affiliate-how {
  padding: 6rem 0;
}
.affiliate-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.affiliate-steps::before {
  content: '';
  position: absolute; top: 28px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.affiliate-step {
  text-align: center;
  padding: 0 1rem;
}
.affiliate-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem; font-weight: 800;
  color: var(--accent);
  margin: 0 auto 1.25rem;
  position: relative; z-index: 1;
  transition: var(--transition);
}
.affiliate-step:hover .affiliate-step-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--glow);
}
.affiliate-step h4 { margin-bottom: 0.5rem; }
.affiliate-step p { font-size: 0.88rem; }

/* CTA strip */
.affiliate-cta {
  padding: 5rem 0;
  background: var(--surface);
}
.affiliate-cta-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.affiliate-cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,111,247,0.1) 0%, transparent 70%);
}
.affiliate-cta-box::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.affiliate-cta-box h2 { position: relative; margin-bottom: 1rem; }
.affiliate-cta-box p { position: relative; max-width: 480px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.affiliate-cta-box .cta-actions { position: relative; }

@media (max-width: 768px) {
  .affiliate-steps::before { display: none; }
  .affiliate-cta-box { padding: 3.5rem 1.75rem; }
  .typewriter-line { font-size: clamp(1.8rem, 7vw, 2.4rem); }
}

/* ─── PHONE SCROLL SECTION ──────────────────────────────────── */
.phone-scroll-wrap {
  height: 300vh;
  position: relative;
}

.phone-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-scroll-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Left text */
.phone-scroll-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.phone-scroll-text p {
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.phone-features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.phone-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.phone-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent);
}

/* Scene — hosts perspective + glow */
.phone-scene {
  perspective: 700px;
  perspective-origin: 50% 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(124,111,247,0.3) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: phoneGlowPulse 3.5s ease-in-out infinite;
  filter: blur(20px);
}
@keyframes phoneGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

/* ── Cast shadow on surface beneath phone ── */
.phone-scene::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 100px;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 40%, transparent 70%);
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%) scaleY(0.4) skewX(-10deg);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

/* ── 3D phone container — receives rotation from JS ── */
.phone-3d {
  width: 265px;
  height: 540px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-45deg);
  will-change: transform;
  /* Multi-layer drop shadow for depth */
  filter:
    drop-shadow(0 70px 40px rgba(0,0,0,0.85))
    drop-shadow(0 30px 20px rgba(0,0,0,0.55))
    drop-shadow(0 6px 6px rgba(0,0,0,0.35));
}

/* ── Shared face base ── */
.ph-face {
  position: absolute;
}
/* Only front/back need backface culling */
.ph-front, .ph-back {
  backface-visibility: hidden;
}

/* ── FRONT FACE — 265×540, at Z=0 ── */
.ph-front {
  width: 265px;
  height: 540px;
  top: 0; left: 0;
  /* Silver titanium frame */
  background: linear-gradient(
    155deg,
    #b8b8c0 0%,
    #e0e0e8 12%,
    #c8c8d2 24%,
    #eaeaf2 36%,
    #bcbcc6 50%,
    #dcdce6 64%,
    #c4c4ce 78%,
    #e4e4ec 88%,
    #b8b8c2 100%
  );
  border-radius: 50px;
  /* Outer edge definition */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    inset 1px 0 0 rgba(255,255,255,0.4),
    inset -1px 0 0 rgba(0,0,0,0.1);
}
/* Metallic highlight sweep on frame */
.ph-front::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(
    130deg,
    rgba(255,255,255,0.75) 0%,
    rgba(255,255,255,0.3) 20%,
    transparent 48%,
    rgba(0,0,0,0.04) 70%,
    rgba(0,0,0,0.1) 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* ── BACK FACE ── */
.ph-back {
  width: 265px;
  height: 540px;
  top: 0; left: 0;
  background: linear-gradient(155deg, #6a6a74 0%, #8e8e98 35%, #7a7a84 65%, #6e6e78 100%);
  border-radius: 50px;
  transform: rotateY(180deg) translateZ(42px);
}

/* ── SIDE BANDS — 42px = realistic phone depth at this scale ── */
/* Bright highlight at center + dark edges = polished aluminium chamfer */
.ph-right {
  width: 42px;
  height: 540px;
  top: 0; left: 265px;
  background: linear-gradient(
    to right,
    #686874 0%,
    #aaaaB8 15%,
    #d8d8e6 35%,
    #ededf8 50%,
    #d4d4e2 65%,
    #aaaab8 85%,
    #686874 100%
  );
  transform-origin: left center;
  transform: rotateY(-90deg);
}
.ph-left {
  width: 42px;
  height: 540px;
  top: 0; left: -42px;
  background: linear-gradient(
    to left,
    #686874 0%,
    #aaaab8 15%,
    #d8d8e6 35%,
    #ededf8 50%,
    #d4d4e2 65%,
    #aaaab8 85%,
    #686874 100%
  );
  transform-origin: right center;
  transform: rotateY(90deg);
}
.ph-top {
  width: 265px;
  height: 42px;
  top: -42px; left: 0;
  background: linear-gradient(
    to top,
    #686874 0%,
    #c0c0ce 25%,
    #e8e8f4 50%,
    #c8c8d8 75%,
    #686874 100%
  );
  transform-origin: center bottom;
  transform: rotateX(90deg);
}
.ph-bottom {
  width: 265px;
  height: 42px;
  top: 540px; left: 0;
  background: linear-gradient(
    to bottom,
    #686874 0%,
    #bcbcca 25%,
    #e0e0ec 50%,
    #c4c4d2 75%,
    #686874 100%
  );
  transform-origin: center top;
  transform: rotateX(-90deg);
  overflow: hidden;
}
/* Speaker grille dots on bottom edge */
.ph-bottom::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.5) 0px,
    rgba(0,0,0,0.5) 3px,
    transparent 3px,
    transparent 7px
  );
  border-radius: 4px;
}
/* USB-C port */
.ph-bottom::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 10px;
  background: rgba(0,0,0,0.55);
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.15);
  margin-left: 50px;
}

/* Buttons embedded in side faces */
.ph-btn {
  position: absolute;
  background: linear-gradient(to right, #b0b0ba, #d8d8e2, #b8b8c4);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.2);
}
.ph-btn-power {
  width: 100%; height: 70px;
  top: 130px; left: 0;
}
.ph-btn-vol1 {
  width: 100%; height: 34px;
  top: 100px; left: 0;
}
.ph-btn-vol2 {
  width: 100%; height: 58px;
  top: 150px; left: 0;
}

/* ── Dynamic Island ── */
.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 27px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.8);
}

/* ── Screen — inset inside frame ── */
.phone-screen {
  position: absolute;
  inset: 5px;
  border-radius: 46px;
  background: #060610;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6);
  z-index: 1;
}

/* ── Scroll-driven light reflection ── */
.phone-reflection {
  position: absolute;
  inset: 5px;
  border-radius: 46px;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
}
.phone-reflection::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(255,255,255,0.04) 38%,
    rgba(255,255,255,0.16) 48%,
    rgba(255,255,255,0.28) 52%,
    rgba(255,255,255,0.16) 58%,
    rgba(255,255,255,0.04) 68%,
    transparent 80%
  );
  transform: translateX(var(--refl-x, -130%));
  will-change: transform;
}

/* ── App UI ── */
.phone-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  color: #f0f0f0;
  background: #060610;
}

/* Status bar */
.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 46px 22px 4px;
  font-size: 0.56rem;
  font-weight: 700;
  color: rgba(240,240,240,0.7);
  letter-spacing: 0.02em;
}
.app-status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.app-signal { font-size: 0.44rem; letter-spacing: -1px; }
.app-battery { font-size: 0.62rem; }

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 18px 10px;
}
.app-logo {
  font-size: 0.88rem;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  background: linear-gradient(135deg, #7c6ff7, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.app-date {
  font-size: 0.52rem;
  color: rgba(240,240,240,0.35);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.app-avatar-pill {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #7c6ff7, #a78bfa);
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 1.5px rgba(124,111,247,0.4);
}

/* Stats strip */
.app-stats-strip {
  display: flex;
  align-items: center;
  margin: 0 12px 10px;
  background: rgba(124,111,247,0.07);
  border: 1px solid rgba(124,111,247,0.16);
  border-radius: 14px;
  padding: 9px 4px;
}
.app-stat {
  flex: 1;
  text-align: center;
}
.app-stat-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.app-stat-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c4b5fd;
  line-height: 1;
}
.app-stat-lbl {
  font-size: 0.5rem;
  color: rgba(240,240,240,0.32);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Section label */
.app-section-lbl {
  padding: 0 18px 5px;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(240,240,240,0.28);
  font-weight: 600;
}

/* Appointment card */
.app-appt {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 12px;
  margin: 0 8px 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 13px;
  transition: border-color 0.2s;
}
.app-appt-active {
  background: rgba(124,111,247,0.07);
  border-color: rgba(124,111,247,0.22);
}
/* Avatar circle with initials */
.app-appt-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.48rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.app-appt-body { flex: 1; min-width: 0; }
.app-appt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.app-appt-name {
  font-size: 0.66rem;
  font-weight: 600;
  color: #eeeef8;
}
.app-appt-time {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(240,240,240,0.45);
}
.app-appt-svc {
  font-size: 0.56rem;
  color: rgba(240,240,240,0.36);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Progress bar (in-progress appointment) */
.app-appt-prog {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.app-appt-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c6ff7, #a78bfa);
  border-radius: 2px;
}
/* Status tags */
.app-appt-tag {
  font-size: 0.52rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-block;
}
.app-appt-tag.confirmed {
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
}
.app-appt-tag.pending {
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.22);
}

/* Bottom nav */
.app-bottom-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(6,6,16,0.9);
}
.app-nav-ico {
  font-size: 0.9rem;
  color: rgba(240,240,240,0.2);
}
.app-nav-ico.active { color: #7c6ff7; }

/* Scroll hint */
.phone-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: hintAppear 0.8s ease 1.2s forwards;
  transition: opacity 0.4s;
  pointer-events: none;
}
.phone-scroll-hint.hidden { opacity: 0 !important; }
@keyframes hintAppear { to { opacity: 1; } }
.scroll-chevron { animation: chevronBounce 1.6s ease-in-out infinite; }
@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* Responsive */
@media (min-width: 769px) and (max-width: 900px) {
  .phone-scroll-wrap { height: 280vh; }
  .phone-scroll-sticky { overflow: hidden; height: 100vh; }
  .phone-scroll-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .phone-scroll-text p { max-width: none; margin-left: auto; margin-right: auto; }
  .phone-features { align-items: center; }
  .phone-scene { justify-content: center; transform: scale(0.78); transform-origin: top center; }
}
@media (max-width: 600px) {
  .phone-3d  { width: 230px; height: 470px; }
  .ph-front  { width: 230px; height: 470px; border-radius: 44px; }
  .ph-front::before { border-radius: 44px; }
  .ph-back   { width: 230px; height: 470px; border-radius: 44px; transform: rotateY(180deg) translateZ(30px); }
  .ph-right  { height: 470px; left: 230px; }
  .ph-left   { height: 470px; }
  .ph-top    { width: 230px; }
  .ph-bottom { width: 230px; top: 470px; }
  .phone-island { width: 76px; height: 24px; }
  .phone-screen { inset: 4px; border-radius: 42px; }
  .phone-reflection { inset: 4px; border-radius: 42px; }
}

/* Mobile phone section — must come after base phone styles to win cascade */
@media (max-width: 768px) {
  .phone-scroll-sticky {
    overflow-x: clip;
    overflow-y: visible;
    justify-content: flex-start;
    padding-top: 5.5rem;
  }
  .phone-scroll-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
    padding: 0 1.25rem;
    align-items: start;
  }
  .phone-scroll-text { order: 1; }
  .phone-scroll-text p { display: none; }
  .phone-features { display: none; }
  .phone-scene {
    order: 2;
    transform: scale(0.88);
    transform-origin: top center;
    justify-content: center;
  }
}