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

:root {
  /* Colors */
  --bg-0:        #090b10;
  --bg-1:        #0d1018;
  --bg-2:        #121620;
  --bg-3:        #1a1f2e;
  --bg-4:        #232937;
  --border:      #252b3b;
  --border-2:    #2e3650;

  --text-0:      #e8ecf4;
  --text-1:      #a8b3c8;
  --text-2:      #6b7795;
  --text-3:      #3f4a62;

  --cyan:        #3de8c2;
  --cyan-dim:    #1a6e5c;
  --cyan-glow:   rgba(61, 232, 194, 0.18);
  --amber:       #f5a623;
  --amber-dim:   rgba(245, 166, 35, 0.15);
  --red:         #f05454;
  --green:       #4af084;

  /* Typography */
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --font-body:   'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-gap: 120px;
  --container:   1140px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── UTILITIES ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-0);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-1);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--cyan);
  color: #07110e;
}
.btn--primary:hover {
  background: #5ef5d0;
  box-shadow: 0 0 32px rgba(61, 232, 194, 0.42), 0 4px 16px rgba(61, 232, 194, 0.22);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-2);
  text-decoration: none;
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(61, 232, 194, 0.06);
}

.btn--large {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ─── OS TOGGLE ─────────────────────────────────────────────────────────── */
.os-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px;
  gap: 1px;
}

.os-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.os-toggle__btn:hover:not(.active) {
  color: var(--text-1);
  background: var(--bg-3);
}

.os-toggle__btn.active {
  background: rgba(61, 232, 194, 0.12);
  color: var(--cyan);
}

.hero__download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* ─── NAV ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--cyan); }
.nav__logo-icon { color: var(--cyan); font-size: 0.7em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav__link:hover { color: var(--text-0); }

.nav__link--github {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-1);
  border: 1px solid var(--border-2);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  transition: all 0.2s;
}
.nav__link--github:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(61, 232, 194, 0.06);
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 120px 24px 80px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

/* Grid background */
.hero__bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(61, 232, 194, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 232, 194, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
}

/* Scanlines overlay */
.hero__scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-0);
  margin-bottom: 24px;
}

.hero__title-line1 {
  display: block;
  color: var(--text-1);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero__title-line2 { display: block; }

.hero__typewriter {
  color: var(--cyan);
  display: inline;
}

.hero__cursor {
  color: var(--cyan);
  display: inline-block;
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.hero__meta-item { display: flex; align-items: center; gap: 6px; }
.hero__meta-sep { color: var(--text-3); }
.hero__meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.hero__meta-dot--green { background: var(--green); }

/* App Window */
.hero__window-wrap {
  position: relative;
  animation: fadeUp 0.8s 0.15s var(--ease) both;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__window {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(61,232,194,0.06);
  background: #0d1018;
}

.hero__window--main {
  width: 100%;
  z-index: 1;
}

.hero__window--sticky {
  position: absolute;
  width: 190px;
  right: -20px;
  bottom: -40px;
  z-index: 2;
  transform: rotate(3deg) translateY(0);
  animation: floatingSticky 6s ease-in-out infinite;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 40px rgba(61,232,194,0.1);
  transition: width 0.3s var(--ease), right 0.3s var(--ease), bottom 0.3s var(--ease);
}

@keyframes floatingSticky {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-15px); }
}

.hero__window-chrome {
  background: #111620;
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero__window-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  letter-spacing: 0.1em;
}
.hero__window-controls {
  display: flex;
  gap: 7px;
}
.hero__window-controls span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border-2);
}
.hero__window-ctrl--close { background: #f05454 !important; opacity: 0.5; }

.hero__window-body { background: #0d1018; }

.hero__window--sticky .hero__window-body {
  overflow: hidden;
  transition: height 0.5s var(--ease);
}

.hero__screenshot {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.6s ease;
}
.hero__screenshot.fading { opacity: 0; }

.hero__window-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(61,232,194,0.22) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(12px);
}

/* ─── FEATURES ──────────────────────────────────────────────────────────── */
.features {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

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

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  cursor: default;
}
.feature-card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(61,232,194,0.1), inset 0 1px 0 rgba(61,232,194,0.06);
}

