:root {
  --bg: #0f0f1a;
  --card: #1a1a2e;
  --border: #2d2d4e;
  --text: #e2e8f0;
  --muted: #9ca3bd;
  --purple: #a78bfa;
  --green: #22c55e;
  --blue: #60a5fa;
  --max: 1120px;
  --shadow: 0 16px 48px rgba(8, 8, 18, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% -10%, rgba(96, 165, 250, 0.14), transparent 40%),
    radial-gradient(circle at 5% 10%, rgba(167, 139, 250, 0.18), transparent 32%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* Password gate removed — using Cloudflare Access */

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(226, 232, 240, 0.04) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  opacity: 0.28;
  z-index: -1;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.4rem, var(--max));
  margin: 0 auto;
}

.section {
  padding: clamp(3.8rem, 7vw, 6.5rem) 0;
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1.35rem;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  max-width: 70ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  padding: 0.85rem 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #f5f6ff;
  background: linear-gradient(120deg, var(--purple), #8b73f8 45%, #6f56f3);
  box-shadow: 0 10px 28px rgba(111, 86, 243, 0.36);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 45, 78, 0.65);
  background: rgba(15, 15, 26, 0.72);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.25rem;
  gap: 1rem;
}

.wordmark {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.wordmark span {
  color: var(--purple);
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

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

.hero {
  padding-top: clamp(4.8rem, 10vw, 7.8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.hero h2 {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero-subtext {
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.hero-panel {
  padding: 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(26, 26, 46, 0.98), rgba(18, 18, 36, 0.96));
  box-shadow: var(--shadow);
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--blue);
  font-size: 0.76rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  padding: 0;
}

.hero-panel li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}

.hero-panel span {
  color: var(--green);
  font-weight: 700;
  min-width: 2.5rem;
}

.panel-note {
  color: var(--muted);
  font-size: 0.93rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: linear-gradient(175deg, rgba(26, 26, 46, 0.96), rgba(19, 19, 36, 0.92));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
}

.wheel-flow {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, auto));
  gap: 0.5rem;
  align-items: center;
  justify-content: start;
}

.flow-step {
  background: rgba(96, 165, 250, 0.12);
  color: var(--text);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
}

.flow-arrow {
  color: var(--purple);
  font-weight: 700;
  font-size: 1.08rem;
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.72rem;
}

.check-list li {
  padding: 0.85rem 1rem;
  background: rgba(26, 26, 46, 0.76);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  position: relative;
  padding-left: 2.6rem;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  font-weight: 700;
}

.pricing-card .tier {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
}

.pricing-card .price {
  font-size: 2rem;
  line-height: 1;
  margin: 0.5rem 0 1.2rem;
  font-weight: 800;
}

.pricing-card .price span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.pricing-card li::before {
  content: "•";
  color: var(--green);
  margin-right: 0.5rem;
}

.pricing-card.featured {
  border-color: rgba(167, 139, 250, 0.62);
  box-shadow: 0 20px 40px rgba(111, 86, 243, 0.2);
}

.pricing-note {
  margin-top: 0.9rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.2rem;
  align-items: center;
}

.about-photo {
  min-height: 250px;
  border-radius: 1rem;
  border: 1px dashed rgba(167, 139, 250, 0.55);
  background:
    linear-gradient(160deg, rgba(167, 139, 250, 0.17), transparent),
    linear-gradient(10deg, rgba(96, 165, 250, 0.13), rgba(26, 26, 46, 0.84));
  display: grid;
  place-items: center;
  color: #c5b9ff;
  font-weight: 600;
}

.about-grid p {
  color: var(--muted);
}

.about-note {
  margin-top: 0.8rem;
  color: var(--text);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.contact-wrap p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 0.62rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: #d2d8e7;
}

.contact-form input,
.contact-form textarea,
.gate-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: rgba(10, 10, 20, 0.78);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.gate-form input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.24);
}

.form-status {
  min-height: 1.2rem;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.success {
  color: var(--green);
}

.form-status.error,
.gate-error {
  color: #f87171;
}

.site-footer {
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid rgba(45, 45, 78, 0.6);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  border-bottom: 1px dotted rgba(156, 163, 189, 0.7);
}

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: radial-gradient(circle at 80% 10%, rgba(96, 165, 250, 0.25), rgba(15, 15, 26, 0.92) 45%),
    rgba(12, 12, 20, 0.94);
  transition: opacity 280ms ease, visibility 280ms ease;
}

.gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.gate-modal {
  width: min(430px, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(167, 139, 250, 0.48);
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(26, 26, 46, 0.98), rgba(14, 14, 28, 0.96));
  box-shadow: 0 28px 60px rgba(7, 7, 15, 0.66);
}

.gate-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--blue);
}

.gate-modal h1 {
  margin: 0.55rem 0;
  font-size: 1.8rem;
}

.gate-copy {
  color: var(--muted);
  margin-bottom: 1rem;
}

.gate-form {
  display: grid;
  gap: 0.72rem;
}

.gate-form label {
  font-size: 0.92rem;
}

.gate-error {
  min-height: 1rem;
  font-size: 0.9rem;
}

.site-content {
  transition: filter 260ms ease;
}

body.is-locked .site-content {
  filter: blur(3px);
}

.shake {
  animation: shake 260ms linear;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

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

  .wheel-flow {
    grid-template-columns: repeat(5, minmax(0, auto));
  }

  .flow-arrow:nth-child(2n) {
    display: none;
  }
}

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

  .header-inner {
    min-height: auto;
    padding: 0.85rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .three-up,
  .two-up {
    grid-template-columns: 1fr;
  }

  .wheel-flow {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin-left: 0.65rem;
  }

  .gate-modal {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
