/* ── Tokens ─────────────────────────────────────── */
:root {
  --bg: #06090f;
  --bg-2: #080c14;
  --bg-card: #0b1120;
  --bg-card-2: #0e1628;
  --bg-card-3: #121c33;
  --border: rgb(255 255 255 / 0.06);
  --border-2: rgb(255 255 255 / 0.1);
  --border-h: rgb(34 211 238 / 0.32);
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #f0abfc;
  --fg: #f1f5fb;
  --fg-2: #9aafc7;
  --muted: #4a5a74;
  --green: #10e89e;
  --green-2: #34d399;
  --red: #f75c7e;
  --amber: #fbbf24;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1240px;
  --shadow-xl: 0 30px 80px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.04);
  --shadow-2xl: 0 40px 120px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgb(34 211 238 / 0.06), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 5%, rgb(129 140 248 / 0.05), transparent 60%), var(--bg);
  color: var(--fg);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font: inherit;
  background: none;
  border: none;
  color: inherit;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}

/* Film grain overlay — premium texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode: overlay;
}

/* ── Typography ─────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--fg-2);
  font-size: 16px;
  margin-bottom: 56px;
  max-width: 640px;
  line-height: 1.7;
}

.grad {
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: #051018;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow:
    0 12px 32px rgb(34 211 238 / 0.25),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.2s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgb(34 211 238 / 0.4),
    inset 0 1px 0 rgb(255 255 255 / 0.5);
  filter: brightness(1.08);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgb(255 255 255 / 0.02);
  backdrop-filter: blur(10px);
  color: var(--fg);
  font-weight: 500;
  font-size: 14px;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-ghost:hover {
  border-color: rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.06);
  transform: translateY(-1px);
}

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 48px);
  background: rgb(6 9 15 / 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgb(255 255 255 / 0.04);
  transition:
    background 0.3s,
    border-color 0.3s;
}

.nav.scrolled {
  background: rgb(6 9 15 / 0.85);
  border-bottom-color: rgb(255 255 255 / 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 13px;
  font-weight: 800;
  color: #06090f;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgb(34 211 238 / 0.3);
}

.brand-logo.small {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.brand-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  color: var(--fg-2);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--fg);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #06090f !important;
  font-weight: 600;
  transition:
    filter 0.2s !important,
    transform 0.2s !important;
}

.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px clamp(16px, 4vw, 56px) 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-scrub {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, black 0%, black 65%, transparent 100%);
}

.hero-scrub-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 55% at 50% 40%,
      transparent 0%,
      rgb(6 9 15 / 0.55) 70%,
      rgb(6 9 15 / 0.85) 100%
    ),
    linear-gradient(180deg, rgb(6 9 15 / 0.25) 0%, transparent 30%, rgb(6 9 15 / 0.6) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-a {
  width: 700px;
  height: 700px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgb(34 211 238 / 0.35), transparent 65%);
}

.hero-glow-b {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, rgb(129 140 248 / 0.3), transparent 65%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 85%);
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(16 232 158 / 0.28);
  background: rgb(16 232 158 / 0.06);
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

.hero-headline {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: var(--fg-2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 12px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

.stat-val {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-val i {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  margin-left: 1px;
}

.stat-lbl {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.platform-badge {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 0.025);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-2);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}

/* Hero stage — floating frames */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  perspective: 1400px;
}

.hero-frame {
  position: absolute;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0e1628, #060a13);
  border: 1px solid var(--border-2);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transition: transform 0.5s var(--ease-out-expo);
}

.hero-frame-back {
  top: 0;
  right: -40px;
  width: 110%;
  transform: rotate(-2deg) translateZ(0);
  animation: float-back 9s ease-in-out infinite;
}

.hero-frame-front {
  bottom: -10px;
  left: -40px;
  width: 64%;
  transform: rotate(3deg) translateZ(0);
  z-index: 2;
  animation: float-front 11s ease-in-out infinite;
  box-shadow:
    0 30px 80px rgb(34 211 238 / 0.18),
    0 0 0 1px rgb(34 211 238 / 0.18),
    0 50px 120px rgb(0 0 0 / 0.6);
}

@keyframes float-back {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }

  50% {
    transform: rotate(-1.4deg) translateY(-8px);
  }
}

@keyframes float-front {
  0%,
  100% {
    transform: rotate(3deg) translateY(0);
  }

  50% {
    transform: rotate(2.2deg) translateY(-10px);
  }
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #0d1525, #0a1120);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-2);
}

