/* ==========================================================================
   Vibecoding Conference 2026 — Redesign
   Premium dark aesthetic. Grain. Glow. Reveals. No slop.
   ========================================================================== */

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

:root {
  --bg: #09090b;
  --bg-raised: #111113;
  --bg-card: #16161a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-muted: #52525b;
  --accent: #FF6B35;
  --accent-2: #FFB800;
  --glow: rgba(255, 107, 53, 0.35);
  --glow-2: rgba(255, 184, 0, 0.25);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

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

::selection { background: rgba(255,107,53,0.3); color: #fff; }

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 10000;
  pointer-events: none;
  transition: none;
}

/* --- Grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
  background-repeat: repeat;
  background-size: 180px;
}

/* --- Cursor glow --- */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

body:hover .cursor-glow { opacity: 1; }

/* --- Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

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

.nav-cta {
  color: var(--bg) !important;
  background: var(--text);
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

/* Logo cursor blink */
.logo-cursor {
  animation: blink-cursor 1s steps(1) infinite;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.4s var(--ease-out);
  transform-origin: center;
}

/* Fullscreen mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s ease;
}

.mobile-link:hover { color: var(--accent); }

.mobile-overlay.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }

.mobile-meta {
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out) 0.35s, transform 0.5s var(--ease-out) 0.35s;
}

.mobile-overlay.open .mobile-meta {
  opacity: 1;
  transform: translateY(0);
}

.mobile-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: var(--accent);
  opacity: 0.12;
  top: -300px;
  right: -200px;
  animation: drift 25s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  opacity: 0.08;
  bottom: -200px;
  left: -150px;
  animation: drift 25s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(40px, -30px); }
  66% { transform: translate(-25px, 20px); }
}

.hero-line {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}

.hero-line-1 { left: 25%; }
.hero-line-2 { left: 50%; }
.hero-line-3 { left: 75%; }

.hero-content {
  position: relative;
  text-align: center;
  max-width: 860px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.badge-pulse {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2s cubic-bezier(0,0,0.2,1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  will-change: transform, opacity;
}

.title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
}

.hero-cta {
  opacity: 0;
  transform: translateY(30px);
}

/* Glow button */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  z-index: 1;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(12px);
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(255,107,53,0.25);
}

.btn-glow:hover::before { opacity: 1; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.scroll-hint span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-track {
  width: 1px;
  height: 48px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-thumb {
  width: 100%;
  height: 16px;
  background: var(--accent);
  position: absolute;
  top: -16px;
  animation: scroll-down 2s var(--ease-in-out) infinite;
}

@keyframes scroll-down {
  0% { top: -16px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

/* --- Marquee --- */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding-right: 0;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 20px;
}

.marquee-dot {
  width: 4px !important;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  padding: 0 !important;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
  padding: 140px 0;
  position: relative;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}

.split-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 12px;
  opacity: 0;
  transform: translateY(20px);
}

.label-line {
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.reveal-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(40px);
}

.reveal-text {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.85;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
}

/* Big statement */
.section-statement {
  padding: 100px 0;
}

.big-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.big-line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
}

.big-line.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Detail cards */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  perspective: 1000px;
}

.detail-card {
  padding: 40px;
  border: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.15s ease;
  opacity: 0;
  transform: translateY(30px);
  transform-style: preserve-3d;
  will-change: transform;
}

.detail-card .detail-num,
.detail-card h3 {
  transform: translateZ(20px);
}

.detail-card:nth-child(1) { border-radius: 16px 0 0 0; }
.detail-card:nth-child(2) { border-radius: 0 16px 0 0; }
.detail-card:nth-child(3) { border-radius: 0 0 0 16px; }
.detail-card:nth-child(4) { border-radius: 0 0 16px 0; }

.detail-card:hover {
  background: var(--bg-raised);
  border-color: var(--border-hover);
}

.detail-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* Scroll-driven text reveal */
.section-scroll-text {
  padding: 200px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.scroll-reveal-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.scroll-reveal-text .sr-word {
  color: var(--text-muted);
  transition: color 0.15s ease;
  display: inline;
}

.scroll-reveal-text .sr-word.lit {
  color: var(--text);
}

/* --- Waitlist --- */
.section-waitlist { padding: 120px 0 80px; }

.waitlist-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.waitlist-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.waitlist-inner {
  position: relative;
  padding: 80px 60px;
  text-align: center;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
}

.waitlist-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(20px);
}

/* Form */
.wl-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
}

.wl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wl-form input,
.wl-form select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.wl-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2352525b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.wl-form input::placeholder { color: var(--text-muted); }

.wl-form input:focus,
.wl-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  margin-top: 4px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  position: relative;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255,255,255,0.12);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-loader { opacity: 1; }

.btn-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-loader span {
  width: 5px;
  height: 5px;
  background: var(--bg);
  border-radius: 50%;
  animation: bounce-dot 1.2s ease-in-out infinite;
}

.btn-loader span:nth-child(2) { animation-delay: 0.15s; }
.btn-loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.wl-success {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.wl-success.show { display: flex; }

.success-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  animation: pop-in 0.5s var(--ease-out);
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.wl-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.wl-success p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
}

.wl-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-right {
  display: flex;
  gap: 28px;
}

.footer-right a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

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

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* --- Reveal animation base --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Title line specific */
.title-line.revealed {
  opacity: 1;
  transform: translateY(0) !important;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-label { padding-top: 0; }

  .detail-grid { grid-template-columns: 1fr; }

  .detail-card { border-radius: 0 !important; }
  .detail-card:first-child { border-radius: 16px 16px 0 0 !important; }
  .detail-card:last-child { border-radius: 0 0 16px 16px !important; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  body.menu-open { overflow: hidden; }

  .hero { padding: 100px 24px 60px; }

  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }

  /* Opacity-only reveal on mobile to prevent layout shift */
  [data-reveal] {
    transform: none;
  }

  [data-reveal].revealed {
    transform: none !important;
  }

  .section { padding: 80px 0; }
  .section-statement { padding: 60px 0; }
  .section-quote { padding: 60px 0; }

  .hero-line { display: none; }

  .hide-mobile { display: none; }

  .waitlist-inner { padding: 48px 24px; }

  .wl-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.5rem, 16vw, 4rem); }

  .big-text { font-size: clamp(2.2rem, 12vw, 3.5rem); }
}
