/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --bg:          #0a0c0f;
  --bg-2:        #0f1218;
  --bg-card:     #13171f;
  --bg-card-h:   #181d27;
  --border:      #1e2533;
  --border-h:    #2a3347;
  --accent:      #00e5a0;
  --accent-dim:  #00b37d;
  --accent-glow: rgba(0, 229, 160, 0.12);
  --red:         #ff5f57;
  --yellow:      #febc2e;
  --green:       #28c840;
  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --mono:        'JetBrains Mono', monospace;
  --sans:        'Syne', sans-serif;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

strong { color: #fff; font-weight: 700; }
em { font-style: italic; color: var(--text-dim); }

code {
  font-family: var(--mono);
  font-size: .82em;
  background: rgba(0,229,160,.08);
  color: var(--accent);
  border: 1px solid rgba(0,229,160,.18);
  border-radius: 4px;
  padding: .15em .45em;
}

kbd {
  font-family: var(--mono);
  font-size: .78em;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-bottom: 2px solid var(--border-h);
  border-radius: 5px;
  padding: .2em .5em;
  color: var(--text-dim);
  white-space: nowrap;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.accent { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,229,160,.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  background: rgba(0,229,160,.08);
  border: 1px solid rgba(0,229,160,.25);
  border-radius: 100px;
  padding: .3em 1em;
  margin-bottom: 2rem;
}

.dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .05em;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0c0f;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .85em 2.2em;
  border-radius: 100px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(0,229,160,.25);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,229,160,.4);
  opacity: 1;
}

/* ============================================================
   STICKY NAV
   ============================================================ */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,15,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.sticky-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  overflow-x: auto;
}

.sticky-nav ul li a {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  transition: color .2s;
}

.sticky-nav ul li a:hover { color: var(--accent); opacity: 1; }

/* ============================================================
   MAIN SECTIONS
   ============================================================ */
main.container { padding-top: 4rem; padding-bottom: 6rem; }

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.sub-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--mono);
  font-size: .78rem;
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, background .2s, transform .2s;
}

.card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: .75rem;
}

.card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.card p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(0,229,160,.05);
  border: 1px solid rgba(0,229,160,.18);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.info-box.tip {
  background: rgba(254,188,46,.04);
  border-color: rgba(254,188,46,.2);
}

.info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.info-box p {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.check-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.2rem;
  align-items: start;
}

.check-num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
  background: rgba(0,229,160,.08);
  border: 1px solid rgba(0,229,160,.2);
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .2rem;
}

.check-item strong {
  display: block;
  margin-bottom: .3rem;
  font-size: .95rem;
}

.check-item p {
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: .75rem;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 2.5rem;
  bottom: 2rem;
  width: 1px;
  background: var(--border);
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.4rem;
  padding: 1.5rem 0;
  align-items: start;
}

.step-num {
  width: 2rem;
  height: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}

.step-content > p {
  font-size: .88rem;
  color: var(--text-dim);
  margin-bottom: .75rem;
  line-height: 1.7;
}

/* ============================================================
   TERMINAL
   ============================================================ */
.terminal {
  background: #080b10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: .75rem;
  font-family: var(--mono);
  font-size: .82rem;
}

.term-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: .5rem 1rem;
  font-size: .7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.term-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-h);
}

.term-bar span:nth-child(1) { background: var(--red); }
.term-bar span:nth-child(2) { background: var(--yellow); }
.term-bar span:nth-child(3) { background: var(--green); }

.terminal pre {
  padding: 1.1rem 1.4rem;
  line-height: 1.9;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt { color: var(--accent); user-select: none; }
.output { color: #94a3b8; }
.output-green { color: var(--green); }
.output-dim { color: var(--text-muted); }

/* ============================================================
   VS CODE MOCK
   ============================================================ */
.vscode-mock {
  background: #080b10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: .75rem;
}

.vscode-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: .5rem 1rem;
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.vscode-dots { display: flex; gap: .4rem; }
.vscode-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-h); }
.vscode-dots span:nth-child(1) { background: var(--red); }
.vscode-dots span:nth-child(2) { background: var(--yellow); }
.vscode-dots span:nth-child(3) { background: var(--green); }