.frame-bar.small {
  padding: 9px 12px;
  font-size: 10.5px;
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.frame-dot.r {
  background: #ff5f57;
}

.frame-dot.y {
  background: #febc2e;
}

.frame-dot.g {
  background: #28c840;
}

.frame-url {
  margin-left: 12px;
  opacity: 0.85;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgb(247 92 126 / 0.12);
  border: 1px solid rgb(247 92 126 / 0.3);
  color: var(--red);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.4s ease-in-out infinite;
}

.frame-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050810;
}

/* Hero ticker — floating mini card */
.hero-ticker {
  position: absolute;
  top: -10px;
  left: -50px;
  z-index: 3;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgb(11 17 32 / 0.95), rgb(8 12 20 / 0.95));
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 64px rgb(0 0 0 / 0.6),
    0 0 0 1px rgb(34 211 238 / 0.1);
  min-width: 240px;
  animation: float-front 13s ease-in-out infinite;
  font-family: 'JetBrains Mono', monospace;
}

.ticker-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 5px 0;
  font-size: 11.5px;
}

.ticker-row + .ticker-row {
  border-top: 1px solid var(--border);
}

.ticker-sym {
  color: var(--fg-2);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ticker-val {
  color: var(--fg);
  font-weight: 600;
}

.ticker-chg {
  font-weight: 700;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
}

.ticker-val.up,
.ticker-chg.up {
  color: var(--green);
}

.ticker-val.dn,
.ticker-chg.dn {
  color: var(--red);
}

.ticker-chg.up {
  background: rgb(16 232 158 / 0.1);
}

.ticker-chg.dn {
  background: rgb(247 92 126 / 0.1);
}

/* Hero pill — floating proof badge */
.hero-pill {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgb(16 232 158 / 0.12), rgb(11 17 32 / 0.95));
  border: 1px solid rgb(16 232 158 / 0.3);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 18px 48px rgb(16 232 158 / 0.12),
    0 8px 24px rgb(0 0 0 / 0.5);
}

.hero-pill-a {
  bottom: 30px;
  right: -10px;
  animation: float-back 10s ease-in-out infinite;
}

.pill-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #06090f;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgb(16 232 158 / 0.4);
}

.hero-pill strong {
  display: block;
  font-size: 13px;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-pill em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: var(--fg-2);
  margin-top: 1px;
}

/* ── Marquee ────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgb(34 211 238 / 0.025), transparent 100%);
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 36px;
  animation: marquee 42s linear infinite;
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-family: 'JetBrains Mono', monospace;
}

.marquee-item {
  padding: 0 4px;
  opacity: 0.8;
}

.marquee-dot {
  color: var(--accent);
  opacity: 0.4;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Services ────────────────────────────────────── */
.services {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  margin-top: 0;
}

.service-card {
  background: var(--bg-card);
  padding: 32px 28px;
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-card:hover {
  background: var(--bg-card-2);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgb(34 211 238 / 0.18), rgb(129 140 248 / 0.12));
  border: 1px solid rgb(34 211 238 / 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.service-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ── Work / Projects ─────────────────────────────── */
.work {
  padding: 120px 0 100px;
  border-top: 1px solid var(--border);
  position: relative;
}

.work .container {
  margin-bottom: 56px;
}

.projects {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.project:first-child {
  border-top: none;
  padding-top: 32px;
}

.project.flip {
  direction: rtl;
}

.project.flip > * {
  direction: ltr;
}

/* Project text side */
.proj-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.proj-num::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.proj-title {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.proj-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.proj-tag {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 0.025);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-2);
  font-family: 'JetBrains Mono', monospace;
}

.proj-desc {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.75;
  margin-bottom: 24px;
}

.proj-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.proj-features li {
  font-size: 13.5px;
  color: var(--fg-2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.proj-features li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  box-shadow: 0 0 8px rgb(34 211 238 / 0.5);
}

.proj-metric {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(16 232 158 / 0.09), rgb(16 232 158 / 0.03));
  border: 1px solid rgb(16 232 158 / 0.22);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
}

/* Project video side — CLEAN, no controls */
.proj-player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050810;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-2xl);
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

.proj-player::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.proj-player:hover {
  transform: translateY(-4px);
  box-shadow:
    0 50px 140px rgb(0 0 0 / 0.75),
    0 0 0 1px rgb(34 211 238 / 0.18),
    0 0 60px rgb(34 211 238 / 0.08);
}

.proj-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #050810;
  object-fit: cover;
}

