:root {
  --bg: #0a0a0f;
  --bg-elev: #12121a;
  --bg-elev-2: #171722;
  --border: #23232d;
  --border-strong: #2f2f3d;
  --text: #f5f5f7;
  --text-dim: #9a9aa8;
  --neon-cyan: #92eabb;
  --neon-magenta: #f7df77;
  --neon-green: #39ff8c;
  --neon-red: #ff3b5c;
  --shadow-neon: 0 0 24px rgba(146, 234, 187, 0.35), 0 0 48px rgba(247, 223, 119, 0.2);
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(146, 234, 187, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(247, 223, 119, 0.10), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ───── Header ───── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-row:hover { text-decoration: none; }

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(247, 223, 119, 0.4));
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover { color: var(--text); text-decoration: none; }

/* ───── Hero ───── */

.hero {
  padding: 40px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero--compact {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 32px 0 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding: 6px 10px;
  border: 1px solid rgba(146, 234, 187, 0.3);
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.03;
  letter-spacing: -1.8px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero--compact h1 { font-size: 44px; }

.hero p {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero--compact p { margin-left: auto; margin-right: auto; }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero--compact .cta-row { justify-content: center; }

.hero-meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.pos {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(146, 234, 187, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon);
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  color: #0a0a0f;
  border: none;
}

.btn-primary:hover { box-shadow: var(--shadow-neon); }

.app-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.app-store-badge img {
  height: 60px;
  width: auto;
  display: block;
}

.app-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-neon);
}

/* ───── Hero phone mockup ───── */

.hero-mock {
  display: flex;
  justify-content: center;
}

.mock-phone {
  width: 300px;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, #15151f, #0d0d14);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(146, 234, 187, 0.15);
}

.mock-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  padding: 2px 8px 10px;
}

.mock-dots { display: inline-flex; gap: 3px; }
.mock-dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-dim);
  display: inline-block;
}

.mock-hero {
  padding: 16px;
  border-radius: 16px;
  background: #0f0f18;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.mock-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.mock-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 6px 0 4px;
}

.mock-value--pos { color: var(--neon-cyan); }

.mock-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.mock-chart {
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f0f18;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.mock-chart svg { width: 100%; height: 100%; display: block; }

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #0f0f18;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mock-book { font-size: 13px; font-weight: 700; }
.mock-note { font-size: 11px; color: var(--text-dim); }
.mock-amt { font-size: 14px; font-weight: 700; }
.mock-amt--pos { color: var(--neon-cyan); }
.mock-amt--neg { color: var(--neon-red); }

/* ───── Features ───── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 72px 0 24px;
}

.feature {
  background: linear-gradient(180deg, rgba(146, 234, 187, 0.06), rgba(247, 223, 119, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 150ms ease, transform 150ms ease;
}

.feature:hover {
  border-color: rgba(146, 234, 187, 0.4);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--neon-cyan);
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ───── Section headings ───── */

.who, .steps, .faq, .cta-block, .more-posts {
  margin-top: 72px;
}

.who h2, .steps h2, .faq h2, .cta-block h2, .more-posts h2 {
  font-size: 30px;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
}

/* ───── Who it's for ───── */

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.who-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.who-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--neon-magenta);
}

.who-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ───── Steps ───── */

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.step-n {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  color: #0a0a0f;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-list h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.steps-list p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ───── FAQ ───── */

.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: border-color 150ms ease;
}

.faq details[open] { border-color: rgba(146, 234, 187, 0.35); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding-right: 28px;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-dim);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after { content: '−'; }

.faq p {
  color: var(--text-dim);
  margin: 10px 0 0;
}

/* ───── CTA block ───── */

.cta-block {
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(146, 234, 187, 0.14), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
}

.cta-block p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 22px;
}

.cta-block .cta-row { justify-content: center; }

/* ───── Footer ───── */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ───── Doc pages (privacy, terms) ───── */

.doc h1 {
  font-size: 40px;
  letter-spacing: -0.5px;
  margin: 12px 0 4px;
}

.doc .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 22px;
  color: var(--neon-cyan);
}

.doc p, .doc li {
  color: #d6d6de;
  font-size: 16px;
}

.doc ul { padding-left: 22px; }

/* ───── Latest blog on homepage ───── */

.latest-blog {
  margin-top: 48px;
}

.latest-blog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.latest-blog__all {
  color: var(--neon-cyan);
  font-size: 14px;
  font-weight: 600;
}

/* ───── Blog (articles list + article) ───── */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.article-empty {
  color: var(--text-dim);
  font-size: 16px;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.article-card:hover {
  border-color: rgba(146, 234, 187, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.article-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(146, 234, 187, 0.14), rgba(247, 223, 119, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card__emoji {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(146, 234, 187, 0.35));
}

.article-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card__date {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.article-card__desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.article-card__link {
  margin-top: 4px;
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: 600;
}

/* Article detail */

.article.doc {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 16px;
}

.crumbs {
  margin-bottom: 20px;
  font-size: 14px;
}

.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--text); text-decoration: none; }

.article__hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
}

.article__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article__hero-emoji {
  font-size: 80px;
  margin-bottom: 16px;
}

.article__date {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.article__lede {
  font-size: 19px;
  color: var(--text-dim);
  margin: 8px 0 28px;
}

.article__body {
  font-size: 17px;
  line-height: 1.75;
}

.article__body h2 {
  margin: 36px 0 10px;
  font-size: 24px;
  color: var(--neon-cyan);
}

.article__body h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.article__body p { color: #d6d6de; }

.article__body a { color: var(--neon-cyan); }

.article__body blockquote {
  border-left: 3px solid var(--neon-cyan);
  margin: 20px 0;
  padding: 4px 0 4px 16px;
  color: var(--text-dim);
}

.article__body code {
  background: var(--bg-elev-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.article__body pre {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

.article__body img {
  max-width: 100%;
  border-radius: var(--radius);
}

.article__body ul, .article__body ol { padding-left: 22px; }

/* ───── Responsive ───── */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 0 16px;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-meta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
  .who h2, .steps h2, .faq h2, .cta-block h2, .more-posts h2 { font-size: 24px; }
  .doc h1 { font-size: 32px; }
  .cta-block { padding: 32px 18px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
}