.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--cyan);
  transition: background 0.2s, border-color 0.2s;
}
.feature-card:hover .feature-card__icon {
  background: var(--cyan-glow);
  border-color: var(--cyan-dim);
}

.feature-card__title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--text-1);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-card__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  line-height: 1.8;
}
.code-done { color: var(--text-3); text-decoration: line-through; }
.tab-active {
  background: rgba(245,166,35,0.2);
  border: 1px solid var(--amber);
  border-radius: 4px;
  padding: 1px 8px;
  color: var(--amber);
}

/* ─── PREVIEW ───────────────────────────────────────────────────────────── */
.preview {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.preview__wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.preview__window {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 48px 100px rgba(0,0,0,0.7);
}

.preview__chrome {
  background: #101520;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.preview__chrome-left { display: flex; gap: 8px; }
.preview__chrome-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
}
.preview__chrome-right { width: 56px; }
.preview__chrome-btn {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.preview__chrome-btn--r { background: #f05454; opacity: 0.7; }
.preview__chrome-btn--y { background: var(--amber); opacity: 0.7; }
.preview__chrome-btn--g { background: var(--green); opacity: 0.7; }

.preview__body { background: #090c14; }
.preview__img { width: 100%; height: auto; display: block; }

.preview__glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(61,232,194,0.14) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* Callouts */
.callout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  background: rgba(9,11,16,0.88);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
.callout::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--cyan-dim);
  transform: translateY(-50%);
}
.callout--left { right: calc(100% + 20px); }
.callout--left::after { left: 100%; }
.callout--right { left: calc(100% + 20px); }
.callout--right::after { right: 100%; }

.callout--1 { top: 16%; }
.callout--2 { top: 36%; }
.callout--3 { top: 60%; }

/* ─── THEME PICKER ──────────────────────────────────────────────────────── */
.theme-picker {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  background: transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  letter-spacing: 0.04em;
}
.theme-btn:hover { color: var(--text-0); border-color: var(--text-2); }
.theme-btn.active {
  color: var(--text-0);
  border-color: var(--text-1);
  background: var(--bg-3);
}

.theme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.theme-dot--carbon   { background: #7c8491; }
.theme-dot--midnight { background: #4a7cc4; }
.theme-dot--tokio    { background: #7aa2f7; }
.theme-dot--artic    { background: #68c8d4; }

/* ─── COMPARE ───────────────────────────────────────────────────────────── */
.compare {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.compare__table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.83rem;
}

.compare__table th {
  background: var(--bg-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare__table th:first-child { text-align: left; }

.compare__table td {
  padding: 13px 20px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.compare__table td:first-child { text-align: left; color: var(--text-0); }
.compare__table tr:last-child td { border-bottom: none; }
.compare__table tr:hover td { background: var(--bg-2); }

.compare__col--highlight {
  background: rgba(61,232,194,0.04) !important;
  color: var(--text-0) !important;
  border-left: 1px solid var(--cyan-dim);
  border-right: 1px solid var(--cyan-dim);
}
.compare__table th.compare__col--highlight {
  color: var(--cyan) !important;
  background: rgba(61,232,194,0.08) !important;
}

.check { color: var(--green); font-size: 1rem; }
.cross { color: var(--text-3); font-size: 1rem; }

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

.download__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(61,232,194,0.05), transparent 70%);
  pointer-events: none;
}

.download__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.download__title {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.download__desc {
  font-size: 1rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 32px;
}
.download__desc strong { color: var(--text-0); font-weight: 600; }

.download__steps {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.download__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-1);
  line-height: 1.5;
}
.download__step code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--cyan);
  background: rgba(61,232,194,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}
.download__step em { color: var(--amber); font-style: normal; }
.download__step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--r-sm);
  padding: 2px 8px;
  white-space: nowrap;
  margin-top: 1px;
  flex-shrink: 0;
}

.download__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.download__compat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Terminal block */
.terminal {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5),
              inset 0 1px 0 rgba(255,255,255,0.03);
}

.terminal__header {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal__dot--r { background: #f05454; opacity: 0.7; }
.terminal__dot--y { background: var(--amber); opacity: 0.7; }
.terminal__dot--g { background: var(--green); opacity: 0.7; }
.terminal__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-left: 4px;
  letter-spacing: 0.06em;
}

.terminal__body {
  padding: 24px 24px 28px;
}
.terminal__line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-1);
}
.terminal__prompt {
  color: var(--cyan);
  margin-right: 10px;
  font-weight: 600;
  user-select: none;
}
.terminal__line--comment { color: var(--text-3); }
.terminal__line--blank { display: block; height: 0.5rem; }
.terminal__line--success { color: var(--green); }

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

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--cyan); }

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.footer__copy a { color: var(--text-2); transition: color 0.2s; }
.footer__copy a:hover { color: var(--cyan); }

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }
.fade-up.delay-5 { transition-delay: 0.40s; }
.fade-up.delay-6 { transition-delay: 0.48s; }

