
/* ==================================================================
   1. DESIGN TOKENS
   ================================================================== */
:root{
  /* surfaces */
  --bg:            #05060a;
  --bg-elevated:   #0a0c13;
  --bg-soft:       #0d0f18;
  --surface:       rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.065);
  --border:        rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);

  /* text */
  --text-1: #f4f6fb;
  --text-2: #a4adc4;
  --text-3: #7c86a3; /* lightened from #656e85 for WCAG AA contrast on small/meta text */

  /* accent — soft blue glow */
  --blue-500: #4f8cff;
  --blue-400: #7fabff;
  --blue-300: #a9c6ff;
  --blue-glow: rgba(79,140,255,0.38);

  /* semantic */
  --green: #35d399;
  --green-bg: rgba(53,211,153,0.10);
  --red: #f2695f;
  --red-bg: rgba(242,105,95,0.10);

  /* radius / shadow */
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(79,140,255,0.15), 0 20px 60px -20px rgba(79,140,255,0.25);

  /* type */
  --font-ui:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* motion */
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ==================================================================
   2. RESET & BASE
   ================================================================== */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text-1);
  font-family:var(--font-ui);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  font-synthesis:none;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,select{ font-family:inherit; }
::selection{ background:var(--blue-glow); color:#fff; }

/* scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:var(--border-strong); border-radius:10px; }

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

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* ==================================================================
   3. LAYOUT UTILITIES
   ================================================================== */
.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.container{ max-width:1180px; margin-inline:auto; padding-inline:24px; }
.section{ position:relative; padding:120px 0; }
.section-tight{ padding:80px 0; }
.grid{ display:grid; gap:20px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(3,1fr); }
@media (max-width:960px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono);
  font-size:12.5px; font-weight:500;
  letter-spacing:0.06em; text-transform:uppercase;
  color:var(--blue-400);
  padding:6px 12px;
  background:rgba(79,140,255,0.08);
  border:1px solid rgba(79,140,255,0.2);
  border-radius:100px;
  margin-bottom:20px;
}
.eyebrow::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--blue-400); box-shadow:0 0 8px var(--blue-400); }

.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{
  font-size:clamp(1.9rem,3.4vw,2.6rem);
  font-weight:700;
  letter-spacing:-0.02em;
  margin-bottom:14px;
  text-wrap:balance;
}
.section-head p{ color:var(--text-2); font-size:1.05rem; }

/* ==================================================================
   4. BACKGROUND ATMOSPHERE
   ================================================================== */
