/* ── Design tokens (vivo-inspired premium) ── */
:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-50: #fafafa;
  --gray-100: #f5f5f7;
  --gray-200: #ebebef;
  --gray-400: #9999a3;
  --gray-600: #666670;
  --gray-800: #2d2d32;

  --accent: #0078d4;
  --accent-light: #4da3ff;
  --accent-glow: rgba(0, 120, 212, 0.35);
  --accent-subtle: rgba(0, 120, 212, 0.08);

  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 120, 212, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(77, 163, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);

  --gradient-cta: linear-gradient(135deg, #0078d4 0%, #005a9e 50%, #003d6b 100%);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 72px;
  --max-w: 1200px;
  --section-py: clamp(80px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(0, 120, 212, 0.08), transparent 28vw),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(0,120,212,0.02));
}

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

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.18), rgba(0, 120, 212, 0.08) 38%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate3d(var(--mx, 50vw), var(--my, 50vh), 0) scale(0.8);
  transition: opacity 0.25s ease, transform 0.16s ease-out;
}

body.pointer-active .cursor-glow { opacity: 1; }

.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin: 0 auto;
}

.container-wide {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.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; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header.scrolled .logo,
.site-header.scrolled .nav-desktop a:not(.nav-cta) {
  color: var(--black);
}

.site-header.scrolled .nav-toggle span {
  background: var(--black);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.4s;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f7f2e8, #ede4d4);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.logo-go { color: var(--accent); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a:not(.nav-cta) {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s;
  letter-spacing: 0.02em;
}

.nav-desktop a:not(.nav-cta):hover {
  color: var(--white);
}

.site-header.scrolled .nav-desktop a:not(.nav-cta):hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 22px;
  background: var(--white);
  color: var(--black) !important;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s !important;
}

.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.site-header.scrolled .nav-cta {
  background: var(--accent);
  color: var(--white) !important;
}

.site-header.scrolled .nav-cta:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  margin: 6px 0;
  transition: background 0.4s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 14px 8px;
  font-size: 16px;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s;
  letter-spacing: 0.02em;
}

.btn:hover { transform: scale(1.03); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  background: #006cbd;
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 10px 24px; font-size: 14px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  color: var(--white);
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  background:
    radial-gradient(circle at var(--hero-x, 58%) var(--hero-y, 42%), rgba(77, 163, 255, 0.22), transparent 24vw),
    radial-gradient(circle at calc(var(--hero-x, 58%) - 18%) calc(var(--hero-y, 42%) + 12%), rgba(16, 124, 16, 0.08), transparent 18vw);
  transition: background 0.12s ease-out;
}

.code-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 16%, black 76%, transparent);
}

.code-rain span {
  position: absolute;
  left: 50%;
  top: -10%;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 18px rgba(77, 163, 255, 0.45);
  animation: code-rain-fall 15s linear infinite;
}

.code-rain span:nth-child(1) { left: 7%; animation-duration: 13s; animation-delay: 0s; }
.code-rain span:nth-child(2) { left: 18%; animation-duration: 16s; animation-delay: -7s; }
.code-rain span:nth-child(3) { left: 31%; animation-duration: 14s; animation-delay: -3s; }
.code-rain span:nth-child(4) { left: 54%; animation-duration: 18s; animation-delay: -10s; }
.code-rain span:nth-child(5) { left: 67%; animation-duration: 15s; animation-delay: -5s; }
.code-rain span:nth-child(6) { left: 82%; animation-duration: 17s; animation-delay: -12s; }
.code-rain span:nth-child(7) { left: 92%; animation-duration: 14s; animation-delay: -2s; }

