/* StoryMatch — Dedicated About & Product Showcase Stylesheet */
:root {
  --bg: #070a12;
  --surface: rgba(15, 22, 38, 0.8);
  --surface-strong: rgba(15, 23, 42, 0.94);
  --surface-hover: rgba(22, 33, 56, 0.96);
  --border: rgba(148, 163, 184, 0.15);
  --border-hi: rgba(148, 163, 184, 0.3);
  --text: #f8fafc;
  --soft: #cbd5e1;
  --muted: #94a3b8;
  --cyan: #38bdf8;
  --indigo: #6366f1;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 13px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.ambient-a {
  width: 540px;
  height: 540px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
}

.ambient-b {
  width: 560px;
  height: 560px;
  top: 180px;
  right: -220px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

/* ===================== HEADER & SECTION NAV ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 10, 18, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  outline: none;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.16s ease, transform 0.14s ease;
}

.cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.ghost-link:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
}

/* ===================== CINEMATIC HERO ===================== */
.hero-banner {
  position: relative;
  margin: 24px 0 18px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(circle at 75% 30%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.16), transparent 55%),
    #0b1120;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
  filter: saturate(1.08);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(7, 10, 18, 0.94) 0%,
    rgba(7, 10, 18, 0.82) 48%,
    rgba(7, 10, 18, 0.42) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 48px 54px;
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.45rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: #e2e8f0;
  line-height: 1.62;
  margin-bottom: 14px;
}

.hero-intro {
  font-size: 0.94rem;
  color: var(--soft);
  margin-bottom: 26px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-actions .cta-btn {
  padding: 12px 24px;
  font-size: 0.94rem;
}

.jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-pills a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soft);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.jump-pills a:hover {
  border-color: var(--cyan);
  color: #fff;
}

/* ===================== SECTIONS ===================== */
.doc-section {
  padding: 54px 0 14px;
  scroll-margin-top: 76px;
}

.sec-header {
  max-width: 740px;
  margin-bottom: 28px;
}

.sec-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cyan);
  margin-bottom: 7px;
}

.sec-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.sec-sub {
  color: var(--muted);
  font-size: 0.96rem;
}

/* Story Two-Column Layout */
.story-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.panel p + p {
  margin-top: 14px;
}

.panel p {
  color: var(--soft);
  font-size: 0.95rem;
}

.contrast-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contrast-item {
  padding: 15px 17px;
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
}

.contrast-item h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}

.contrast-item p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

/* Purpose Quote + Audience Grid */
.purpose-quote {
  padding: 26px 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.11), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.34);
  margin-bottom: 24px;
}

.purpose-quote blockquote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.42;
  color: #f8fafc;
}

.purpose-quote p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #bae6fd;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.audience-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.14);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.audience-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.audience-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Capabilities Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.44);
  transform: translateY(-2px);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.status-chip {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-chip.live {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.36);
  color: #6ee7b7;
}

.status-chip.partial {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fde68a;
}

.status-chip.pending {
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.36);
  color: #cbd5e1;
}

.status-chip.blocked {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #fda4af;
}

.feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--soft);
  line-height: 1.55;
}

.feature-example {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: #bae6fd;
  line-height: 1.48;
}

.feature-example strong {
  color: #fff;
}

/* How It Works Workflows */
.workflows-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workflow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px;
}

.workflow-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.step-box {
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.step-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.step-box p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.48;
}

/* Timeline (Evolution of StoryMatch) */
.timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #38bdf8, #6366f1, rgba(148, 163, 184, 0.2));
}

.timeline-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.timeline-item.future::before {
  background: #64748b;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.3);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-head h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.version-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7dd3fc;
}

.bullet-list {
  margin-top: 10px;
  padding-left: 19px;
  color: var(--soft);
  font-size: 0.89rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 7px 20px;
}

/* Changelog */
.changelog-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.changelog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ver-pill {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #e0f2fe;
}

.changelog-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.cl-group {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 16px;
}

.cl-group h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  margin-bottom: 8px;
}

.cl-group ul {
  padding-left: 17px;
  font-size: 0.85rem;
  color: var(--soft);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Testing & QA */
.qa-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.qa-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}

.qa-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.qa-num.pass { color: #6ee7b7; }
.qa-num.pend { color: #cbd5e1; }
.qa-num.blk { color: #fda4af; }
.qa-num.fail { color: #fb7185; }

.qa-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
}

.qa-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.qa-table th,
.qa-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  vertical-align: top;
}

.qa-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.55);
}

.qa-table tr:last-child td {
  border-bottom: none;
}

.qa-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.qa-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Reliability Pillars */
.reliability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}

.rel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.rel-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.rel-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.roadmap-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}

.roadmap-col h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-col li {
  font-size: 0.87rem;
  color: var(--soft);
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid var(--border);
}

/* Creator & Contact */
.creator-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(19, 30, 56, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 26px;
  padding: 34px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.creator-monogram {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.25);
}

.creator-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.creator-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 12px;
}

.creator-bio {
  font-size: 0.96rem;
  color: var(--soft);
  max-width: 660px;
  margin-bottom: 20px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 13px;
  text-decoration: none;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.16s ease, transform 0.14s ease, background 0.16s ease;
}

.contact-pill:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.14);
  transform: translateY(-1px);
}

.contact-pill small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.83rem;
}

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

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

.footer-links a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }
  .section-nav {
    order: 3;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-content {
    padding: 36px 22px 32px;
  }
  .creator-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .panel,
  .workflow-card,
  .changelog-card {
    padding: 20px;
  }
  .brand-tag {
    display: none;
  }
}
