*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0f1419;
  --bg-elevated: #141b22;
  --bg-panel: #171e26;
  --border: #2a3544;
  --border-subtle: #1e2833;
  --text: #e8eef4;
  --text-muted: #9aa8b5;
  --text-dim: #6b7a8a;
  --accent: #3d9a7a;
  --accent-strong: #2f8a6c;
  --accent-glow: rgba(61, 154, 122, 0.18);
  --gold: #c4a35a;
  --gold-glow: rgba(196, 163, 90, 0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "IBM Plex Serif", "IBM Plex Sans", Georgia, serif;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 8% -15%, #1a3d32 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #2a2418 0%, transparent 48%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 20, 25, 0.88);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

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

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

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

.site-nav .nav-cta {
  color: #04140f !important;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #04140f;
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  color: #04140f;
  background: #48b08c;
  text-decoration: none;
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-panel);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-dim);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 10px;
}

/* Hero */

.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 40% -5%, var(--accent-glow), transparent),
    radial-gradient(ellipse 50% 40% at 90% 10%, var(--gold-glow), transparent),
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero-brand {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1.1;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 13px;
  color: var(--text-dim);
}

/* App preview — dossier mock */

.app-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
}

.app-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.app-titlebar .dot.red {
  background: #ff5f57;
}
.app-titlebar .dot.yellow {
  background: #febc2e;
}
.app-titlebar .dot.green {
  background: #28c840;
}

.app-titlebar span:last-child {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.app-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 300px;
}

.app-panel {
  padding: 12px 10px;
  border-right: 1px solid var(--border-subtle);
  font-size: 11px;
  background: #121820;
}

.app-panel-label {
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.app-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  margin-bottom: 3px;
  border-radius: 4px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-item.active {
  background: rgba(61, 154, 122, 0.22);
  color: #c8f0df;
}

.app-item.sealed {
  color: var(--text-dim);
}

.seal-tag {
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.app-map {
  padding: 18px 16px;
  background: #0a0e14;
}

.map-root {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(61, 154, 122, 0.15);
  border: 1px solid rgba(61, 154, 122, 0.35);
  border-radius: 8px;
}

.map-branch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  margin-left: 12px;
}

.map-node {
  position: relative;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.map-node::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--border);
}

.map-node.sealed {
  border-color: rgba(196, 163, 90, 0.35);
  color: #d4c4a0;
}

.map-node.open {
  border-color: rgba(61, 154, 122, 0.45);
  color: #c8e8da;
  box-shadow: 0 0 0 1px rgba(61, 154, 122, 0.12);
}

.map-node.muted {
  opacity: 0.55;
}

.map-dig {
  margin-top: 6px;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Sections */

section {
  padding: 72px 0;
}

section:nth-child(even) {
  background: rgba(20, 27, 34, 0.65);
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 17px;
}

/* Features */

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

.feature-card {
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: var(--text-dim);
}

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

.feature-icon.teal {
  background: rgba(61, 154, 122, 0.14);
  color: var(--accent);
}

.feature-icon.gold {
  background: rgba(196, 163, 90, 0.14);
  color: var(--gold);
}

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

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

/* Why */

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

.selling-point {
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.selling-point h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text);
}

.selling-point p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Workflow */

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.workflow-step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.workflow-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 50%;
}

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

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

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 780px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
}

.pricing-card-featured {
  border-color: rgba(61, 154, 122, 0.45);
  box-shadow: 0 0 0 1px rgba(61, 154, 122, 0.12);
}

.pricing-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04140f;
  background: var(--accent);
  border-radius: 999px;
}

.price-tag {
  margin: 4px 0 12px !important;
  font-size: 1.5rem !important;
  font-weight: 700;
  color: var(--text) !important;
}

.pricing-card-desc {
  margin-bottom: 16px !important;
}

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

.pricing-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* Waitlist / download box */

.download-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(61, 154, 122, 0.14),
    rgba(196, 163, 90, 0.08)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.download-box h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.download-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

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

/* Legal / privacy */

.legal-page {
  padding: 64px 0 80px;
}

.legal-wrap {
  max-width: 640px;
}

.legal-wrap h1 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 1.25rem;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-card h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0 0 1rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card code {
  font-size: 0.9em;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

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

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

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

/* Responsive */

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

  .hero {
    padding-top: 48px;
  }

  .app-preview {
    max-width: 520px;
    margin-inline: auto;
  }

  .feature-grid,
  .workflow,
  .selling-points {
    grid-template-columns: 1fr 1fr;
  }

  .download-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-actions {
    align-items: center;
  }

  .download-box p {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .site-nav a:not(.btn) {
    display: none;
  }

  .feature-grid,
  .workflow,
  .selling-points,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 8px;
  }

  .app-panel-label {
    grid-column: 1 / -1;
  }
}