@keyframes code-rain-fall {
  0% { transform: translate3d(0, -15vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { transform: translate3d(28px, 115vh, 0) rotate(8deg); opacity: 0; }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  transform: translate3d(calc(var(--parallax-x, 0px) * -0.25), calc(var(--parallax-y, 0px) * -0.25), 0);
  transition: transform 0.16s ease-out;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-float 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 120, 212, 0.15);
  top: -10%;
  right: -5%;
  transform: translate3d(calc(var(--parallax-x, 0px) * 0.45), calc(var(--parallax-y, 0px) * 0.45), 0);
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(77, 163, 255, 0.1);
  bottom: 10%;
  left: -5%;
  animation-delay: -6s;
  transform: translate3d(calc(var(--parallax-x, 0px) * -0.35), calc(var(--parallax-y, 0px) * -0.35), 0);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-light);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 40px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-metrics {
  display: flex;
  gap: 48px;
}

.metric-value {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

/* ── Phone mockup ── */
.phone-stage {
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.phone-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transform: translate(-50%, -50%) translate3d(calc(var(--tilt-x, 0) * 8px), calc(var(--tilt-y, 0) * 8px), 0);
}

.phone {
  position: relative;
  width: 290px;
  background: linear-gradient(160deg, #2a2a32 0%, #1a1a22 100%);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(0, 120, 212, 0.15);
  animation: phone-float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  will-change: transform;
}

.phone-stage.is-tilting .phone {
  animation: none;
  transform:
    rotateX(calc(var(--tilt-y, 0) * -8deg))
    rotateY(calc(var(--tilt-x, 0) * 10deg))
    translate3d(calc(var(--tilt-x, 0) * 10px), calc(var(--tilt-y, 0) * 10px), 0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    calc(var(--tilt-x, 0) * -18px) calc(44px + var(--tilt-y, 0) * 14px) 90px rgba(0, 0, 0, 0.52),
    0 0 150px rgba(0, 120, 212, 0.22);
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-notch {
  width: 90px;
  height: 26px;
  background: #1a1a22;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 0;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--gray-50);
  border-radius: 34px;
  overflow: hidden;
  margin-top: -26px;
  padding-top: 26px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 8px 22px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-800);
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 14px;
}

.phone-app-title {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.phone-app-title .go { color: var(--accent); }

.phone-app-meta {
  font-size: 11px;
  color: var(--gray-400);
  padding: 4px 10px;
  background: var(--white);
  border-radius: 999px;
}

.phone-editor-label {
  padding: 0 18px 6px;
  font-size: 11px;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
}

.phone-code {
  margin: 0 14px;
  padding: 14px;
  background: var(--white);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  white-space: pre;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.phone-code::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 13px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0, 120, 212, 0.08), rgba(77, 163, 255, 0.18), rgba(0, 120, 212, 0.06));
  animation: code-scan 4.8s ease-in-out infinite;
}

@keyframes code-scan {
  0%, 18% { transform: translateY(0); opacity: 0; }
  28%, 75% { opacity: 1; }
  100% { transform: translateY(100px); opacity: 0; }
}

.phone-code .kw { color: #0000ff; }
.phone-code .fn { color: #795e26; }
.phone-code .str { color: #a31515; }

.phone-run-btn {
  margin: 14px 18px;
  padding: 13px;
  background: var(--accent);
  color: var(--white);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.phone-run-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.28) 46%, transparent 68%);
  transform: translateX(-120%);
  animation: button-shine 3.6s ease-in-out infinite;
}

@keyframes button-shine {
  0%, 45% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.phone-output {
  margin: 0 18px 18px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.phone-output-label {
  font-size: 10px;
  color: var(--gray-400);
  margin-bottom: 6px;
  font-family: var(--font);
}

.phone-output-line { color: #107c10; }

.phone-nav {
  display: flex;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.phone-nav-item {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 10px;
  color: var(--gray-400);
}

.phone-nav-item.active {
  color: var(--accent);
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Section commons ── */
section { padding: var(--section-py) 0; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.section-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.7;
  max-width: 560px;
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

/* ── Stats strip ── */
.stats-strip {
  background: var(--black);
  color: var(--white);
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-grid .metric-value {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-grid .metric-label {
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* ── Feature showcase (vivo alternating rows) ── */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: clamp(60px, 8vw, 100px) 0;
}

.showcase-row + .showcase-row {
  border-top: 1px solid var(--gray-100);
}

.showcase-row.reverse .showcase-visual { order: -1; }

.showcase-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.showcase-row h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.showcase-row p {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0 0 28px;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-tag {
  padding: 6px 14px;
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray-800);
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/3;
  border-radius: 24px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, background 0.22s;
  will-change: transform;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-subtle), transparent 60%);
  transform: translate3d(calc(var(--tilt-x, 0) * 16px), calc(var(--tilt-y, 0) * 16px), 0);
}

.visual-card::after,
.bento-item::after,
.lang-card::after,
.learn-panel::after,
.membership-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--local-x, 50%) var(--local-y, 50%), rgba(77, 163, 255, 0.18), transparent 34%);
  transition: opacity 0.24s ease;
}

.visual-card:hover::after,
.bento-item:hover::after,
.lang-card:hover::after,
.learn-panel:hover::after,
.membership-card:hover::after {
  opacity: 1;
}

.visual-card.is-tilting,
.bento-item.is-tilting,
.lang-card.is-tilting,
.learn-panel.is-tilting,
.membership-card.is-tilting {
  transform:
    perspective(900px)
    rotateX(calc(var(--tilt-y, 0) * -5deg))
    rotateY(calc(var(--tilt-x, 0) * 5deg))
    translateY(-6px);
}

.visual-card-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px;
  transform: translateZ(28px);
}

.visual-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.visual-icon svg { width: 100%; height: 100%; }

.visual-card-inner h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.visual-card-inner p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

/* ── Features bento grid ── */
.section-light { background: var(--gray-50); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-item {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--gray-200);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.bento-item > * { position: relative; z-index: 1; }

.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.span-8 { grid-column: span 8; }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.bento-icon svg { width: 22px; height: 22px; }

.bento-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.bento-item p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Languages ── */
.lang-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.lang-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
  cursor: default;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.lang-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.lang-card > * { position: relative; z-index: 1; }

.lang-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.lang-card-icon.go { background: linear-gradient(135deg, #00add8, #0078a8); }
.lang-card-icon.java { background: linear-gradient(135deg, #e76f00, #b07219); }
.lang-card-icon.c { background: linear-gradient(135deg, #555, #333); }
.lang-card-icon.cpp { background: linear-gradient(135deg, #659ad2, #00599c); }
.lang-card-icon.python { background: linear-gradient(135deg, #3572a5, #ffd43b); color: #333; }

.lang-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.lang-card span {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 300;
}

.lang-footnote {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--gray-400);
}

/* ── Learn ── */
.learn-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.learn-panel {
  border-radius: 24px;
  padding: clamp(36px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-style: preserve-3d;
  transition: transform 0.24s ease-out, box-shadow 0.24s ease-out;
  will-change: transform;
}

.learn-panel:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
}

.learn-panel > * { position: relative; z-index: 1; }

.learn-panel.dark {
  background: var(--black);
  color: var(--white);
}

.learn-panel.light {
  background: var(--gray-100);
  color: var(--black);
}

.learn-panel.accent {
  background: var(--gradient-cta);
  color: var(--white);
}

.learn-panel.wide { grid-column: span 2; }

.learn-panel-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin-bottom: auto;
  padding-bottom: 24px;
}

.learn-panel h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.learn-panel p {
  font-size: 15px;
  opacity: 0.65;
  margin: 0;
  font-weight: 300;
  max-width: 400px;
}

.learn-panel-bg {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  font-size: 180px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  transform: translate3d(calc(var(--tilt-x, 0) * 18px), calc(-50% + var(--tilt-y, 0) * 18px), 0);
  transition: transform 0.2s ease-out;
}

/* ── Membership ── */
.membership-section {
  background: var(--black);
  color: var(--white);
}

.membership-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.membership-copy .section-eyebrow { color: var(--accent-light); }
.membership-copy .section-title { color: var(--white); }
.membership-copy .section-desc { color: rgba(255,255,255,0.55); }

.membership-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.membership-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.membership-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-light);
}

.membership-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.24s ease-out, border-color 0.24s ease-out, box-shadow 0.24s ease-out;
  will-change: transform;
}

.membership-card:hover {
  border-color: rgba(77, 163, 255, 0.32);
  box-shadow: 0 32px 90px rgba(0, 120, 212, 0.12);
}

.membership-card > * { position: relative; z-index: 1; }

.membership-card::after {
  background: radial-gradient(circle at var(--local-x, 50%) var(--local-y, 50%), rgba(255, 215, 0, 0.16), transparent 36%);
}

.membership-card-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.membership-price {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 8px;
}

.membership-price small {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.6;
}

.membership-card-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin: 20px 0 32px;
  font-weight: 300;
}

/* ── FAQ ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--ease-out);
}

.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.faq-item.open .faq-icon svg {
  transform: rotate(45deg);
  stroke: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.75;
  padding-right: 52px;
}

/* ── Contact page (Codex-style) ── */
.contact-page {
  --codex-void: #09090b;
  --codex-glass: rgba(22, 22, 30, 0.72);
  --codex-border: rgba(255, 255, 255, 0.08);
  --codex-violet: #8b5cf6;
  --codex-lilac: #c4b5fd;
  min-height: 100vh;
  background: var(--codex-void);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.contact-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.contact-orb-1 {
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, transparent 70%);
  animation: contact-float 18s ease-in-out infinite;
}

.contact-orb-2 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.35) 0%, transparent 70%);
  animation: contact-float 22s ease-in-out infinite reverse;
}

@keyframes contact-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 20px) scale(1.06); }
}

.contact-header {
  position: relative;
  z-index: 10;
  height: var(--header-h);
  border-bottom: 1px solid var(--codex-border);
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.contact-nav a:not(.btn) {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s;
}

.contact-nav a:not(.btn):hover { color: var(--white); }

.btn-ghost-light {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s, border-color 0.25s;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--codex-lilac);
}

.contact-intro h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.contact-lead {
  margin: 0;
  max-width: 420px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.58);
}

.contact-points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--codex-border);
}

.contact-point-icon {
  color: var(--codex-violet);
  font-size: 10px;
  line-height: 1.8;
}

.contact-mail {
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42);
}

.contact-mail a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-mail a:hover { color: var(--white); }

.contact-form-codex {
  background: var(--codex-glass);
  border: 1px solid var(--codex-border);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 40px);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-page .form-field {
  margin-bottom: 22px;
}

.contact-page .form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.contact-page .form-field input,
.contact-page .form-field textarea {
  width: 100%;
  padding: 15px 16px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.contact-page .form-field input::placeholder,
.contact-page .form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.contact-page .form-field input:focus,
.contact-page .form-field textarea:focus {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.contact-submit-codex {
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--codex-void);
  background: var(--white);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.contact-submit-codex:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.18);
}

.contact-form-note {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
}

.contact-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--codex-border);
  padding: 24px 0;
  background: rgba(9, 9, 11, 0.85);
}

