/* ==========================================================================
   SdashAPI — Main Stylesheet v2
   Design language: "answer sheet meets API" — OMR bubbles + JSON.
   Tokens: light paper background, cobalt brand, marker-orange accent.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --ink: #000000;
  --ink-soft: #6b6b6b;
  --ink-faint: #52525b;
  --line: #e5e5e5;
  --brand: #000000;
  --brand-dark: #333333;
  --brand-soft: #f2f2f2;
  --accent: #0066ff;
  --accent-soft: #e5f0ff;
  --correct: #10b981;
  --correct-soft: #ecfdf5;

  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px -8px rgba(0, 0, 0, .05);
  --shadow: 0 16px 40px -16px rgba(0, 0, 0, .1);
  --container: 1180px;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                            */
/* ---------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

code,
pre,
.mono {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 44px;
  }

  .hero {
    padding: 64px 0;
  }

  .section {
    padding: 40px 0;
  }
}
/* Eyebrow / labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 9px;
    padding: 3px 8px;
    white-space: nowrap;
    margin-bottom: 12px;
  }
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center {
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(24px, 4vw, 40px);
}

.section-head p {
  font-size: 17px;
}

@media (max-width: 480px) {
  .section-head.center {
    margin-bottom: 32px;
  }

  .section-head p {
    font-size: 15px;
  }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background: #333333;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(255, 92, 53, .5);
}

.btn-accent:hover {
  background: #e64a26;
  transform: translateY(-2px);
}

.btn-ghost {
  background: #ffffff;
  color: #000000;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: #000000;
  color: #000000;
  background: #f9f9f9;
}

.btn-light {
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 480px) {
  .btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .btn-sm {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ---------------------------------------------------------------------- */
/* Navbar                                                                  */
/* ---------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body.mobile-nav-open .navbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  flex-shrink: 0;
  z-index: 1001;
  transition: color .2s ease;
}

.brand-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

.brand-logo-img:hover {
  transform: rotate(-5deg) scale(1.05);
}

@media (max-width: 768px) {
  .brand-text {
    display: none;
  }
  .brand {
    margin-left: 6vw; /* Push slightly toward the middle on mobile */
  }
  .header-right {
    margin-right: 6vw;
  }
}

.brand small {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width .25s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--ink);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* X.ai Burger Icon */
.nav-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1001;
  position: relative;
  flex-shrink: 0;
  transition: border-color .2s ease;
}

.nav-toggle:hover {
  border-color: #000000;
}

.burger-icon {
  width: 20px;
  height: 20px;
  color: #000000;
  transition: color .2s ease;
}