.bg-grid{
  position:fixed; inset:0; z-index:-2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow{
  position:fixed; z-index:-1; border-radius:50%;
  filter:blur(120px); pointer-events:none;
}
.bg-glow-1{ top:-200px; left:50%; transform:translateX(-50%); width:900px; height:600px; background:radial-gradient(circle, var(--blue-glow), transparent 70%); opacity:0.55; }
.bg-glow-2{ top:1600px; right:-200px; width:600px; height:600px; background:radial-gradient(circle, rgba(79,140,255,0.18), transparent 70%); }

/* ==================================================================
   5. PROGRESS BAR / NAV
   ================================================================== */
.progress-bar{
  position:fixed; top:0; left:0; height:2px; width:0%;
  background:linear-gradient(90deg, var(--blue-500), var(--blue-300));
  z-index:1000; transition:width 0.1s linear;
}

.navbar{
  position:fixed; top:0; left:0; right:0; z-index:900;
  padding:14px 0;
  background:rgba(5,6,10,0.7);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid var(--border);
}
.navbar .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:15px; letter-spacing:-0.01em; }
.brand .brand-mark{
  width:28px; height:28px; border-radius:8px;
  background:linear-gradient(135deg, var(--blue-500), #2450b8);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:13px; font-weight:700; color:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,0.15) inset, 0 4px 14px -2px var(--blue-glow);
}
.nav-links{ display:flex; align-items:center; gap:4px; }
.nav-links a{
  font-size:13.5px; color:var(--text-2); padding:8px 12px; border-radius:8px;
  transition:color 0.2s var(--ease), background 0.2s var(--ease);
  white-space:nowrap;
}
.nav-links a:hover{ color:var(--text-1); background:var(--surface); }
.nav-links a.active{ color:var(--blue-300); background:rgba(79,140,255,0.1); }
.nav-toggle{
  display:none; width:36px; height:36px; border-radius:8px;
  background:var(--surface); border:1px solid var(--border);
  align-items:center; justify-content:center; color:var(--text-1);
}
@media (max-width: 980px){
  .nav-links{
    position:fixed; top:60px; left:16px; right:16px;
    flex-direction:column; align-items:stretch; gap:14px;
    background:var(--bg-elevated); border:1px solid var(--border);
    border-radius:var(--r-md); padding:10px;
    box-shadow:var(--shadow-soft);
    transform-origin:top; transform:scaleY(0); opacity:0;
    transition:transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-links.open{ transform:scaleY(1); opacity:1; }
  .nav-links a{ padding:10px 12px; }
  .nav-toggle{ display:flex; }
}

/* ==================================================================
   6. BUTTONS
   ================================================================== */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px; border-radius:10px;
  font-size:14px; font-weight:600;
  border:1px solid var(--border-strong);
  background:var(--surface);
  color:var(--text-1);
  transition:transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover{ background:var(--surface-hover); transform:translateY(-1px); }
.btn-primary{
  background:linear-gradient(180deg, var(--blue-500), #2f66d6);
  border-color:transparent;
  box-shadow:0 8px 24px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover{ filter:brightness(1.08); }

/* ==================================================================
   7. GLASS CARD (base)
   ================================================================== */
.glass{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}

/* ==================================================================
   8. HERO
   ================================================================== */
.hero{
  padding:180px 0 120px;
  position:relative;
  text-align:center;
}
.hero-badge-row{ display:flex; justify-content:center; }
.hero h1{
  font-size:clamp(2.6rem, 7vw, 5.4rem);
  font-weight:800;
  letter-spacing:-0.04em;
  line-height:1.03;
  margin-bottom:22px;
  text-wrap:balance;
  background:linear-gradient(180deg, #ffffff 30%, #b9c6e8 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{
  font-size:clamp(1.05rem,2vw,1.3rem);
  color:var(--text-2);
  max-width:620px; margin:0 auto 40px;
}
.hero-cta{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:88px; }

.hero-stage{
  position:relative; max-width:920px; margin:0 auto;
  padding:36px;
  overflow:hidden;
}
.hero-stage::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(600px 240px at 50% 0%, rgba(79,140,255,0.16), transparent 70%);
  pointer-events:none;
}
.float-row{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; position:relative; z-index:1; }
.float-chip{
  display:flex; align-items:center; gap:10px;
  padding:14px 18px; border-radius:14px;
  background:var(--bg-soft); border:1px solid var(--border);
  font-family:var(--font-mono); font-size:13px; color:var(--text-2);
  box-shadow:0 12px 30px -14px rgba(0,0,0,0.6);
}

/* ------------------------------------------------------------
   8b. HERO — PREMIUM UPGRADE
   Scoped strictly under .hero-cta / .hero-stage so nothing
   outside the Hero (shared .btn / .glass usages elsewhere) is
   affected. Same design system — deeper polish only.
   ------------------------------------------------------------ */

/* ---- Premium CTA buttons ---- */
.hero-cta .btn{
  position:relative;
  isolation:isolate;
  padding:15px 27px;
  border-radius:12px;
  font-size:14.5px;
  font-weight:600;
  letter-spacing:-0.01em;
  gap:9px;
  overflow:hidden;
  transition:transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
             border-color 0.4s var(--ease), background 0.4s var(--ease),
             color 0.35s var(--ease), filter 0.5s var(--ease);
}
.hero-cta .btn svg{ position:relative; z-index:2; transition:transform 0.5s var(--ease); }
.hero-cta .btn span{ position:relative; z-index:2; }
.hero-cta .btn:active{ transform:translateY(0) scale(0.975); transition:transform 0.15s var(--ease); }

/* secondary — elegant glass, recedes behind the primary CTA */
.hero-cta .btn:not(.btn-primary){
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  color:var(--text-2);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.hero-cta .btn:not(.btn-primary)::after{
  content:"";
  position:absolute; inset:-10px; z-index:-1;
  border-radius:inherit;
  background:radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  opacity:0;
  transition:opacity 0.5s var(--ease);
}
.hero-cta .btn:not(.btn-primary):hover{
  background:rgba(255,255,255,0.06);
  border-color:var(--border-strong);
  color:var(--text-1);
  transform:translateY(-1.5px);
  box-shadow:0 1px 0 rgba(255,255,255,0.08) inset, 0 16px 34px -20px rgba(0,0,0,0.8);
}
.hero-cta .btn:not(.btn-primary):hover::after{ opacity:0.55; }
.hero-cta .btn:not(.btn-primary):hover svg{ transform:translateX(-2px); }
.hero-cta .btn:not(.btn-primary):active{ background:rgba(255,255,255,0.05); }
.hero-cta .btn:not(.btn-primary):focus-visible{
  outline:none;
  box-shadow:0 0 0 1px var(--bg), 0 0 0 3px rgba(255,255,255,0.28);
}

/* primary — the button that should instantly attract attention */
.hero-cta .btn-primary{
  background:linear-gradient(160deg, #7fabff 0%, var(--blue-500) 46%, #2c5fd1 100%);
  border:1px solid rgba(255,255,255,0.2);
  color:#fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -14px 22px -10px rgba(0,0,0,0.28) inset,
    0 16px 36px -12px var(--blue-glow),
    0 3px 10px -3px rgba(79,140,255,0.45);
}
.hero-cta .btn-primary::before{
  content:"";
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.4) 48%, transparent 62%);
  transform:translateX(-130%);
  transition:transform 0.75s var(--ease);
}
.hero-cta .btn-primary::after{
  content:"";
  position:absolute; inset:-14px; z-index:-1;
  border-radius:inherit;
  background:linear-gradient(160deg, #7fabff, var(--blue-500));
  filter:blur(20px);
  opacity:0;
  transition:opacity 0.5s var(--ease);
}
.hero-cta .btn-primary:hover{
  transform:translateY(-2px);
  filter:brightness(1.04);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -14px 22px -10px rgba(0,0,0,0.22) inset,
    0 20px 44px -14px var(--blue-glow),
    0 4px 14px -3px rgba(79,140,255,0.55);
}
.hero-cta .btn-primary:hover::before{ transform:translateX(130%); }
.hero-cta .btn-primary:hover::after{ opacity:0.55; }
.hero-cta .btn-primary:hover svg{ transform:translateX(2px); }
.hero-cta .btn-primary:active{ filter:brightness(0.98); }
.hero-cta .btn-primary:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 1px var(--bg), 0 0 0 3px rgba(127,171,255,0.55),
    0 16px 36px -12px var(--blue-glow);
}

/* ---- Premium floating input showcase ---- */
.hero .container{ perspective:1500px; }

.hero-stage{
  padding:40px 34px 36px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border-color:var(--border);
  transform-style:preserve-3d;
  will-change:transform;
  transition:transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.07) inset,
    0 44px 90px -32px rgba(0,0,0,0.8);
}
.hero-stage::before{
  background:radial-gradient(680px 300px at 50% -8%, rgba(79,140,255,0.22), transparent 72%);
  animation:hero-glow-pulse 5s ease-in-out infinite;
}
.hero-stage::after{
  content:"";
  position:absolute; left:12%; right:12%; bottom:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  pointer-events:none;
}
@keyframes hero-glow-pulse{
  0%,100%{ opacity:0.8; }
  50%{ opacity:1; }
}

.float-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
  text-align:left;
}
@media (max-width:760px){ .float-row{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:420px){ .float-row{ grid-template-columns:1fr; } }

.float-chip{
  position:relative;
  align-items:flex-start;
  gap:11px;
  padding:15px 15px 14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014));
  box-shadow:0 1px 0 rgba(255,255,255,0.07) inset, 0 18px 34px -22px rgba(0,0,0,0.75);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  animation:chip-float 7s ease-in-out infinite;
  transition:transform 0.5s var(--ease), border-color 0.4s var(--ease),
             background 0.4s var(--ease);
  will-change:transform;
}
.float-chip::after{
  content:"";
  position:absolute; inset:0;
  border-radius:inherit;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.09) inset,
    0 26px 50px -20px rgba(0,0,0,0.85),
    0 0 0 1px rgba(79,140,255,0.2),
    0 0 32px -6px var(--blue-glow);
  opacity:0;
  transition:opacity 0.45s var(--ease);
  pointer-events:none;
}
.float-chip:hover{
  animation-play-state:paused;
  transform:translateY(-4px);
  border-color:var(--border-strong);
  background:linear-gradient(180deg, rgba(255,255,255,0.072), rgba(255,255,255,0.018));
}
.float-chip:hover::after{ opacity:1; }
.float-chip:nth-child(4n+1){ animation-delay:0s;    --fc-rot:-0.6deg; }
.float-chip:nth-child(4n+2){ animation-delay:.85s;  --fc-rot:.5deg; }
.float-chip:nth-child(4n+3){ animation-delay:1.7s;  --fc-rot:-0.45deg; }
.float-chip:nth-child(4n)  { animation-delay:2.55s; --fc-rot:.55deg; }
@keyframes chip-float{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-9px) rotate(var(--fc-rot,0deg)); }
}