.contact-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.contact-footer-links {
  display: flex;
  gap: 20px;
}

.contact-footer-links a {
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.2s;
}

.contact-footer-links a:hover { color: var(--white); }

/* ── Download CTA ── */
.download-section {
  position: relative;
  background: var(--gradient-cta);
  color: var(--white);
  text-align: center;
  padding: clamp(80px, 10vw, 120px) 0;
  overflow: hidden;
}

.download-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.download-section .section-title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  position: relative;
}

.download-mascot {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.download-section .section-desc {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 40px;
  position: relative;
}

.download-section .btn-primary {
  background: var(--white);
  color: var(--accent);
  position: relative;
}

.download-section .btn-primary:hover {
  background: var(--gray-100);
}

.download-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

/* ── Footer ── */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.45);
  padding: 64px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand > p {
  font-size: 14px;
  line-height: 1.75;
  font-weight: 300;
  max-width: 300px;
  margin: 0;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 12px; }

.footer-col a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.download-section a,
.membership-card-note a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-section a:hover,
.membership-card-note a:hover {
  color: var(--white);
}

.legal-content a {
  color: var(--accent);
}

.footer-disclaimer {
  padding: 24px 0;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-meta a,
.contact-footer-links a {
  white-space: nowrap;
}

/* ── Legal pages ── */
.legal-page {
  background: var(--gray-50);
  min-height: 100vh;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}

.legal-header .header-inner { height: var(--header-h); }
.legal-header .logo { color: var(--black); }

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-content .meta {
  color: var(--gray-400);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.75;
}

.legal-content ul { padding-left: 20px; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--gray-200);
  padding: 12px 14px;
  text-align: left;
}