/* Open state */
.nav-toggle.open .burger-icon {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.nav-toggle.open {
  border-color: var(--brand);
}

/* Mobile */
@media (max-width: 860px) {
  .nav-inner {
    height: 60px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-actions {
    display: flex;
    gap: 8px;
    z-index: 1002;
  }

  /* Backdrop overlay (not needed with fullscreen menu, but kept for logic) */
  .nav-overlay {
    display: none;
  }

  /* Fullscreen Menu panel */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 24px 40px;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    font-size: 35px;
    color: #000000;
    font-weight: 600;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: color .15s ease;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links a:not(.btn):hover {
    background: var(--bg-soft);
    color: var(--brand);
  }

  .nav-links a:not(.btn):last-of-type {
    border-bottom: none;
  }

  /* CTA buttons at bottom of menu */
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
  }

  .mobile-actions .btn {
    background: #000000;
    color: #ffffff;
    border-radius: 999px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
  }
}

@media (min-width: 861px) {
  .mobile-actions {
    display: none;
  }

  .nav-overlay {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  padding: 80px 0 48px;
  background: #ffffff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 60px);
}

.hero h1 .hl {
  color: var(--accent);
}

.squiggly-underline {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta div {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero .lead {
    max-width: none;
  }

  .hero {
    padding: 56px 0 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .hero-meta {
    gap: 16px;
  }
}

/* --- Signature visual: answer sheet -> JSON (animated typing) ---------- */
.demo {
  position: relative;
  display: grid;
  gap: 16px;
}

.demo-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.demo-sheet .sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.mobile-actions .btn {
    background: #000000;
    color: #ffffff;
    border-radius: 999px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
  }

.sheet-head span.tag {
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 6px;
}

.demo-sheet .q-text {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.option.is-answer {
  color: var(--ink);
  font-weight: 600;
}

.option.is-answer .bubble {
  position: relative;
}

.option.is-answer .bubble::after {
  content: '✓';
  opacity: 0;
  transition: opacity .3s ease;
}

.option.is-answer .bubble.lit {
  background: var(--correct);
  border-color: var(--correct);
  color: #fff;
}

.option.is-answer .bubble.lit::after {
  opacity: 1;
}

.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
}

.demo-arrow svg {
  width: 22px;
  height: 22px;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* Animated code terminal */
.demo { position: relative; }
.demo { position: relative; }

/* Chat Showcase (x.ai style) */
.chat-showcase {
  max-width: 800px;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.chat-bubble {
  max-width: 85%;
  padding: 16px 20px;
  border-radius: 20px;
  font-size: 15px;
  color: #666666;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  line-height: 1.5;
  text-align: left;
}

.chat-bubble.left {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.right {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

@media (max-width: 600px) {
  .chat-bubble.left {
    transform: translateX(-15px);
  }
  .chat-bubble.right {
    transform: translateX(15px);
  }
}

.demo-code {
  background: #111111;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: var(--radius-lg);
  padding: 0;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13.5px);
  overflow: hidden;
  position: relative;
  height: 480px;
  /* Fixed height so it doesn't grow */
}

.demo-code .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid #333333;
}

.demo-code .dots {
  display: flex;
  gap: 8px;
  width: 60px;
}

.demo-code .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.r { background: #ff6159; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #28c941; }

.demo-code .code-title {
  color: #888888;
  font-size: 12px;
}

.demo-code .code-status {
  color: #888888;
  font-size: 12px;
  width: 60px;
  text-align: right;
}

#typingOutput {
  margin: 0;
  padding: 24px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  min-height: 160px;
  text-align: left;
}

#typingOutput .k { color: #aaaaaa; }
#typingOutput .s { color: #ffffff; }
#typingOutput .c { color: #777777; }
#typingOutput .num { color: #dddddd; }
#typingOutput .hl { background: #333333; color: #fff; padding: 0 4px; }
#typingOutput .url { color: #888888; }

/* Cursor blink */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #56e3a3;
  vertical-align: text-bottom;
  animation: blink .75s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Stats strip                                                             */
/* ---------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}

.stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--brand);
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .stat {
    padding: 20px 14px;
  }
}

@media (max-width: 400px) {
  .stat {
    padding: 16px 10px;
  }

  .stat .num {
    font-size: 20px;
  }
}

/* ---------------------------------------------------------------------- */
/* Feature cards                                                           */
/* ---------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card:hover {
  border-color: #666666;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: clamp(16px, 2vw, 19px);
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 480px) {
  .card {
    padding: 20px;
  }
}

/* ---------------------------------------------------------------------- */
/* Subjects / exam types                                                   */
/* ---------------------------------------------------------------------- */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all .15s ease;
}

.tag-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.exam-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.exam-type {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.exam-type:hover {
  border-color: #666666;
}

.exam-type .code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
  font-size: 13px;
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 4px 8px;
}

@media (max-width: 760px) {
  .exam-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .exam-types {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------- */
/* How it works                                                            */
/* ---------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0;
}

.step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: clamp(16px, 2vw, 18px);
}

.step p {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------- */
/* Code example section                                                    */
/* ---------------------------------------------------------------------- */
.code-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.code-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.code-tab.active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.code-block {
  background: var(--bg-dark);
  color: #d7defc;
  border-radius: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13.5px);
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .code-cols {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------- */
/* Pricing                                                                 */
/* ---------------------------------------------------------------------- */
.hero-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-center h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 24px;
}
.hero-center .eyebrow {
  margin-bottom: 24px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--brand);
  position: relative;
}

.price-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 700;
  margin: 12px 0;
}

.price-card .price span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  gap: 12px;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.price-card li svg {
  width: 18px;
  height: 18px;
  color: var(--correct);
  flex-shrink: 0;
  margin-top: 1px;
}

.price-card .btn {
  margin-top: auto;
}

@media (max-width: 480px) {
  .price-card {
    padding: 24px;
  }
}

/* ---------------------------------------------------------------------- */
/* CTA banner                                                              */
/* ---------------------------------------------------------------------- */
.cta-banner {
  background: var(--bg-dark);
  border-radius: 0;
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  color: #fff;
  background-image: radial-gradient(500px 240px at 20% 0%, rgba(52, 87, 255, .35), transparent 70%),
    radial-gradient(500px 240px at 80% 100%, rgba(255, 92, 53, .25), transparent 70%);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(22px, 4vw, 36px);
}

.cta-banner p {
  color: #b9bfd9;
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: clamp(14px, 1.8vw, 17px);
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.footer {
  background: var(--bg-dark);
  color: #b9bfd9;
  padding: 64px 0 28px;
}

.footer .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-grid p {
  color: #8b91ad;
  font-size: 14px;
  max-width: 320px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8b91ad;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer a {
  color: #d7defc;
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #6e759a;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer {
    padding: 40px 0 24px;
  }
}

/* ---------------------------------------------------------------------- */
/* Scroll reveal                                                           */
/* ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Floating lively elements                                                */
/* ---------------------------------------------------------------------- */
.float-tag {
  position: absolute;
  background: var(--bg-dark);
  color: #56e3a3;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  animation: floatAround 8s ease-in-out infinite;
}

.float-tag:nth-child(2) {
  animation-delay: -3s;
}

.float-tag:nth-child(3) {
  animation-delay: -5.5s;
}

@keyframes floatAround {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  33% {
    transform: translateY(-8px) rotate(1deg);
  }

  66% {
    transform: translateY(4px) rotate(-1deg);
  }
}

/* ---------------------------------------------------------------------- */
/* Auth / form pages                                                       */
/* ---------------------------------------------------------------------- */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  padding: 48px 16px;
}

.auth-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 440px;
  width: 100%;
}

.auth-card h1 {
  font-size: clamp(22px, 3vw, 26px);
}

.auth-card .sub {
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-body);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field-hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.form-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.alert {
  padding: 13px 16px;
  border-radius: 0;
  font-size: 14px;
  margin-bottom: 18px;
}

.alert-error {
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f6c5c2;
}

.alert-success {
  background: var(--correct-soft);
  color: #146c44;
  border: 1px solid #b9e8d0;
}

.alert-info {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #cfd9ff;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
  }
}

/* ---------------------------------------------------------------------- */
/* Dashboard                                                               */
/* ---------------------------------------------------------------------- */
.dash-shell {
  background: var(--bg-soft);
  min-height: calc(100vh - 64px);
  padding: 40px 0 80px;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 860px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
}

.dash-card.step {
  background: var(--bg-soft);
  border: 1px solid #333333;
  border-radius: 0;
  padding: 24px;
}

.dash-card h3 {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.dash-card .big {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.token-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-dark);
  color: #d7defc;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.token-box code {
  color: #8da3ff;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-top: 10px;
}

.progress>span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}

/* ---------------------------------------------------------------------- */
/* Misc utilities                                                          */
/* ---------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.badge-green {
  background: var(--correct-soft);
  color: #146c44;
}

.badge-orange {
  background: var(--accent-soft);
  color: #b8401d;
}

.badge-blue {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ---------------------------------------------------------------------- */
/* Lively glow pulse on hero                                               */
/* ---------------------------------------------------------------------- */
@keyframes glow-brand {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 87, 255, 0);
  }

  50% {
    box-shadow: 0 0 32px 8px rgba(52, 87, 255, .12);
  }
}

