:root {
  --landing-bg: rgba(12, 16, 27, 0.9);
  --landing-card: rgba(17, 24, 39, 0.74);
  --landing-card-border: rgba(255, 255, 255, 0.09);
  --landing-card-soft: rgba(30, 41, 59, 0.7);
  --landing-text: #F8FAFC;
  --landing-muted: #B4C0D4;
  --landing-accent: #8B5CF6;
  --landing-accent-2: #EC4899;
  --landing-success: #10B981;
  --landing-shadow: 0 24px 60px rgba(15, 23, 42, 0.5);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #0B0F19; /* matches the dark landing page, so overscroll never flashes light */
}

body.landing-page {
  margin: 0;
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  /* The landing page is a dark design (light text), so it must own a dark
     background instead of inheriting the app's light --bg-gradient. */
  background:
    radial-gradient(circle at 12% 8%, rgba(123, 0, 255, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 92% 88%, rgba(236, 72, 153, 0.18) 0%, transparent 45%),
    #0B0F19;
  background-attachment: fixed;
  color: var(--landing-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { text-decoration: none; }

.bg-orb {
  position: fixed;
  filter: blur(100px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: rgba(123, 0, 255, 0.38);
  top: 12%;
  left: 8%;
}

.orb-two {
  width: 300px;
  height: 300px;
  background: rgba(236, 72, 153, 0.2);
  top: 42%;
  right: 7%;
}

.orb-three {
  width: 220px;
  height: 220px;
  background: rgba(14, 165, 233, 0.2);
  bottom: 12%;
  left: 40%;
}

.topbar,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--landing-text);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  box-shadow: 0 0 18px rgba(123, 0, 255, 0.9);
}

.brandname {
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.main-nav a,
.nav-link {
  color: var(--landing-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-link:hover { color: var(--landing-text); }

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  color: white;
  box-shadow: 0 18px 36px rgba(123, 0, 255, 0.35);
}

.primary-btn.small {
  padding: 0.7rem 1.1rem;
  font-size: 0.82rem;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--landing-card-border);
  color: var(--landing-text);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto 0;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-block;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(123, 0, 255, 0.4);
  border-radius: 999px;
  color: #DDD6FE;
  background: rgba(123, 0, 255, 0.10);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 0 0 18px;
  max-width: 680px;
}

.hero-copy p {
  color: var(--landing-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 620px;
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.social-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 34px;
}

.social-proof div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-proof strong {
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  letter-spacing: -0.04em;
}

.social-proof span {
  color: var(--landing-muted);
  font-size: 0.82rem;
}

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

.mockup-window {
  width: min(100%, 510px);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--landing-card-border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--landing-shadow);
  backdrop-filter: blur(16px);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 8px 0 16px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.window-bar span:nth-child(1) { background: #f87171; }
.window-bar span:nth-child(2) { background: #fbbf24; }
.window-bar span:nth-child(3) { background: #4ade80; }

.mockup-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(17, 24, 39, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  padding: 18px;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(120deg, #8B5CF6, #EC4899);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-pill strong,
.user-pill small {
  display: block;
}

.user-pill small {
  color: var(--landing-muted);
  margin-top: 2px;
}

.post-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  padding: 16px;
}

.post-title {
  margin: 0 0 10px;
  font-weight: 700;
}

.post-body {
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 0.42rem 0.6rem;
  border-radius: 999px;
  background: rgba(123, 0, 255, 0.15);
  border: 1px solid rgba(123, 0, 255, 0.2);
  color: #DDD6FE;
  font-size: 0.76rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-stat {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
}

.mini-stat small {
  display: block;
  color: var(--landing-muted);
  margin-bottom: 8px;
}

.mini-stat strong {
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.mini-stat.highlight {
  background: linear-gradient(160deg, rgba(123, 0, 255, 0.18), rgba(236, 72, 153, 0.12));
}

.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 110px auto 0;
}

.section-title {
  margin-bottom: 30px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.step-card,
.panel-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-card-border);
  border-radius: 22px;
  box-shadow: var(--landing-shadow);
}

.feature-card {
  padding: 22px 20px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(123, 0, 255, 0.18), rgba(236, 72, 153, 0.18));
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.feature-card p,
.step-card p,
.spotlight-copy p,
.panel-card {
  color: var(--landing-muted);
  line-height: 1.7;
}

.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.spotlight-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
  color: var(--landing-text);
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--landing-muted);
  line-height: 1.7;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--landing-success);
  font-weight: 800;
}

.spotlight-panel {
  display: flex;
  justify-content: center;
}

.panel-card {
  width: min(100%, 430px);
  padding: 26px 22px;
}

.panel-label {
  margin: 0 0 18px;
  color: #DDD6FE;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.activity-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--landing-success);
  display: inline-block;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}

.pulse.alt {
  background: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  padding: 24px 22px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  background: rgba(123, 0, 255, 0.12);
  border: 1px solid rgba(123, 0, 255, 0.18);
  color: #DDD6FE;
  font-weight: 800;
  margin-bottom: 18px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.cta-band {
  width: min(1180px, calc(100% - 32px));
  margin: 110px auto 50px;
  background: linear-gradient(135deg, rgba(123, 0, 255, 0.2), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(123, 0, 255, 0.25);
  border-radius: 28px;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
  letter-spacing: -0.05em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--landing-muted);
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--landing-text);
  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--landing-muted);
}

@media (max-width: 980px) {
  .hero,
  .spotlight,
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    display: none;
  }

  .cta-band,
  .site-footer {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    padding-top: 18px;
  }

  .nav-actions {
    gap: 10px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .cta-row,
  .cta-actions {
    display: grid;
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 26px;
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .section-block {
    margin-top: 80px;
  }

  .social-proof {
    gap: 18px;
    justify-content: space-between;
  }
}

/* ── Added sections: sub-heading, 4-step grid, language chips, FAQ ── */
.section-sub {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--landing-muted);
  line-height: 1.7;
}

.steps-grid.steps-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--landing-card-border);
  border-radius: 999px;
  background: var(--landing-card-soft);
  color: var(--landing-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.chip.chip-live {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #A7F3D0;
}

.chip-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 0.85rem;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--landing-success);
}

.spotlight-panel .panel-card {
  width: 100%;
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--landing-card);
  border: 1px solid var(--landing-card-border);
  border-radius: 18px;
  padding: 0 22px;
}

.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  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: "+";
  color: var(--landing-accent);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0 0 18px;
  color: var(--landing-muted);
  line-height: 1.7;
}

