/* Basic Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050814;
  color: #f5f7fb;
  line-height: 1.6;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-dark {
  background: #050814;
}

.section-pricing {
  background: #070b18;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 8, 20, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(120, 162, 255, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: radial-gradient(circle at 0 0, #46a9ff, #0052ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.8rem;
  color: #7ea7ff;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: #dbe5ff;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(88, 155, 255, 0.35), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0, 220, 255, 0.2), transparent 55%),
    #050814;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(2, 6, 23, 0.3),
      rgba(2, 6, 23, 0.9)
    ),
    linear-gradient(transparent 95%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.hero::before {
  /* subtle blueprint grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 24px, rgba(80, 120, 255, 0.09) 25px),
    linear-gradient(90deg, transparent 24px, rgba(80, 120, 255, 0.09) 25px);
  background-size: 25px 25px;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: #7ea7ff;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.accent {
  color: #4ab4ff;
}

.hero-text {
  color: #dde7ff;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-bullets {
  list-style: none;
  color: #c0cdfa;
  font-size: 0.95rem;
}

.hero-bullets li::before {
  content: '•';
  color: #4ab4ff;
  margin-right: 0.4rem;
}

.hero-card {
  position: relative;
}

.hero-card-inner {
  background: radial-gradient(circle at top, #18243f, #060814);
  border-radius: 20px;
  border: 1px solid rgba(114, 153, 255, 0.4);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(70, 120, 255, 0.3);
}

.hero-mini-title {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7ea7ff;
  margin-bottom: 0.4rem;
}

.hero-card-heading {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.hero-card-tagline {
  font-size: 0.9rem;
  color: #c0cdfa;
  margin-bottom: 0.9rem;
}

.hero-card-list {
  list-style: none;
  font-size: 0.9rem;
  color: #dde5ff;
  margin-bottom: 1.2rem;
}

.hero-card-list li::before {
  content: '✔';
  color: #4ade80;
  margin-right: 0.45rem;
}

.hero-card-note {
  font-size: 0.75rem;
  color: #9ca9d8;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #46a9ff, #2563eb);
  color: #f9fbff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.55);
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 234, 0.6);
  color: #e5e9ff;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.btn-outline {
  border-color: rgba(148, 163, 234, 0.7);
  background: transparent;
  color: #dbe2ff;
}

.btn-outline:hover {
  background: rgba(30, 64, 175, 0.4);
}

.btn-small {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #c0cdfa;
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 1.6rem;
}

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

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

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

/* Cards */
.card {
  background: #0a1022;
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 234, 0.24);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.55);
}

.card-outline {
  background: transparent;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: #d1ddff;
}

/* Chapter table */
.chapter-table {
  margin-top: 2.5rem;
}

.chapter-table h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.chapter-item {
  background: #050b1e;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(100, 116, 255, 0.35);
}

.chapter-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7ea7ff;
  margin-bottom: 0.25rem;
}

/* Bullet list */
.bullet-list {
  list-style: none;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #d1ddff;
}

.bullet-list li {
  margin-bottom: 0.25rem;
}

.bullet-list li::before {
  content: '–';
  margin-right: 0.4rem;
  color: #7ea7ff;
}

/* Story card */
.story-card {
  background: radial-gradient(circle at top left, #1a2344, #050815);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(114, 153, 255, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

.story-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7ea7ff;
  margin-bottom: 0.5rem;
}

.story-card p {
  font-size: 0.95rem;
  color: #e0e7ff;
}

/* Pricing */
.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  position: relative;
  text-align: left;
}

.plan-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3ff;
  margin-bottom: 0.4rem;
}

.price {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.price-small {
  font-size: 1.1rem;
  font-weight: 500;
}

.plan-tagline {
  font-size: 0.9rem;
  color: #c0cdfa;
  margin-bottom: 0.75rem;
}

.pricing-card-featured {
  background: radial-gradient(circle at top, #1c2750, #050815);
  border-width: 1.5px;
  border-color: rgba(96, 165, 250, 0.9);
  transform: translateY(-6px);
}

.pricing-card-featured .plan-label {
  color: #fde68a;
}

.pricing-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.86rem;
  color: #cbd5f5;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: #d0dcff;
}

/* Footer */
.site-footer {
  background: #020617;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.footer-text {
  font-size: 0.9rem;
  color: #9ca9d8;
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: #dbe5ff;
  text-decoration: none;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  padding-bottom: 1.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-bullets {
    font-size: 0.88rem;
  }
}

.table-wrapper {
  margin-top: 1.8rem;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.comparison-table thead th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
}

.comparison-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(31,41,55,0.9);
}

.comparison-table tr:nth-child(even) td {
  background: rgba(15,23,42,0.7);
}

.comparison-table tr:nth-child(odd) td {
  background: rgba(15,23,42,0.4);
}

.comparison-table th:nth-child(n+2),
.comparison-table td:nth-child(n+2) {
  text-align: center;
}

.comparison-table td:first-child {
  font-weight: 500;
}

.comparison-table td span.coming-soon {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.8rem;
  }
}

/* Author section */
.section-author {
  background: radial-gradient(circle at top left, rgba(37,99,235,0.18), rgba(15,23,42,0.96));
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.author-copy p + p {
  margin-top: 0.8rem;
}

.author-highlight {
  border-radius: 1.3rem;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 1.3rem 1.2rem 1.2rem;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.16), rgba(15,23,42,0.98));
  box-shadow: 0 20px 50px rgba(15,23,42,0.9);
}

.author-tag {
  display: inline-flex;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(129,140,248,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
  color: #c7d2fe;
}

.author-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .author-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Waitlist section */
.section-waitlist {
  background: radial-gradient(circle at top left, rgba(59,130,246,0.22), rgba(15,23,42,0.98));
}

.waitlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.waitlist-copy p + p {
  margin-top: 0.8rem;
}

.waitlist-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #9ca9d8;
}

.waitlist-panel {
  border-radius: 1.2rem;
  border: 1px solid rgba(148,163,234,0.7);
  padding: 1.4rem 1.3rem 1.2rem;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.18), rgba(15,23,42,0.98));
  box-shadow: 0 22px 55px rgba(15,23,42,0.95);
}

.waitlist-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.waitlist-form .field {
  margin-bottom: 0.85rem;
}

.waitlist-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: #c7d2ff;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(55,65,106,0.9);
  background: #020617;
  color: #f5f7fb;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: #46a9ff;
  box-shadow: 0 0 0 1px rgba(70,169,255,0.6);
}

.waitlist-disclaimer {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: #9ca9d8;
}

/* Disabled buttons (for pre-launch downloads) */
.btn.btn-disabled {
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,234,0.6);
  color: #9ca9d8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
  pointer-events: none;
}

/* Locked downloads section tweak */
.section-downloads-locked .card-outline {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .waitlist-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