.btn-primary {
  animation: glow-brand 3s ease infinite;
}

.btn-primary:hover {
  animation: none;
}

/* ---------------------------------------------------------------------- */
/* Infinite Marquee                                                        */
/* ---------------------------------------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  display: flex;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-left: 80px;
  animation: scroll-left 25s linear infinite;
  min-width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #666666;
  font-size: 20px;
}

.marquee-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease;
  border-radius: 8px;
}
@media (max-width: 860px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
}

.dash-card.step {
  background: var(--bg-soft);
  border: 1px solid #333333;
  border-radius: 0;
  padding: 24px;
}

.dash-card h3 {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.dash-card .big {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.token-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-dark);
  color: #d7defc;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.token-box code {
  color: #8da3ff;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-top: 10px;
}

.progress>span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}

/* ---------------------------------------------------------------------- */
/* Misc utilities                                                          */
/* ---------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.badge-green {
  background: var(--correct-soft);
  color: #146c44;
}

.badge-orange {
  background: var(--accent-soft);
  color: #b8401d;
}

.badge-blue {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ---------------------------------------------------------------------- */
/* Lively glow pulse on hero                                               */
/* ---------------------------------------------------------------------- */
@keyframes glow-brand {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 87, 255, 0);
  }

  50% {
    box-shadow: 0 0 32px 8px rgba(52, 87, 255, .12);
  }
}