.proj-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgb(247 92 126 / 0.16);
  border: 1px solid rgb(247 92 126 / 0.4);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
}

.proj-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ── Stack section ───────────────────────────────── */
.stack {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stack::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 50% at 85% 10%, rgb(129 140 248 / 0.08), transparent 60%),
    radial-gradient(ellipse 40% 50% at 15% 90%, rgb(34 211 238 / 0.06), transparent 60%);
}

.stack .container {
  position: relative;
  z-index: 1;
}

.stack-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.stack-tabs {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border-right: 1px solid var(--border);
  padding: 12px 10px;
}

.stack-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--fg-2);
  text-align: left;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
  width: 100%;
}

.stack-tab:hover {
  background: rgb(255 255 255 / 0.04);
  color: var(--fg);
}

.stack-tab.active {
  background: linear-gradient(135deg, rgb(34 211 238 / 0.13), rgb(129 140 248 / 0.07));
  color: var(--fg);
  box-shadow: inset 2px 0 0 var(--accent);
}

.stack-tab-ico {
  font-size: 17px;
  flex-shrink: 0;
}

.stack-tab-name {
  font-weight: 600;
}

.stack-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #05080e;
}

.stack-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(180deg, #0d1525, #08101e);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.stack-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stack-dot.r {
  background: #ff5f57;
}

.stack-dot.y {
  background: #febc2e;
}

.stack-dot.g {
  background: #28c840;
}

.stack-file {
  margin-left: 12px;
  color: var(--fg-2);
}

.stack-lang {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.stack-code {
  position: relative;
  margin: 0;
  padding: 24px 24px 32px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #cbd5e1;
  min-height: 500px;
  max-height: 580px;
  overflow: auto;
  white-space: pre;
  tab-size: 4;
}

.stack-code::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.stack-code::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 0.08);
  border-radius: 99px;
}

.stack-caret {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
  font-weight: 800;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Syntax tokens */
.c-kw {
  color: #c4b5fd;
  font-weight: 600;
}

.c-str {
  color: #86efac;
}

.c-num {
  color: #fcd34d;
}

.c-com {
  color: #64748b;
  font-style: italic;
}

.c-dec {
  color: #f9a8d4;
}

/* Stack cards below editor */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.stack-card {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.stack-card:hover {
  border-color: rgb(34 211 238 / 0.25);
  background: var(--bg-card-2);
  transform: translateY(-3px);
}

.stack-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stack-card-ico {
  font-size: 20px;
}

.stack-card-name {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.stack-card-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgb(34 211 238 / 0.1);
  border: 1px solid rgb(34 211 238 / 0.22);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}

.stack-card-blurb {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ── Testimonials ────────────────────────────────── */
.testimonials {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.testi-card {
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
  position: relative;
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
}

.testi-card:hover {
  border-color: rgb(34 211 238 / 0.22);
  background: var(--bg-card-2);
  transform: translateY(-3px);
}

.testi-stars {
  color: var(--amber);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.testi-quote {
  font-size: 14.5px;
  color: var(--fg);
  line-height: 1.75;
  margin-bottom: 22px;
  font-weight: 400;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #06090f;
  flex-shrink: 0;
}

.testi-name {
  font-weight: 600;
  font-size: 13.5px;
}

.testi-role {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.testi-platform {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}

/* ── About ───────────────────────────────────────── */
.about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 72px;
  align-items: start;
}

.about-text p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 600px;
}

.about-text strong {
  color: var(--fg);
}

.skill-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--fg-2);
}

.skill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgb(34 211 238 / 0.5);
}

.about-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border);
  min-width: 150px;
}

.metric-val {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}

.metric-val i {
  font-style: normal;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
}

.metric-lbl {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  font-weight: 500;
}

/* ── Contact ─────────────────────────────────────── */
.contact {
  padding: 130px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgb(34 211 238 / 0.06), transparent 65%);
}

.contact-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-inner .section-label {
  justify-content: center;
}

.contact-inner .section-label::before {
  display: none;
}

.contact-sub {
  color: var(--fg-2);
  font-size: 15.5px;
  margin: 0 auto 36px;
  max-width: 540px;
  line-height: 1.7;
}

.contact-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.contact-domains {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.contact-domains a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
  font-family: 'JetBrains Mono', monospace;
}

.contact-domains a:hover {
  color: var(--accent);
}

