:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #2ea043;
  --accent-hover: #3fb950;
  --accent2: #1f6feb;
  --accent2-hover: #388bfd;
  --warn: #d29922;
  --danger: #da3633;
  --radius: 8px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent2-hover); text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg3);
  text-decoration: none;
}

.nav-badge {
  font-size: 0.7rem;
  background: var(--warn);
  color: #000;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 700;
}

/* ── HERO ── */
.hero {
  padding: 90px 24px 70px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(31,111,235,0.18) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero h1 span { color: var(--accent); }

.hero p {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.13rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg3); border-color: var(--text-muted); color: var(--text); text-decoration: none; }

.btn-blue {
  background: var(--accent2);
  color: #fff;
  border-color: var(--accent2);
}
.btn-blue:hover { background: var(--accent2-hover); border-color: var(--accent2-hover); color: #fff; text-decoration: none; }

/* ── SECTIONS ── */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

section + section { border-top: 1px solid var(--border); }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 44px;
  font-size: 1.05rem;
}

/* ── CARDS GRID ── */
.cards {
  display: grid;
  gap: 18px;
}

.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--accent2); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── SCREENSHOT ── */
.screenshot-block {
  display: grid;
  gap: 24px;
  align-items: center;
}

.screenshot-block.reverse { direction: rtl; }
.screenshot-block.reverse > * { direction: ltr; }

@media (min-width: 720px) {
  .screenshot-block { grid-template-columns: 1fr 1fr; }
}

.screenshot-block img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.screenshot-block .text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.screenshot-block .text p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 14px;
}

/* ── FEATURE LIST ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background: var(--bg3);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: #79c0ff;
}

pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-size: 0.87rem;
  line-height: 1.7;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* ── CALLOUT ── */
.callout {
  border-radius: var(--radius);
  border: 1px solid;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.93rem;
}

.callout-info { border-color: var(--accent2); background: rgba(31,111,235,0.08); }
.callout-warn { border-color: var(--warn); background: rgba(210,153,34,0.08); }
.callout-success { border-color: var(--accent); background: rgba(46,160,67,0.08); }

.callout strong { display: block; margin-bottom: 4px; }

/* ── STATS BAR ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}

.stat {
  background: var(--bg2);
  padding: 24px;
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ── PILL TAGS ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg3);
}

/* ── DOWNLOAD SOON ── */
.soon-hero {
  text-align: center;
  padding: 120px 24px 80px;
}

.soon-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.soon-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.soon-hero p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.soon-badge {
  display: inline-block;
  background: var(--warn);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 60% at 50% -5%, rgba(31,111,235,0.12) 0%, transparent 70%);
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
}

/* ── ACCORDION ── */
.accordion { display: flex; flex-direction: column; gap: 1px; }

details {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "›";
  font-size: 1.2rem;
  transition: transform 0.2s;
  color: var(--text-muted);
}

details[open] summary::after { transform: rotate(90deg); }

.details-body {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.87rem;
}

footer strong { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 0.85rem; }
  section { padding: 44px 16px; }
}