.btn-primary {
  animation: glow-brand 3s ease infinite;
}

.btn-primary:hover {
  animation: none;
}

/* ---------------------------------------------------------------------- */
/* Infinite Marquee                                                        */
/* ---------------------------------------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  display: flex;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

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

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-left: 80px;
  animation: scroll-left 25s linear infinite;
  min-width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #666666;
  font-size: 20px;
}

.marquee-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease;
  border-radius: 8px;
}

.marquee-item:hover img {
  filter: grayscale(0%) opacity(1);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 40px)); }
}

/* ---------------------------------------------------------------------- */
/* Code Examples                                                           */
/* ---------------------------------------------------------------------- */
.code-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .code-cols {
    grid-template-columns: 1fr;
  }
}

.code-tabs {
  display: flex;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 8px 16px 0;
}

.code-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: #888888;
  border-bottom: 2px solid transparent;
}

.code-tab.active {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.code-block {
  background: #111111;
  border: 1px solid #333333;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 24px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: #e5e5e5;
}

.code-block .c { color: #8b949e; }
.code-block .k { color: #ff7b72; }
.code-block .s { color: #a5d6ff; }
.code-block .num { color: #79c0ff; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.footer {
  background: #000000;
  color: #ffffff;
  padding: 64px 0 32px;
  border-top: 1px solid #333333;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer .brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #888888;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer p {
  color: #a1a1a1;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888888;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

/* ---------------------------------------------------------------------- */
/* Auth Pages                                                              */
/* ---------------------------------------------------------------------- */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px); /* Account for header/footer */
  padding: 64px 20px;
  background: radial-gradient(circle at 15% 50%, var(--accent-soft), transparent 25%),
              radial-gradient(circle at 85% 30%, var(--correct-soft), transparent 25%);
  position: relative;
  overflow: hidden;
}

.auth-wrap::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1zm0 0a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1z' fill='%23000000' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  animation: moveBG 60s linear infinite;
  z-index: 0;
}

@keyframes moveBG {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, -50%); }
}

.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  max-width: 440px;
  animation: authSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-size: 15px;
}

.auth-decor {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-decor-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}
.auth-card:hover .auth-decor-icon {
  transform: rotate(0deg) scale(1.05);
}

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}
.field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.2s ease;
  background: #ffffff;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.form-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.form-foot a {
  color: var(--accent);
  font-weight: 600;
}
.form-foot a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* Code Blocks                                                             */
/* ---------------------------------------------------------------------- */
.code-block {
  background: #111111;
  color: #f8f8f2;
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 11.5px; /* Reduced for better display */
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative; /* For copy button */
}

.code-block pre {
  margin: 0;
  font-family: inherit;
  padding-right: 60px; /* Space for the copy button */
}

/* Copy Button */
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #aaaaaa;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.copy-btn.copied {
  color: #50fa7b; /* var(--correct) color equivalent */
  border-color: #50fa7b;
}

/* Syntax highlighting */
.code-block .c { color: #50fa7b; } /* Command */
.code-block .s { color: #f1fa8c; } /* String */
.code-block .k { color: #ff79c6; } /* Key */
.code-block .num { color: #bd93f9; } /* Number */
.code-block .hl { background: rgba(255, 255, 255, 0.2); padding: 0 4px; border-radius: 2px; }

/* Code Tabs & Columns */
.code-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .code-cols {
    grid-template-columns: 1fr;
  }
}

.code-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.code-tab {
  background: #222222;
  color: #888888;
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -1px; /* Blend into code block */
}

.code-tab.active {
  background: #111111;
  color: #ffffff;
}