.faq-item a {
  color: #7DD3FC;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy {
  margin-left: 10px;
  color: var(--landing-muted);
  font-weight: 400;
}

@media (max-width: 980px) {
  .steps-grid.steps-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .steps-grid.steps-four { grid-template-columns: 1fr; }
  .section-block { margin-top: 80px; }
}

/* ── Landing: "what is" prose + featured blog posts ── */
.prose-block { max-width: 820px; }
.prose-block p { margin: 0 0 16px; color: var(--landing-muted); line-height: 1.8; font-size: 1.05rem; }
.prose-block a, .more-link a { color: #7DD3FC; text-decoration: underline; text-underline-offset: 2px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 22px;
  background: var(--landing-card); border: 1px solid var(--landing-card-border);
  border-radius: 22px; box-shadow: var(--landing-shadow);
  color: var(--landing-muted); text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(123, 0, 255, 0.5); }
.post-card h3 { margin: 0; color: var(--landing-text); font-size: 1.15rem; line-height: 1.35; }
.post-card p { margin: 0; line-height: 1.65; font-size: 0.95rem; }
.post-cat { color: #C4B5FD; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.post-meta { margin-top: auto; font-size: 0.82rem; }
.more-link { margin: 22px 0 0; font-weight: 600; }

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

/* skin.css (pulled in by theme.css) restyles every .post-card with a light surface via
   ":root .post-card". The landing page is always dark, so re-assert its card styling with
   higher specificity; otherwise the white cards hide the light card titles. */
body.landing-page .post-card {
  background: var(--landing-card);
  box-shadow: var(--landing-shadow);
  border-radius: 22px;
  padding: 24px 22px;
}
body.landing-page .post-card:hover {
  border-color: rgba(123, 0, 255, 0.5);
  box-shadow: var(--landing-shadow);
}
