/* ============================================================
   Notepad++ Download — Stylesheet
   Theme: dark code-editor (IDE) aesthetic
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #0d1117;
  --bg-2:        #10151d;
  --surface:     #161d27;
  --surface-2:   #1b2430;
  --surface-3:   #212c3a;
  --border:      #283341;
  --border-soft: #1f2733;

  /* Text */
  --text:        #e6edf3;
  --text-muted:  #9aa7b5;
  --text-dim:    #6b7886;

  /* Brand — chameleon green */
  --brand:        #8fd24f;
  --brand-strong: #6fb838;
  --brand-deep:   #4f8a26;
  --brand-glow:   rgba(143, 210, 79, 0.30);
  --brand-faint:  rgba(143, 210, 79, 0.10);

  /* Syntax palette (mock editor) */
  --syn-key: #c792ea;
  --syn-str: #a5e075;
  --syn-com: #5c6b7a;
  --syn-num: #f78c6c;
  --syn-fn:  #82aaff;
  --syn-tag: #f07178;
  --syn-var: #ffcb6b;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  /* Scale & spacing */
  --maxw: 1180px;
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow:    0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 8px 26px -12px rgba(0, 0, 0, 0.6);

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

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* Ambient gradient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(143, 210, 79, 0.10), transparent 60%),
    radial-gradient(760px 480px at 5% 4%, rgba(130, 170, 255, 0.07), transparent 55%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: #aee072; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: #fff;
}

p { margin: 0 0 1.1em; color: var(--text-muted); }

ul { color: var(--text-muted); }

::selection { background: var(--brand-glow); color: #fff; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand);
  color: #0a0f15;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

/* -------------------- Layout -------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
  opacity: .7;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
  letter-spacing: -.01em;
}
.brand:hover { color: #fff; }
.brand .mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand b { color: var(--brand); }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .94rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 9px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--surface-2);
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* -------------------- Buttons -------------------- */
.btn {
  --pad-y: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .96rem;
  padding: var(--pad-y) 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #0a1207;
  box-shadow: 0 10px 26px -10px var(--brand-glow);
}
.btn-primary:hover {
  color: #0a1207;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px var(--brand-glow);
}
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { color: #fff; border-color: #3a4756; transform: translateY(-2px); }
.btn-lg { --pad-y: 16px; font-size: 1.04rem; padding-inline: 28px; }
.btn-block { width: 100%; }

/* -------------------- Hero -------------------- */
.hero { padding: 70px 0 88px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.55rem);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--brand); }
.hero .lede {
  font-size: 1.14rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.version-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-faint);
}
.version-badge b { color: var(--text); font-weight: 600; }

.hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--text-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }

/* -------------------- Mock editor (signature) -------------------- */
.editor {
  background: #0b1016;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--font-mono);
  position: relative;
}
.editor::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  pointer-events: none;
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #11161e;
  border-bottom: 1px solid var(--border-soft);
}
.editor-bar .dots { display: flex; gap: 7px; margin-right: 6px; }
.editor-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.editor-bar .dots i:nth-child(1) { background: #ff5f57; }
.editor-bar .dots i:nth-child(2) { background: #febc2e; }
.editor-bar .dots i:nth-child(3) { background: #28c840; }
.editor-bar .title {
  font-size: .76rem;
  color: var(--text-dim);
  margin-left: 4px;
}
.editor-tabs {
  display: flex;
  background: #0d1219;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.editor-tabs .tab {
  font-size: .76rem;
  color: var(--text-dim);
  padding: 9px 16px;
  border-right: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.editor-tabs .tab.active {
  color: var(--text);
  background: #0b1016;
  border-top: 2px solid var(--brand);
  padding-top: 7px;
}
.editor-tabs .tab .lang { width: 8px; height: 8px; border-radius: 2px; background: var(--syn-fn); }
.editor-tabs .tab.active .lang { background: var(--brand); }

.code {
  display: flex;
  font-size: .82rem;
  line-height: 1.85;
  padding: 14px 0 22px;
  overflow-x: auto;
}
.code .gutter {
  flex: 0 0 auto;
  text-align: right;
  color: #3a4655;
  padding: 0 14px 0 18px;
  user-select: none;
  border-right: 1px solid var(--border-soft);
}
.code .lines { padding: 0 22px; white-space: pre; }
.code .lines .ln { display: block; }
.code .lines .ln.cur { background: rgba(143,210,79,.06); margin: 0 -22px; padding: 0 22px; }

.tk-key { color: var(--syn-key); }
.tk-str { color: var(--syn-str); }
.tk-com { color: var(--syn-com); font-style: italic; }
.tk-num { color: var(--syn-num); }
.tk-fn  { color: var(--syn-fn); }
.tk-tag { color: var(--syn-tag); }
.tk-var { color: var(--syn-var); }
.tk-pun { color: #8b98a8; }

.editor-status {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: #0a1207;
  background: var(--brand-strong);
  padding: 5px 16px;
}
.editor-status .left { display: flex; gap: 18px; }
.editor-status span { opacity: .92; }

/* caret blink */
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--brand);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* -------------------- Stat bar -------------------- */
.stats {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
}
.stat {
  background: var(--bg-2);
  padding: 30px 26px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}
.stat .num b { color: var(--brand); }
.stat .lbl {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* -------------------- Feature cards -------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #33404f;
  background: var(--surface-2);
}
.card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-faint);
  border: 1px solid rgba(143,210,79,.22);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .ico svg { width: 23px; height: 23px; color: var(--brand); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { font-size: .95rem; margin-bottom: 0; }

/* -------------------- Download table -------------------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.dl-card.featured {
  border-color: rgba(143,210,79,.45);
  box-shadow: 0 0 0 1px rgba(143,210,79,.12), var(--shadow-sm);
  position: relative;
}
.dl-card.featured::before {
  content: "Recommended";
  position: absolute;
  top: -11px; left: 28px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--brand);
  color: #0a1207;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}
.dl-card h3 { font-size: 1.22rem; margin-bottom: 4px; }
.dl-card .arch {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.dl-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: .92rem;
}
.dl-card ul li { display: flex; gap: 9px; align-items: flex-start; }
.dl-card ul li svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.dl-card .btn { margin-top: auto; }
.dl-note {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
}

/* -------------------- Steps -------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step .n {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand);
  border: 1px solid rgba(143,210,79,.3);
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 7px; }
.step p { font-size: .9rem; margin-bottom: 0; }

/* -------------------- FAQ -------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 19px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--brand);
  transition: transform .2s var(--ease);
  flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 22px 20px; }
.faq-item .answer p { margin: 0; font-size: .96rem; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background:
    linear-gradient(180deg, rgba(143,210,79,.06), rgba(143,210,79,.02)),
    var(--surface);
  border: 1px solid rgba(143,210,79,.22);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta-band p { max-width: 52ch; margin-inline: auto; margin-bottom: 26px; }
.cta-band .hero-cta { justify-content: center; }

/* -------------------- Prose (about / generic) -------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 7px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .lead { font-size: 1.16rem; color: var(--text); }

/* -------------------- Breadcrumb -------------------- */
.crumb {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  padding: 22px 0 0;
}
.crumb ol { list-style: none; display: flex; gap: 9px; padding: 0; margin: 0; flex-wrap: wrap; }
.crumb li::after { content: "/"; margin-left: 9px; color: #3a4655; }
.crumb li:last-child::after { content: ""; }
.crumb a { color: var(--text-muted); }

/* -------------------- Page hero (subpages) -------------------- */
.page-hero { padding: 40px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.12rem; max-width: 60ch; }

/* -------------------- Footer -------------------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding: 56px 0 32px;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: .92rem; max-width: 38ch; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--text-dim);
}
.disclaimer {
  font-size: .82rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.disclaimer b { color: var(--text-muted); }

/* -------------------- 404 -------------------- */
.err {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.err .code {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 16vw, 9rem);
  color: var(--brand);
  line-height: 1;
  padding: 0;
  justify-content: center;
}
.err h1 { font-size: 1.8rem; margin-top: 10px; }

/* -------------------- Reveal animation -------------------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px;
    gap: 4px;
  }
  .nav-links.open a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, html.js .reveal { opacity: 1 !important; transform: none !important; }
}