/* ─── KEYFRAMES ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50%       { box-shadow: 0 0 14px var(--green); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .callout { display: none; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --section-gap: 80px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
    text-align: center;
  }
  .hero__content { align-items: center; }
  .hero__subtitle { text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-content: center; flex-wrap: wrap; }
  .hero__window-wrap { order: -1; }
  .hero__window--sticky {
    width: 180px;
    right: -10px;
    bottom: -20px;
  }

  .download__inner { grid-template-columns: 1fr; gap: 40px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }

  .nav__links { gap: 18px; }
  .nav__link:not(.nav__link--github) { display: none; }
}

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

  .compare__table th,
  .compare__table td { padding: 10px 12px; font-size: 0.75rem; }

  .nav__links { gap: 10px; }
  .hero__window--sticky {
    width: 140px;
    right: -5px;
    bottom: -15px;
  }
}

/* ─── FEATURE CARD LINK VARIANT ─────────────────────────────────────── */
.feature-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.feature-card--link:hover {
  border-color: var(--cyan);
}

/* ─── CLI SECTION (marketing) ───────────────────────────────────────── */
.cli-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cli-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(61,232,194,0.06), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 30%, rgba(245,166,35,0.04), transparent 70%);
  pointer-events: none;
}

.cli-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.cli-section__title {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--text-0);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
}

.cli-section__desc {
  font-size: 1rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 520px;
}
.cli-section__desc strong { color: var(--text-0); font-weight: 600; }

