/* AI Game Dev with Victor — dark creative indie educator */

:root {
  --bg: #0b0a12;
  --bg-elev: #12101c;
  --bg-card: #161322;
  --bg-card-hover: #1c1829;
  --border: rgba(167, 139, 250, 0.14);
  --border-strong: rgba(167, 139, 250, 0.32);
  --text: #f3f0ff;
  --text-muted: #a59fbc;
  --violet: #a78bfa;
  --violet-deep: #7c5cfc;
  --amber: #fbbf24;
  --rose: #f472b6;
  --cyan: #67e8f9;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--amber); }
strong { font-weight: 600; }
em { color: var(--amber); font-style: normal; }

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(124, 92, 252, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(244, 114, 182, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(251, 191, 36, 0.06), transparent 50%),
    var(--bg);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  backdrop-filter: blur(16px);
  background: rgba(11, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 42%, var(--amber) 42%, var(--amber) 58%, transparent 58%),
    linear-gradient(225deg, var(--violet-deep), var(--rose));
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.35);
  flex-shrink: 0;
}

.logo-mark.sm { width: 22px; height: 22px; border-radius: 6px; }

.logo-soft {
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(167, 139, 250, 0.08);
}

.nav-cta {
  margin-left: 0.35rem;
  color: var(--bg) !important;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)) !important;
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, background 0.15s, border-color 0.15s;
}

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

.btn-primary {
  color: #0b0a12;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.28);
}

.btn-primary:hover { color: #0b0a12; filter: brightness(1.05); }

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--violet);
}

.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* Typography helpers */
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.grad-text {
  background: linear-gradient(120deg, var(--violet) 0%, var(--rose) 45%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted-heading {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85em;
}

.section-lead {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 2.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(22, 19, 34, 0.55), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); margin: 0 0 1.25rem; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.45rem); margin: 0 0 1rem; font-weight: 700; }
h3 { font-size: 1.15rem; margin: 0 0 0.55rem; font-weight: 600; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  min-height: calc(88vh - var(--header-h));
}

.hero-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 5%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.22), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 1.75rem;
}

.hero-lead strong { color: var(--text); }

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

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.terminal {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.5deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3548;
}

.terminal-bar span:nth-child(1) { background: #f472b6; }
.terminal-bar span:nth-child(2) { background: #fbbf24; }
.terminal-bar span:nth-child(3) { background: #67e8f9; }

.terminal-bar code {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  margin: 0;
  padding: 1.35rem 1.4rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}

.t-muted { color: #6b6580; }
.t-key { color: var(--cyan); }
.t-amber { color: var(--amber); }
.t-violet { color: var(--violet); }

/* Thesis */
.thesis-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(124, 92, 252, 0.06);
}

.thesis-inner p {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  max-width: 820px;
}

/* Process */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.process-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--amber);
  margin-bottom: 0.85rem;
  letter-spacing: 0.08em;
}

.process-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Waitlist */
.waitlist-card {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(124, 92, 252, 0.18), rgba(251, 191, 36, 0.06)),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow);
}

.waitlist-copy h3 { font-size: 1.35rem; }
.waitlist-copy p { color: var(--text-muted); margin: 0 0 1rem; }

.waitlist-bullets {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.waitlist-bullets li { margin-bottom: 0.35rem; }

.waitlist-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: min(100%, 280px);
}

.waitlist-form .honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.waitlist-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.waitlist-form .field .optional {
  font-weight: 400;
  opacity: 0.75;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(11, 10, 18, 0.65);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.waitlist-form input::placeholder { color: #6b6580; }

.waitlist-form input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.2);
}

.waitlist-form .btn { width: 100%; }


.waitlist-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.88rem;
}
.turnstile-slot {
  margin: 0.25rem 0 0.5rem;
}
.waitlist-success {
  grid-column: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: min(100%, 280px);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.08);
}

.waitlist-success .success-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
}

.waitlist-success p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.waitlist-card.is-success .waitlist-form { display: none; }
.waitlist-card.is-success .waitlist-success { display: flex; }

.brand-split {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.brand-split a { color: var(--violet); }
.brand-split a:hover { color: var(--amber); }

.footer-brand-split {
  margin: 0;
  font-size: 0.82rem;
  color: #6b6580;
}

.footer-brand-split a { color: var(--text-muted); }
.footer-brand-split a:hover { color: var(--amber); }

.about-aside a { color: var(--violet); }
.about-aside a:hover { color: var(--amber); }

/* Media / YouTube */
.media-grid, .tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.tools-grid { grid-template-columns: repeat(4, 1fr); }

.media-card, .tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.media-card:hover, .tool-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.media-card p, .tool-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.media-thumb {
  height: 120px;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(124, 92, 252, 0.25), rgba(11, 10, 18, 0.9));
  border: 1px solid var(--border);
}

.media-thumb.social {
  background: linear-gradient(145deg, rgba(244, 114, 182, 0.22), rgba(11, 10, 18, 0.9));
}

.media-thumb.notes {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.18), rgba(11, 10, 18, 0.9));
}

.play-icon {
  font-size: 1.4rem;
  color: var(--text);
  opacity: 0.85;
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid var(--border);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.tool-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.about-lead { margin-bottom: 1.1rem; }

.about-aside {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
}

.about-aside h3 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  margin-top: 1.25rem;
}

.about-aside h3:first-child { margin-top: 0; }

.about-aside ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.about-aside li { margin-bottom: 0.35rem; }

/* Future SaaS soft */
.section-future {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.future-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(167, 139, 250, 0.04);
}

.future-inner h2 { font-size: 1.45rem; }
.future-inner p {
  margin: 0 auto;
  color: var(--text-muted);
  max-width: 560px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--amber); }

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #6b6580;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
    gap: 2.5rem;
  }

  .hero-panel { max-width: 480px; }
  .terminal { transform: none; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }

  .waitlist-card {
    grid-template-columns: 1fr;
  }

  .waitlist-success {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(11, 10, 18, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .nav-cta { margin-left: 0; text-align: center; }

  .media-grid,
  .process-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .logo-text { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
}
