:root {
  --bg: #09090f;
  --bg-2: #140a07;
  --surface: #12121a;
  --surface-2: #1d1a24;
  --text: #fff3e7;
  --muted: #f8c298;
  --primary: #ff4a14;
  --primary-2: #ffbb00;
  --ring: rgba(255, 95, 0, 0.35);
  --border: #3a271f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 115, 0, 0.18), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(255, 45, 0, 0.2), transparent 28%),
    linear-gradient(170deg, var(--bg) 0%, var(--bg-2) 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.topbar {
  width: min(1100px, 94vw);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #ffd9bc;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.topnav {
  display: flex;
  gap: 14px;
}

.topnav a {
  color: #ffbc91;
  text-decoration: none;
  font-size: 14px;
  padding: 7px 10px;
  border-radius: 999px;
}

.topnav a:hover {
  background: rgba(255, 125, 47, 0.15);
}

.container {
  width: min(1100px, 94vw);
  margin: 20px auto 34px;
  display: grid;
  gap: 22px;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
}

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

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.brand-logo {
  width: min(760px, 90vw);
  height: 290px;
  object-fit: contain;
  object-position: center;
  margin: 10px auto 0;
  display: block;
  transform: scaleX(1.25);
  filter: drop-shadow(0 16px 32px rgba(255, 78, 0, 0.35));
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
}

.subtitle {
  margin: 0 auto;
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
}

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

.center-actions {
  justify-content: center;
}

.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font: inherit;
}

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

.btn.primary {
  color: #1b0f06;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 10px 22px var(--ring);
}

.btn.ghost {
  color: #ffd8be;
  background: #2a1a15;
}

.back-btn {
  padding: 6px 11px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.micro {
  margin: 14px 0 0;
  color: #e9ae85;
  font-size: 13px;
}

.hero-david {
  width: min(380px, 45vw);
  height: auto;
  display: block;
  margin: 14px auto 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

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

.feature h2 {
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature a {
  color: #ffc18c;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 8px 0 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.link-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: #8d4b21;
  box-shadow: 0 10px 24px rgba(255, 96, 0, 0.16);
}

.link-card h3 {
  margin: 0 0 7px;
  color: #ffe1ca;
  font-size: 16px;
}

.link-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

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

.price {
  margin: 0;
  font-size: 38px;
  font-weight: 900;
}

.price span {
  font-size: 15px;
  color: #f4bf94;
  margin-left: 4px;
}

.price-card ul,
.checklist {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.recommended {
  border-color: #a95818;
  box-shadow: 0 0 0 1px rgba(255, 123, 0, 0.35), 0 14px 28px rgba(255, 72, 0, 0.18);
}

.pill {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #ffd8ba;
}

.footer {
  width: min(1100px, 94vw);
  margin: 0 auto 34px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: #d9a77f;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.footer a {
  color: #ffc493;
  text-decoration: none;
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 12, 0.74);
  padding: 18px;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(840px, 100%);
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.modal-panel h2 {
  margin: 0;
}

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

.eula-content {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  max-height: 50vh;
  overflow: auto;
  color: #f7d8bd;
  line-height: 1.58;
  background: var(--surface-2);
}

.eula-content h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  color: #ffd9b7;
}

.eula-content p {
  margin: 0 0 10px;
}

.eula-content ul {
  margin: 0 0 10px;
  color: #f7d8bd;
  padding-left: 20px;
}

.eula-content a {
  color: #ffbf86;
}

.eula-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ffe4cc;
  font-size: 15px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .grid-3,
  .pricing-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
  }

  .panel {
    padding: 20px;
  }

  .brand-logo {
    height: 220px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .modal-panel {
    max-height: 94vh;
    padding: 16px;
  }

  .eula-content {
    max-height: 52vh;
  }
}