.cli-section__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cli-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 4px 11px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.cli-section__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cli-section__install {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cli-section__install-label {
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cli-section__install code {
  color: var(--cyan);
  background: rgba(61,232,194,0.06);
  border: 1px solid var(--border);
  padding: 7px 11px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  overflow-x: auto;
  white-space: nowrap;
  display: block;
}

.cli-section__terminal {
  position: relative;
}
.cli-section__terminal::after {
  content: '';
  position: absolute;
  inset: -40px -40px -40px 20%;
  background: radial-gradient(ellipse, rgba(61,232,194,0.10) 0%, transparent 70%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .cli-section__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .cli-section__install code { white-space: pre-wrap; word-break: break-all; }
}

/* ─── DOCS PAGE ─────────────────────────────────────────────────────── */
.body--docs { background: var(--bg-0); }
.nav__link--active { color: var(--cyan) !important; }

.docs-hero {
  padding: 120px 24px 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.docs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 232, 194, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 232, 194, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 20%, black 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.docs-hero .container { position: relative; z-index: 1; }

.docs-hero__breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.docs-hero__breadcrumb a { color: var(--text-2); transition: color 0.2s; }
.docs-hero__breadcrumb a:hover { color: var(--cyan); }

.docs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.docs-hero__title {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.docs-hero__title-accent { color: var(--cyan); }

.docs-hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-1);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 32px;
}

.docs-hero__tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  width: fit-content;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.docs-tab {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
  background: transparent;
  border: none;
  padding: 7px 16px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color 0.15s, background 0.15s;
}
.docs-tab:hover:not(.active) { color: var(--text-1); background: var(--bg-3); }
.docs-tab.active {
  background: rgba(61, 232, 194, 0.12);
  color: var(--cyan);
}

.docs-tab-panel { display: none; max-width: 780px; }
.docs-tab-panel.active { display: block; }
.docs-hero__tab-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 10px;
  line-height: 1.6;
}
.docs-hero__tab-note code {
  color: var(--cyan);
  background: rgba(61,232,194,0.06);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Docs body grid */
.docs { padding: 56px 0 96px; }
.docs__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

.docs__toc {
  position: sticky;
  top: 84px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 12px;
}
.docs__toc-label {
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.docs__toc ul { display: flex; flex-direction: column; gap: 4px; }
.docs__toc ul ul { margin-top: 4px; margin-left: 14px; padding-left: 10px; border-left: 1px solid var(--border); }
.docs__toc-link {
  display: block;
  color: var(--text-2);
  padding: 4px 0;
  transition: color 0.15s;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
}
.docs__toc-link:hover { color: var(--text-0); }
.docs__toc-link.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
}
.docs__toc-link--sub { font-size: 0.74rem; color: var(--text-3); }
.docs__toc-link--sub.active { color: var(--cyan); }

.docs__body {
  min-width: 0;
  max-width: 780px;
  color: var(--text-1);
  font-size: 0.95rem;
  line-height: 1.75;
}
.docs__body section { margin-bottom: 68px; scroll-margin-top: 80px; }
.docs__body section:last-of-type { margin-bottom: 24px; }

.docs__body h2 {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.docs__body h3 {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}
.docs__body h3 code {
  background: rgba(61,232,194,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.92em;
}
.docs__body p { margin-bottom: 14px; }
.docs__body p code,
.docs__body li code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--cyan);
  background: rgba(61,232,194,0.06);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}
.docs__body strong { color: var(--text-0); font-weight: 600; }
.docs__body a { color: var(--cyan); text-decoration: underline; text-decoration-color: var(--cyan-dim); }
.docs__body a:hover { text-decoration-color: var(--cyan); }
.docs__body a.btn--ghost { text-decoration: none; }
.docs__body a.btn--ghost:hover { text-decoration: none; }

.docs__list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.docs__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-1);
}
.docs__list li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: var(--cyan);
  font-weight: 700;
}

/* Command block */
.docs__cmd {
  margin: 14px 0 20px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.02);
}
.docs__cmd-header {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.docs__copy-btn {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-2);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.docs__copy-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  background: rgba(61,232,194,0.04);
}
.docs__copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
}
.docs__cmd pre {
  padding: 18px 20px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-1);
  background: var(--bg-1);
}
.docs__cmd pre code { color: inherit; background: none; border: none; padding: 0; font-size: inherit; }

/* Docs table */
.docs__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin: 14px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.docs__table th {
  background: var(--bg-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.docs__table td {
  padding: 11px 16px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.docs__table tr:last-child td { border-bottom: none; }
.docs__table tr:hover td { background: var(--bg-2); }
.docs__table td code {
  font-family: var(--font-mono);
  color: var(--cyan);
  background: rgba(61,232,194,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.82em;
}

/* Callout */
.docs__callout {
  border-left: 2px solid var(--cyan);
  background: rgba(61,232,194,0.04);
  padding: 14px 18px;
  margin: 18px 0 24px;
  font-size: 0.9rem;
  color: var(--text-1);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.docs__callout strong { color: var(--cyan); }
.docs__callout code {
  font-family: var(--font-mono);
  color: var(--cyan);
  background: rgba(61,232,194,0.1);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.88em;
}

.docs__footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 32px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .docs__grid { grid-template-columns: 1fr; gap: 32px; }
  .docs__toc {
    position: static;
    max-height: none;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    background: var(--bg-2);
  }
}
@media (max-width: 600px) {
  .docs-hero { padding: 100px 20px 40px; }
  .docs__body h2 { font-size: 1.25rem; }
  .docs__cmd pre { font-size: 0.75rem; padding: 14px 16px; }
  .docs__table { font-size: 0.72rem; }
  .docs__table th, .docs__table td { padding: 9px 10px; }
}