.legal-content th {
  background: var(--white);
  font-weight: 500;
}

.legal-content .important {
  background: var(--accent-subtle);
  border-left: 3px solid var(--accent);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner,
  .showcase-row,
  .membership-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc,
  .section-desc,
  .learn-panel p { margin-left: auto; margin-right: auto; }

  .hero-actions,
  .hero-metrics { justify-content: center; }

  .phone-stage { order: -1; }

  .showcase-row.reverse .showcase-visual { order: -1; }

  .showcase-tags { justify-content: center; }

  .bento-item.span-4,
  .bento-item.span-6,
  .bento-item.span-8 { grid-column: span 6; }

  .lang-cards { grid-template-columns: repeat(3, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }

  body::before,
  .cursor-glow,
  .hero-spotlight,
  .code-rain {
    display: none;
  }

  .hero {
    min-height: auto;
    background:
      radial-gradient(ellipse 90% 55% at 50% 0%, rgba(0, 120, 212, 0.16), transparent 62%),
      linear-gradient(180deg, #0a0a0f 0%, #12121a 58%, #0a0a0f 100%);
  }

  .hero-grid-bg {
    transform: none;
    background-size: 88px 88px;
  }

  .hero-orb {
    filter: blur(36px);
    animation: none;
    opacity: 0.55;
  }

  .hero-orb-1 {
    width: 260px;
    height: 260px;
    top: 2%;
    right: -90px;
    transform: none;
  }

  .hero-orb-2 {
    width: 180px;
    height: 180px;
    left: -80px;
    bottom: 26%;
    transform: none;
  }

  .phone {
    animation: none;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 24px 48px rgba(0, 0, 0, 0.42),
      0 0 70px rgba(0, 120, 212, 0.12);
  }

  .phone-glow,
  .phone-code::after,
  .phone-run-btn::after {
    display: none;
  }

  .visual-card,
  .bento-item,
  .lang-card,
  .learn-panel,
  .membership-card,
  .phone {
    will-change: auto;
    transform: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }

  .visual-card::after,
  .bento-item::after,
  .lang-card::after,
  .learn-panel::after,
  .membership-card::after {
    display: none;
  }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.span-4,
  .bento-item.span-6,
  .bento-item.span-8 { grid-column: span 1; }

  .lang-cards { grid-template-columns: repeat(2, 1fr); }

  .learn-bento { grid-template-columns: 1fr; }
  .learn-panel.wide { grid-column: span 1; }

  .footer-top { grid-template-columns: 1fr; }

  .scroll-hint { display: none; }

  .contact-layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact-nav a:not(.btn) { display: none; }
}

@media (max-width: 480px) {
  .lang-cards { grid-template-columns: 1fr; }
  .hero-metrics { gap: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .hero-orb, .scroll-hint, .contact-orb, .code-rain span, .phone-code::after, .phone-run-btn::after { animation: none; }
  .cursor-glow, .hero-spotlight, .code-rain { display: none; }
  .visual-card,
  .bento-item,
  .lang-card,
  .learn-panel,
  .membership-card,
  .phone { transform: none !important; transition: none !important; }
}
