:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --panel: #181b22;
  --line: #2a3040;
  --text: #e8ecf4;
  --muted: #8b95a8;
  --accent: #6ea8fe;
  --accent-soft: rgba(110, 168, 254, 0.12);
  --mint: #5fd4b8;
  --mint-soft: rgba(95, 212, 184, 0.12);
  --warm: #f0a060;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 17px/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(110, 168, 254, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(95, 212, 184, 0.06), transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 16, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

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

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

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4d8ef5);
  color: #061018;
  box-shadow: 0 8px 32px rgba(110, 168, 254, 0.35);
}

.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(110, 168, 254, 0.25);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 400;
}

.hero h1 em {
  font-style: normal;
  color: var(--mint);
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
section {
  padding: 64px 0;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 10px;
  font-weight: 600;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 12px;
  font-weight: 400;
}

.section-intro {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* Problem cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

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

.card-accent {
  border-color: rgba(110, 168, 254, 0.35);
  background: linear-gradient(160deg, var(--panel), rgba(110, 168, 254, 0.06));
}

/* Diagram — hub */
.diagram-box {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 32px;
  margin-top: 24px;
}

.hub-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hub-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.source-pill {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

.source-pill.chatgpt { border-color: #10a37f; color: #7ee8c8; }
.source-pill.claude { border-color: #d97757; color: #f0b090; }
.source-pill.gemini { border-color: #4285f4; color: #8ab4f8; }
.source-pill.cursor { border-color: var(--accent); color: var(--accent); }
.source-pill.more { border-color: var(--muted); color: var(--muted); }

.hub-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  gap: 4px;
  margin: 12px 0;
}

.hub-arrows svg {
  opacity: 0.6;
}

.hub-core {
  text-align: center;
  padding: 28px 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(110, 168, 254, 0.2), rgba(95, 212, 184, 0.15));
  border: 2px solid rgba(110, 168, 254, 0.45);
  box-shadow: var(--shadow);
}

.hub-core strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.hub-core span {
  color: var(--muted);
  font-size: 14px;
}

.hub-outcomes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.outcome {
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--mint-soft);
  border: 1px solid rgba(95, 212, 184, 0.3);
  font-size: 14px;
  color: var(--mint);
}

/* Flow steps */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 800px) {
  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

.flow-step {
  position: relative;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 12px;
}

.flow-step h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.flow-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

.feature {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}

.feature-icon.blue { background: var(--accent-soft); }
.feature-icon.mint { background: var(--mint-soft); }
.feature-icon.warm { background: rgba(240, 160, 96, 0.15); }

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Search diagram */
.search-viz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

@media (max-width: 700px) {
  .search-viz {
    grid-template-columns: 1fr;
  }
}

.search-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 13px;
  color: var(--muted);
  width: 100px;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #061018;
}

.bar-fill.keywords { background: linear-gradient(90deg, var(--accent), #4d8ef5); width: 85%; }
.bar-fill.meaning { background: linear-gradient(90deg, var(--mint), #3db89a); width: 72%; }
.bar-fill.combined { background: linear-gradient(90deg, var(--accent), var(--mint)); width: 95%; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.price-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(110, 168, 254, 0.08), var(--panel));
  box-shadow: 0 16px 48px rgba(110, 168, 254, 0.15);
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #061018;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.price-card .amount {
  font-size: 42px;
  font-weight: 700;
  margin: 16px 0 4px;
  font-family: var(--display);
}

.price-card .period {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.price-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.price-list li::before {
  content: "✓ ";
  color: var(--mint);
  font-weight: 700;
}

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

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 13px;
}

.compare-table th:first-child {
  color: var(--muted);
}

.compare-table th.highlight {
  background: rgba(110, 168, 254, 0.12);
  color: var(--accent);
}

.compare-table td.highlight {
  background: rgba(110, 168, 254, 0.06);
}

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

.yes {
  color: var(--mint);
  font-weight: 600;
}

.no {
  color: var(--muted);
}

.partial {
  color: var(--warm);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.faq-item h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
}

.footer p {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.footer-links a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
  text-decoration: none;
}

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

.copyright {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Pipeline viz */
.pipeline-viz {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}

.pipe-node {
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  font-weight: 500;
}

.pipe-arrow {
  color: var(--muted);
  font-size: 18px;
}

.pipe-node.active {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: var(--mint);
}

/* Extension surfaces */
.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.surface-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.surface-card.surface-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(110, 168, 254, 0.08), var(--panel));
}

.surface-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  margin-bottom: 10px;
}

.surface-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.surface-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}

.surface-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.surface-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.surface-list li:last-child {
  border-bottom: none;
}

.surface-list code {
  font-size: 12px;
  color: var(--accent);
}

.surface-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.flow-pill {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.flow-pill.flow-core {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.flow-plus,
.flow-arrow {
  color: var(--muted);
  font-weight: 600;
}

.feature code {
  font-size: 12px;
  color: var(--accent);
}

.faq-item code {
  font-size: 13px;
  color: var(--accent);
}

/* Screenshots */
#screenshots {
  padding-top: 48px;
  padding-bottom: 48px;
}

.screenshot-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.screenshot-group h3 {
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--text);
}

.screenshot-group p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.shot-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #0f1115;
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
}

.shot-card img.shot-missing {
  min-height: 160px;
  background: var(--bg-elevated);
  object-fit: none;
}

.shot-hero img {
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(6, 8, 12, 0.92);
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1200px, 96vw);
  max-height: 90vh;
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lightbox-figure figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.shot-card figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.shot-card strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.shot-hero {
  margin-top: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-hero img {
  display: block;
  width: 100%;
  height: auto;
}

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

/* Download */
#download {
  padding-top: 48px;
  padding-bottom: 48px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.download-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-card.download-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow);
}

.download-icon {
  font-size: 28px;
  line-height: 1;
}

.download-card h3 {
  margin: 0;
  font-size: 18px;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.download-meta {
  font-size: 12px !important;
  color: var(--accent) !important;
}

.download-btn {
  margin-top: 8px;
  text-align: center;
  justify-content: center;
}

.download-card code {
  font-size: 12px;
  color: var(--accent);
}