.vscode-body { padding: 1rem 1.2rem; }

.search-mock {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: 6px;
  padding: .5rem 1rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.ext-result {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card-h);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  padding: .9rem 1rem;
}

.ext-icon {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .1rem;
}

.ext-info { flex: 1; min-width: 0; }
.ext-info strong { display: block; color: #fff; font-size: .9rem; }
.ext-publisher {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
  display: block;
}
.ext-info p { font-size: .8rem; color: var(--text-dim); }

.install-btn {
  background: var(--accent);
  color: #0a0c0f;
  border: none;
  border-radius: 6px;
  padding: .4em 1em;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}

/* ============================================================
   DIFF MOCK
   ============================================================ */
.diff-mock {
  background: #080b10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: .75rem;
}

.diff-body { padding: .2rem 0; font-family: var(--mono); font-size: .8rem; }

.diff-line {
  padding: .25rem 1.2rem;
  line-height: 1.7;
  white-space: pre;
}

.diff-line.removed {
  background: rgba(255,95,87,.08);
  color: #ff8580;
  border-left: 3px solid rgba(255,95,87,.4);
}

.diff-line.added {
  background: rgba(40,200,64,.07);
  color: #6ee78a;
  border-left: 3px solid rgba(40,200,64,.35);
}

.diff-actions {
  display: flex;
  gap: .75rem;
  padding: .8rem 1.2rem;
  border-top: 1px solid var(--border);
}

.diff-accept {
  background: rgba(40,200,64,.12);
  color: var(--green);
  border: 1px solid rgba(40,200,64,.3);
  border-radius: 6px;
  padding: .35em .9em;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.diff-accept:hover { background: rgba(40,200,64,.2); }

.diff-reject {
  background: rgba(255,95,87,.08);
  color: var(--red);
  border: 1px solid rgba(255,95,87,.25);
  border-radius: 6px;
  padding: .35em .9em;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.diff-reject:hover { background: rgba(255,95,87,.16); }

/* ============================================================
   TASKS GRID
   ============================================================ */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: border-color .2s, background .2s;
}

.task-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
}

.task-tag {
  font-family: var(--mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  background: rgba(0,229,160,.08);
  border: 1px solid rgba(0,229,160,.18);
  border-radius: 100px;
  padding: .2em .7em;
  display: inline-block;
  margin-bottom: .6rem;
}

.task-card p {
  font-size: .83rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   SHORTCUTS GRID
   ============================================================ */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .75rem;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
}

.keys {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}

.shortcut span {
  font-size: .82rem;
  color: var(--text-dim);
}

/* ============================================================
   TIPS LIST
   ============================================================ */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.tip-item {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.tip-num {
  color: var(--accent);
  font-size: .9rem;
  margin-top: .1rem;
}

.tip-item strong {
  display: block;
  margin-bottom: .25rem;
  font-size: .95rem;
}

.tip-item p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   RESOURCES
   ============================================================ */
.resources { border-bottom: none; }

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: border-color .2s, background .2s, transform .2s;
  color: var(--text);
}

.resource-card:hover {
  border-color: rgba(0,229,160,.3);
  background: var(--bg-card-h);
  transform: translateY(-2px);
  opacity: 1;
}

.res-icon {
  font-size: 1.4rem;
  margin-bottom: .25rem;
}

.resource-card strong {
  font-size: .9rem;
  color: #fff;
}

.resource-card span {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer span:last-child {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero-title { font-size: 2.4rem; }
  .sticky-nav ul { display: none; }
  .steps::before { display: none; }
  .step { grid-template-columns: 1fr; }
  .step-num { display: none; }
  .check-item { grid-template-columns: 1fr; }
  .check-num { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