.fc-icon{
  width:30px; height:30px; border-radius:9px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(79,140,255,0.12); border:1px solid rgba(79,140,255,0.26);
  color:var(--blue-300);
  transition:background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.fc-icon svg{ width:14px; height:14px; }
.float-chip:hover .fc-icon{
  background:rgba(79,140,255,0.22);
  border-color:rgba(79,140,255,0.45);
  transform:scale(1.06);
}

.fc-body{ display:flex; flex-direction:column; gap:7px; min-width:0; flex:1; }
.fc-type{ font-family:var(--font-mono); font-size:11.5px; color:var(--text-3); letter-spacing:0.01em; }
.fc-type b{ color:var(--text-1); font-weight:600; }

.fc-value{
  font-family:var(--font-mono); font-size:12.5px; color:var(--text-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transition:color 0.4s var(--ease);
}
.float-chip:hover .fc-value{ color:var(--text-1); }

.fc-range{ display:flex; align-items:center; gap:8px; }
.fc-range input[type="range"]{ height:3px; accent-color:var(--blue-400); pointer-events:none; transition:filter 0.4s var(--ease); }
.fc-range span{ font-family:var(--font-mono); font-size:11px; color:var(--text-3); flex-shrink:0; transition:color 0.4s var(--ease); }
.float-chip:hover .fc-range input[type="range"]{ filter:brightness(1.2) saturate(1.15); }
.float-chip:hover .fc-range span{ color:var(--text-2); }

.fc-color{ display:flex; align-items:center; gap:8px; }
.fc-swatch{
  width:17px; height:17px; border-radius:6px; flex-shrink:0;
  background:linear-gradient(150deg, #9dbcff, var(--blue-500));
  border:1px solid rgba(255,255,255,0.35);
  box-shadow:0 2px 8px -2px rgba(79,140,255,0.75);
  transition:transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.float-chip:hover .fc-swatch{
  transform:scale(1.12);
  box-shadow:0 4px 14px -3px rgba(79,140,255,0.9);
}

.fc-check{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-2); transition:color 0.4s var(--ease); }
.fc-check input{ pointer-events:none; width:15px; height:15px; }
.float-chip:hover .fc-check{ color:var(--text-1); }

.fc-file{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:100px;
  background:var(--bg-elevated); border:1px solid var(--border);
  font-family:var(--font-mono); font-size:11px; color:var(--text-2);
  width:fit-content;
  transition:border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.fc-file svg{ width:11px; height:11px; color:var(--blue-300); }
.float-chip:hover .fc-file{ border-color:rgba(79,140,255,0.4); background:rgba(79,140,255,0.08); }

.fc-stepper{ display:flex; align-items:center; gap:7px; }
.fc-stepper button{
  width:18px; height:18px; border-radius:5px;
  background:var(--bg-elevated); border:1px solid var(--border-strong);
  color:var(--text-2); font-size:12px; line-height:1; pointer-events:none;
  transition:border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.fc-stepper span{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-1); min-width:14px; text-align:center; }
.float-chip:hover .fc-stepper button{ border-color:rgba(79,140,255,0.5); color:var(--text-1); }

.fc-password{ display:flex; align-items:center; gap:8px; }
.fc-password .dots{ font-size:13px; letter-spacing:2px; color:var(--text-2); transition:color 0.4s var(--ease); }
.fc-password svg{ width:12px; height:12px; color:var(--text-3); flex-shrink:0; transition:color 0.4s var(--ease); }
.float-chip:hover .fc-password .dots{ color:var(--text-1); }
.float-chip:hover .fc-password svg{ color:var(--text-2); }

.fc-submit{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 13px; border-radius:8px;
  background:linear-gradient(180deg, var(--blue-400), var(--blue-500));
  color:#fff; font-size:11.5px; font-weight:600;
  width:fit-content;
  box-shadow:0 8px 18px -8px var(--blue-glow);
  transition:filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.fc-submit svg{ width:11px; height:11px; transition:transform 0.4s var(--ease); }
.float-chip:hover .fc-submit{ filter:brightness(1.08); box-shadow:0 10px 24px -8px var(--blue-glow); }
.float-chip:hover .fc-submit svg{ transform:translateX(2px); }

@media (prefers-reduced-motion: reduce){
  .hero-stage, .float-chip{ animation:none !important; transition:none !important; }
}

/* ==================================================================
   9. INTRO
   ================================================================== */
.intro-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center; }
@media (max-width:860px){ .intro-grid{ grid-template-columns:1fr; } }
.intro-grid h2{ font-size:clamp(1.9rem,3.4vw,2.5rem); font-weight:700; letter-spacing:-0.02em; margin-bottom:18px; }
.intro-grid p{ color:var(--text-2); margin-bottom:16px; font-size:1.02rem; }
.intro-grid code.inline, .mistake-body code.inline, p code.inline{
  font-family:var(--font-mono); font-size:0.88em;
  background:var(--bg-soft); border:1px solid var(--border);
  padding:2px 7px; border-radius:6px; color:var(--blue-300);
}
.intro-panel{ padding:26px; }
.intro-panel-title{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-3); margin-bottom:14px; letter-spacing:0.04em; text-transform:uppercase; }
.intro-fact{ display:flex; gap:12px; padding:14px 0; border-top:1px solid var(--border); }
.intro-fact:first-of-type{ border-top:none; }
.intro-fact .num{ font-family:var(--font-mono); color:var(--blue-400); font-weight:600; font-size:14px; }
.intro-fact div p{ color:var(--text-2); font-size:13.5px; }
.intro-fact div strong{ display:block; margin-bottom:2px; font-size:14.5px; }

/* ==================================================================
   10. INPUT CARDS
   ================================================================== */
.input-card{
  padding:24px;
  display:flex; flex-direction:column; gap:16px;
  transition:transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.input-card:hover{ transform:translateY(-4px); border-color:var(--border-strong); box-shadow:var(--shadow-soft); }

.input-card-head{ display:flex; align-items:center; gap:12px; }
.input-icon{
  width:40px; height:40px; border-radius:11px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(79,140,255,0.1); border:1px solid rgba(79,140,255,0.22);
  color:var(--blue-300);
}
.input-icon svg{ width:19px; height:19px; }
.input-card-head h3{ font-family:var(--font-mono); font-size:16px; font-weight:600; }
.badge{
  display:inline-block; font-size:11px; font-family:var(--font-mono);
  color:var(--text-3); border:1px solid var(--border); border-radius:100px;
  padding:2px 9px; margin-top:2px;
}
.input-desc{ color:var(--text-2); font-size:14px; }

.input-preview{
  padding:16px; border-radius:var(--r-md);
  background:var(--bg-soft); border:1px solid var(--border);
}
.input-preview label{ display:block; font-size:12px; color:var(--text-3); margin-bottom:8px; font-family:var(--font-mono); }

/* uniform themed form control skin, used across every live preview */
.field, input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="url"], input[type="number"],
input[type="date"], input[type="time"], input[type="month"], input[type="week"],
input[type="datetime-local"], select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:9px;
  border:1px solid var(--border-strong);
  background:var(--bg-elevated);
  color:var(--text-1);
  font-size:14px;
  transition:border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  color-scheme:dark;
}
.field:focus, input:focus, select:focus, textarea:focus{
  outline:none; border-color:var(--blue-500);
  box-shadow:0 0 0 3px rgba(79,140,255,0.18);
}
input::placeholder{ color:var(--text-3); }
input[type="range"]{ width:100%; accent-color:var(--blue-500); }
input[type="checkbox"], input[type="radio"]{
  width:17px; height:17px; accent-color:var(--blue-500); cursor:pointer;
}
input[type="color"]{
  width:52px; height:36px; padding:3px; border-radius:9px;
  border:1px solid var(--border-strong); background:var(--bg-elevated); cursor:pointer;
}
input[type="file"]{
  border:1px dashed var(--border-strong); background:var(--bg-elevated);
  padding:14px 12px; cursor:pointer; font-size:13px; color:var(--text-2);
}
input[type="file"]::file-selector-button{
  margin-right:12px; padding:7px 12px; border-radius:7px; border:none;
  background:var(--blue-500); color:#fff; font-size:12.5px; font-weight:600;
}
.check-row, .radio-row{ display:flex; align-items:center; gap:10px; margin-bottom:10px; font-size:14px; color:var(--text-2); }
.check-row:last-child, .radio-row:last-child{ margin-bottom:0; }

/* code block */
.code-block{ border-radius:var(--r-md); overflow:hidden; border:1px solid var(--border); background:#08090e; }
.code-block-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 12px; background:var(--bg-elevated); border-bottom:1px solid var(--border);
}
.code-block-head span{ font-family:var(--font-mono); font-size:11px; color:var(--text-3); letter-spacing:0.04em; }
.copy-btn{
  display:flex; align-items:center; gap:6px;
  background:transparent; border:none; color:var(--text-3);
  font-size:11.5px; font-family:var(--font-mono); padding:4px 8px; border-radius:6px;
  transition:color 0.2s var(--ease), background 0.2s var(--ease);
}
.copy-btn:hover{ color:var(--text-1); background:var(--surface); }
.copy-btn svg{ width:13px; height:13px; }
.copy-btn.copied{ color:var(--green); }
.code-block pre{ padding:14px 16px; overflow-x:auto; }
.code-block code{ font-family:var(--font-mono); font-size:12.8px; color:#c9d4ee; line-height:1.6; white-space:pre; }
.code-block .tag{ color:#7fabff; }
.code-block .attr{ color:#a9c6ff; }
.code-block .str{ color:#8fe3b0; }

/* ==================================================================
   11. MISTAKES
   ================================================================== */
.mistake-card{ padding:22px; display:flex; flex-direction:column; gap:14px; }
.mistake-row{ border-radius:var(--r-md); border:1px solid var(--border); overflow:hidden; }
.mistake-label{
  display:flex; align-items:center; gap:8px;
  padding:8px 14px; font-family:var(--font-mono); font-size:11.5px; font-weight:600; letter-spacing:0.04em;
}
.mistake-row.wrong .mistake-label{ background:var(--red-bg); color:var(--red); }
.mistake-row.correct .mistake-label{ background:var(--green-bg); color:var(--green); }
.mistake-row pre{ padding:12px 14px; background:#08090e; margin:0; overflow-x:auto; }
.mistake-row code{ font-family:var(--font-mono); font-size:12.5px; color:#c9d4ee; }
.mistake-body{ color:var(--text-2); font-size:13.5px; }
.mistake-body strong{ color:var(--text-1); }

/* ==================================================================
   12. REGISTRATION FORM
   ================================================================== */
.form-shell{
  max-width:640px; margin:0 auto; padding:40px;
  box-shadow:var(--shadow-glow);
}
.form-shell h3{ font-size:1.5rem; font-weight:700; margin-bottom:6px; letter-spacing:-0.01em; }
.form-shell > p{ color:var(--text-2); font-size:14px; margin-bottom:30px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field-group{ margin-bottom:16px; }
.field-group label{ display:block; font-size:13px; color:var(--text-2); margin-bottom:7px; font-weight:500; }
.field-hint{ font-size:12px; color:var(--text-3); margin-top:6px; }
.field-inline{ display:flex; align-items:center; gap:10px; margin-bottom:14px; font-size:13.5px; color:var(--text-2); }
.field-inline a{ color:var(--blue-300); border-bottom:1px solid rgba(127,171,255,0.35); }
.form-submit{ width:100%; justify-content:center; padding:13px; font-size:14.5px; margin-top:8px; }

/* ==================================================================
   13. CHEAT SHEET TABLE
   ================================================================== */
.table-wrap{ overflow-x:auto; border-radius:var(--r-lg); border:1px solid var(--border); }
table.cheat{ width:100%; border-collapse:collapse; min-width:760px; }
table.cheat thead th{
  text-align:left; font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.05em; text-transform:uppercase;
  color:var(--text-3); padding:14px 18px; background:var(--bg-elevated); border-bottom:1px solid var(--border);
  position:sticky; top:0;
}
table.cheat tbody td{ padding:14px 18px; border-bottom:1px solid var(--border); font-size:13.5px; color:var(--text-2); vertical-align:middle; }
table.cheat tbody tr:last-child td{ border-bottom:none; }
table.cheat tbody tr{ transition:background 0.2s var(--ease); }
table.cheat tbody tr:hover{ background:var(--surface); }
table.cheat td.type code{ font-family:var(--font-mono); color:var(--blue-300); background:rgba(79,140,255,0.09); padding:3px 8px; border-radius:6px; font-size:12.5px; }
table.cheat td.example code{ font-family:var(--font-mono); font-size:12px; color:var(--text-2); }
.support{ display:inline-flex; align-items:center; gap:6px; font-size:12px; }
.support .dot{ width:7px; height:7px; border-radius:50%; }
.support.full .dot{ background:var(--green); }
.support.partial .dot{ background:#e8b34e; }

/* ==================================================================
   14. BEST PRACTICES
   ================================================================== */
.practice-card{ padding:24px; }
.practice-card .input-icon{ margin-bottom:16px; }
.practice-card h3{ font-size:16px; font-weight:600; margin-bottom:8px; }
.practice-card p{ color:var(--text-2); font-size:13.8px; }

/* ==================================================================
   15. NEXT LEARNING
   ================================================================== */
.next-card{
  padding:22px; display:flex; align-items:center; justify-content:space-between; gap:16px;
  transition:border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.next-card:hover{ border-color:var(--border-strong); transform:translateX(4px); }
.next-card-left{ display:flex; align-items:center; gap:14px; }
.next-index{ font-family:var(--font-mono); color:var(--text-3); font-size:13px; width:22px; }
.next-card h3{ font-size:15px; font-weight:600; margin-bottom:3px; }
.next-card p{ font-size:12.8px; color:var(--text-2); }
.next-card svg{ width:16px; height:16px; color:var(--text-3); flex-shrink:0; transition:transform 0.2s var(--ease), color 0.2s var(--ease); }
.next-card:hover svg{ transform:translateX(3px); color:var(--blue-300); }

/* ==================================================================
   16. FOOTER
   ================================================================== */
footer{ border-top:1px solid var(--border); padding:56px 0 40px; }
.footer-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap; margin-bottom:36px; }
.footer-top p{ color:var(--text-2); font-size:13.5px; max-width:340px; margin-top:10px; }
.footer-links{ display:flex; gap:32px; flex-wrap:wrap; }
.footer-col h4{ font-size:12px; color:var(--text-3); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:12px; }
.footer-col a{ display:block; font-size:13.5px; color:var(--text-2); padding:4px 0; }
.footer-col a:hover{ color:var(--text-1); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:24px; border-top:1px solid var(--border); font-size:12.5px; color:var(--text-3); }

/* ==================================================================
   17. BACK TO TOP
   ================================================================== */
.to-top{
  position:fixed; bottom:28px; right:28px; z-index:800;
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-elevated); border:1px solid var(--border-strong);
  color:var(--text-1); box-shadow:var(--shadow-soft);
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top svg{ width:17px; height:17px; }

/* ==================================================================
   18. REVEAL ANIMATION
   ================================================================== */
[data-reveal]{ opacity:0; transform:translateY(22px); transition:opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; transition:none; }
}


/* ==================================================================
   RESPONSIVE ENHANCEMENTS
   Mobile-first progressive enhancement. Desktop untouched.
   ================================================================== */

/* ---------------------------------------------------------------
   1. BASE MOBILE (320px – 480px)
   --------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --r-lg: 14px;
    --r-md: 10px;
    --r-sm: 6px;
  }

  .container {
    padding-inline: 16px;
  }

  /* Hero */
  .hero {
    padding: 140px 0 60px;
  }
  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    letter-spacing: -0.03em;
  }
  .hero p.lead {
    font-size: 1rem;
    padding: 0 4px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    min-height: 48px;
  }

  /* Hero stage */
  .hero-stage {
    padding: 24px 16px 20px;
    border-radius: 18px;
  }
  .float-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .float-chip {
    padding: 12px 14px;
    border-radius: 12px;
  }

  /* Sections */
  .section {
    padding: 64px 0;
  }
  .section-tight {
    padding: 48px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .section-head h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  .section-head p {
    font-size: 0.95rem;
  }

  /* Eyebrow */
  .eyebrow {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 14px;
  }

  /* Intro grid */
  .intro-grid {
    gap: 28px;
  }
  .intro-grid h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  .intro-grid p {
    font-size: 0.95rem;
  }
  .intro-panel {
    padding: 20px;
  }
  .intro-fact {
    padding: 10px 0;
    gap: 10px;
  }
  .intro-fact .num {
    font-size: 13px;
    min-width: 22px;
  }
  .intro-fact div strong {
    font-size: 13px;
  }
  .intro-fact div p {
    font-size: 12.5px;
  }

  /* Input cards */
  .input-card {
    padding: 18px;
    gap: 12px;
  }
  .input-card-head {
    gap: 10px;
  }
  .input-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .input-icon svg {
    width: 17px;
    height: 17px;
  }
  .input-card-head h3 {
    font-size: 14px;
  }
  .badge {
    font-size: 10px;
    padding: 1px 7px;
  }
  .input-desc {
    font-size: 13px;
  }
  .input-preview {
    padding: 12px;
  }
  .input-preview label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  /* Code blocks */
  .code-block {
    border-radius: var(--r-md);
  }
  .code-block-head {
    padding: 6px 10px;
  }
  .code-block pre {
    padding: 10px 12px;
  }
  .code-block code {
    font-size: 11.5px;
  }

  /* Form */
  .form-shell {
    padding: 24px 18px;
    border-radius: var(--r-lg);
  }
  .form-shell h3 {
    font-size: 1.25rem;
  }
  .form-shell > p {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .field-group {
    margin-bottom: 12px;
  }
  .field-group label {
    font-size: 12.5px;
    margin-bottom: 6px;
  }
  .field,
  input[type="text"], input[type="email"], input[type="password"],
  input[type="search"], input[type="tel"], input[type="url"], input[type="number"],
  input[type="date"], input[type="time"], input[type="month"], input[type="week"],
  input[type="datetime-local"], select, textarea {
    padding: 12px 14px;
    font-size: 16px;
    min-height: 44px;
  }
  input[type="color"] {
    width: 48px;
    height: 44px;
  }
  input[type="file"] {
    padding: 12px;
    font-size: 13px;
  }
  input[type="file"]::file-selector-button {
    padding: 8px 12px;
  }
  input[type="range"] {
    height: 24px;
  }
  input[type="checkbox"], input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }
  .check-row, .radio-row {
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13.5px;
    min-height: 44px;
  }
  .field-hint {
    font-size: 11.5px;
  }
  .field-inline {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    min-height: 44px;
  }
  .form-submit {
    padding: 14px;
    font-size: 15px;
    min-height: 48px;
  }

  /* Mistake cards */
  .mistake-card {
    padding: 10px;
    gap: 10px;
  }
  .mistake-label {
    padding: 6px 12px;
    font-size: 11px;
  }
  .mistake-row pre {
    padding: 10px 12px;
  }
  .mistake-row code {
    font-size: 11.5px;
  }
  .mistake-body {
    font-size: 12.5px;
  }

  /* Cheat sheet table */
  .table-wrap {
    border-radius: var(--r-md);
  }
  table.cheat {
    min-width: unset;
  }
  table.cheat thead th {
    padding: 10px 12px;
    font-size: 10px;
  }
  table.cheat tbody td {
    padding: 10px 12px;
    font-size: 12px;
  }
  table.cheat td.type code {
    font-size: 11px;
    padding: 2px 6px;
  }
  table.cheat td.example code {
    font-size: 10.5px;
  }
  .support {
    font-size: 11px;
  }

  /* Practice cards */
  .practice-card {
    padding: 18px;
  }
  .practice-card .input-icon {
    margin-bottom: 12px;
  }
  .practice-card h3 {
    font-size: 15px;
  }
  .practice-card p {
    font-size: 12.5px;
  }

  /* Next cards */
  .next-card {
    padding: 16px;
    gap: 12px;
  }
  .next-card-left {
    gap: 10px;
  }
  .next-index {
    font-size: 12px;
    width: 20px;
  }
  .next-card h3 {
    font-size: 14px;
  }
  .next-card p {
    font-size: 12px;
  }
  .next-card svg {
    width: 14px;
    height: 14px;
  }

  /* Footer */
  footer {
    padding: 40px 0 32px;
  }
  .footer-top {
    margin-bottom: 28px;
  }
  .footer-top p {
    font-size: 12.5px;
    max-width: 100%;
  }
  .footer-links {
    gap: 24px;
    width: 100%;
  }
  .footer-col h4 {
    font-size: 11px;
  }
  .footer-col a {
    font-size: 12.5px;
  }
  .footer-bottom {
    padding-top: 20px;
    font-size: 11.5px;
  }

  /* Back to top */
  .to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }

  /* Nav */
  .navbar {
    padding: 10px 0;
  }
  .brand {
    font-size: 14px;
  }
  .brand .brand-mark {
    width: 26px;
    height: 26px;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
  }
  .nav-links {
    top: 52px;
    left: 12px;
    right: 12px;
    border-radius: var(--r-md);
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 14px;
    min-height: 44px;
  }
}

/* ---------------------------------------------------------------
   2. SMALL TABLET (481px – 640px)
   --------------------------------------------------------------- */
@media (min-width: 481px) and (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }

  .hero {
    padding: 150px 0 80px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
  .hero-cta {
    margin-bottom: 60px;
  }

  .hero-stage {
    padding: 28px 20px 24px;
  }
  .float-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section {
    padding: 80px 0;
  }
  .section-tight {
    padding: 60px 0;
  }
  .section-head {
    margin-bottom: 44px;
  }

  .form-shell {
    padding: 28px 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .input-card {
    padding: 20px;
  }

  .next-card {
    padding: 18px;
  }

  .mistake-card {
    padding: 18px;
  }

  .practice-card {
    padding: 20px;
  }

  footer {
    padding: 48px 0 36px;
  }
}

/* ---------------------------------------------------------------
   3. TABLET (641px – 860px)
   --------------------------------------------------------------- */
@media (min-width: 641px) and (max-width: 860px) {
  .container {
    padding-inline: 24px;
  }

  .hero {
    padding: 160px 0 90px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 6vw, 3.8rem);
  }
  .hero-cta {
    margin-bottom: 72px;
  }

  .hero-stage {
    padding: 32px 28px 28px;
  }
  .float-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .section {
    padding: 90px 0;
  }
  .section-tight {
    padding: 64px 0;
  }

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

  .form-shell {
    padding: 32px 28px;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .input-card {
    padding: 22px;
  }

  .next-card {
    padding: 20px;
  }

  .mistake-card {
    padding: 14px;
  }

  .practice-card {
    padding: 22px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  footer {
    padding: 52px 0 40px;
  }
}

/* ---------------------------------------------------------------
   4. LARGE TABLET / SMALL LAPTOP (861px – 1024px)
   --------------------------------------------------------------- */
@media (min-width: 861px) and (max-width: 1024px) {
  .container {
    padding-inline: 28px;
  }

  .hero {
    padding: 170px 0 100px;
  }

  .hero-stage {
    padding: 36px 30px 32px;
  }
  .float-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 100px 0;
  }
  .section-tight {
    padding: 72px 0;
  }

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

  .form-shell {
    padding: 36px 32px;
  }

  .input-card {
    padding: 22px;
  }

  .intro-grid {
    gap: 40px;
  }

  footer {
    padding: 56px 0 40px;
  }
}

/* ---------------------------------------------------------------
   5. LAPTOP (1025px – 1280px)
   --------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1280px) {
  .container {
    padding-inline: 28px;
  }

  .hero-stage {
    padding: 38px 32px 34px;
  }
  .float-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 110px 0;
  }

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

  .form-shell {
    padding: 38px 34px;
  }
}

/* ---------------------------------------------------------------
   6. TOUCH DEVICE ENHANCEMENTS
   --------------------------------------------------------------- */
@media (pointer: coarse) {
  .btn, .btn-primary,
  input[type="submit"], input[type="reset"], input[type="button"] {
    min-height: 44px;
  }

  .copy-btn {
    min-height: 36px;
    min-width: 36px;
  }

  .nav-links a {
    min-height: 44px;
  }

  .next-card {
    min-height: 44px;
  }

  .check-row, .radio-row, .field-inline {
    min-height: 44px;
  }

  input[type="checkbox"], input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
  }
}

/* ---------------------------------------------------------------
   7. HORIZONTAL SAFETY (very narrow)
   --------------------------------------------------------------- */
@media (max-width: 360px) {
  .hero-stage {
    padding: 20px 12px 16px;
  }
  .float-chip {
    padding: 10px 12px;
  }
  .fc-icon {
    width: 26px;
    height: 26px;
  }
  .fc-type {
    font-size: 10.5px;
  }
  .fc-value {
    font-size: 11.5px;
  }

  .form-shell {
    padding: 20px 14px;
  }

  .input-card {
    padding: 16px;
  }

  .code-block code {
    font-size: 10.5px;
  }

  table.cheat tbody td {
    padding: 8px 10px;
    font-size: 11px;
  }
  table.cheat thead th {
    padding: 8px 10px;
  }
}

/* ---------------------------------------------------------------
   8. TABLE HORIZONTAL SCROLL ENHANCEMENT
   --------------------------------------------------------------- */
@media (max-width: 860px) {
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  table.cheat {
    min-width: 680px;
  }
}

/* ---------------------------------------------------------------
   9. CODE BLOCK HORIZONTAL SCROLL
   --------------------------------------------------------------- */
@media (max-width: 640px) {
  .code-block pre {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
}

/* ---------------------------------------------------------------
   10. NAVBAR SCROLL LOCK WHEN MENU OPEN
   --------------------------------------------------------------- */
@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
  }
}