.contact-domains span {
  color: var(--muted);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

/* Mobile nav drawer */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 16px;
  background: rgb(6 9 15 / 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 20px 28px;
  gap: 20px;
  margin-top: 6px;
  box-shadow: 0 14px 44px rgb(0 0 0 / 0.6);
}

/* ── Responsive ──────────────────────────────────── */
@media (width <= 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-stage {
    min-height: 460px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .hero-frame-back {
    right: 0;
    width: 100%;
  }

  .hero-frame-front {
    left: -20px;
    width: 64%;
  }

  .hero-ticker {
    left: -20px;
  }
}

@media (width <= 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .project,
  .project.flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
    padding: 56px 0;
  }

  .project.flip > * {
    direction: ltr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .metric-card {
    min-width: unset;
  }

  .stack-shell {
    grid-template-columns: 1fr;
  }

  .stack-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px;
  }

  .stack-tab {
    flex-shrink: 0;
    padding: 10px 14px;
  }

  .stack-tab.active {
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .stack-code {
    font-size: 11.5px;
    min-height: 380px;
    max-height: 460px;
    padding: 18px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }

  .stat:nth-child(4) {
    border-left: none;
    padding-left: 0;
  }
}

@media (width <= 560px) {
  .hero {
    padding-top: 110px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-stage {
    min-height: 380px;
    max-width: 100%;
  }

  .hero-frame-back {
    right: 0;
    width: 100%;
  }

  .hero-frame-front {
    left: -10px;
    width: 70%;
    bottom: -20px;
  }

  .hero-pill {
    padding: 10px 14px;
  }

  .hero-pill strong {
    font-size: 12px;
  }

  .hero-pill em {
    font-size: 10px;
  }

  .proj-title {
    font-size: 1.3rem;
  }

  .proj-desc {
    font-size: 14px;
  }

  .nav {
    padding: 12px 16px;
  }

  .brand-text {
    font-size: 14px;
  }

  .marquee-track {
    gap: 22px;
    font-size: 12.5px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }

  .stat {
    padding-right: 0 !important;
  }

  .stat:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 18px;
  }

  .about-metrics {
    grid-template-columns: 1fr 1fr;
  }

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

  .stack-code {
    font-size: 11px;
    min-height: 320px;
    padding: 14px;
  }

  .stack-tab-name {
    font-size: 12px;
  }

  .hero-ticker {
    left: -10px;
    min-width: 200px;
    padding: 12px 14px;
    font-size: 11px;
  }

  .hero-pill-a {
    right: -10px;
    bottom: 10px;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }
}

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

  .marquee-track {
    animation: none !important;
  }

  .stack-caret {
    animation: none !important;
    opacity: 0.5;
  }

  .hero-frame-back,
  .hero-frame-front,
  .hero-ticker,
  .hero-pill-a {
    animation: none !important;
  }
}

/* ── Pricing ──────────────────────────────────────── */
.pricing {
  padding: 120px 0;
  background:
    radial-gradient(1100px 600px at 50% 0%, rgb(34 211 238 / 0.04), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  box-shadow: 0 18px 60px rgb(0 0 0 / 0.55);
}

.pricing-card.featured {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card-3));
  border-color: rgb(34 211 238 / 0.22);
  box-shadow:
    0 20px 60px rgb(0 0 0 / 0.45),
    inset 0 0 0 1px rgb(34 211 238 / 0.08);
}

.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -10px;
  right: 18px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
}

.pricing-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-ico {
  font-size: 22px;
  line-height: 1;
}

.pricing-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--border);
}

.pricing-currency {
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--fg), var(--accent));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-unit {
  font-size: 13px;
  color: var(--fg-2);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  opacity: 0.55;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.2 5 9l5-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat center / contain;
}

.pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--fg-2);
}

.pricing-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgb(34 211 238 / 0.3);
  transition: border-color 0.2s var(--ease);
}

.pricing-note a:hover {
  border-color: var(--accent);
}

/* ── FAQ ──────────────────────────────────────────── */
.faq {
  padding: 120px 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgb(129 140 248 / 0.04), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 48px auto 0;
}

.faq-item {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-h);
}

.faq-q {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  background: rgb(34 211 238 / 0.08);
  border-radius: 999px;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-q::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 24px 22px;
}

.faq-a p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg-2);
}

@media (width <= 640px) {
  .pricing,
  .faq {
    padding: 80px 0;
  }

  .pricing-card {
    padding: 24px 22px;
  }

  .pricing-value {
    font-size: 32px;
  }

  .faq-q {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-a {
    padding: 0 18px 18px;
  }
}
