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

:root {
  --bg: #080810;
  --bg2: #0d0f1a;
  --purple: #7F77DD;
  --purple-light: #A89CFF;
  --green: #5DCAA5;
  --gold: #F0B959;
  --text: #e8e8f0;
  --muted: #666;
  --border: rgba(255,255,255,.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LANG TOGGLE */
.lang-bar {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
}
.lang-btn {
  padding: 5px 14px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn.active {
  background: var(--purple);
  color: #fff;
}

/* ORBS */
.orb-global {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-g1 { width:500px; height:500px; background:#12083a; top:-100px; left:-100px; opacity:.6; }
.orb-g2 { width:400px; height:400px; background:#0a1a30; bottom:-80px; right:-80px; opacity:.5; }

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

section { position: relative; z-index: 1; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--purple);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .5s ease .2s forwards;
}
.hero-title {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .6s ease .4s forwards;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp .5s ease .6s forwards;
}

/* WAITLIST */
.waitlist {
  opacity: 0;
  animation: fadeUp .5s ease .8s forwards;
  width: 100%;
  max-width: 480px;
}
.waitlist-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: .04em;
}
.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.waitlist-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.waitlist-input:focus { border-color: var(--purple); }
.waitlist-input::placeholder { color: #444; }
.waitlist-btn {
  padding: 14px 28px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.waitlist-btn:hover { opacity: .85; transform: translateY(-1px); }
.waitlist-btn:disabled { opacity: .5; cursor: not-allowed; }
.waitlist-msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
  transition: opacity .3s;
}
.waitlist-msg.success { color: var(--green); }
.waitlist-msg.error { color: #f87171; }
.waitlist-count {
  margin-top: 16px;
  font-size: 12px;
  color: #444;
  letter-spacing: .04em;
}

/* FEATURES */
.features {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--purple);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: rgba(127,119,221,.3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* PLANS */
.plans {
  padding: 0 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.plan-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.plan-badge.free  { background:rgba(95,224,165,.1);  color:#5FE0A5; border:1px solid rgba(95,224,165,.2); }
.plan-badge.solo  { background:rgba(127,119,221,.1); color:#A89CFF; border:1px solid rgba(127,119,221,.2); }
.plan-badge.club  { background:rgba(239,159,39,.1);  color:#F0B959; border:1px solid rgba(239,159,39,.2); }
.plan-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* STACK */
.stack-section {
  padding: 0 24px 80px;
  max-width: 700px;
  margin: 0 auto;
}
.scene {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 40px;
}
.orb { position:absolute; border-radius:50%; filter:blur(80px); pointer-events:none; animation:glow 5s ease-in-out infinite; }
.orb1 { width:320px; height:320px; background:#1a0a3a; top:-60px; left:-60px; }
.orb2 { width:280px; height:280px; background:#0a1a30; bottom:-40px; right:-40px; animation-delay:2s; }
.orb3 { width:200px; height:200px; background:#0d1f1a; bottom:80px; left:30%; animation-delay:3.5s; }
.sections { display:flex; flex-direction:column; gap:24px; width:100%; max-width:580px; }
.section { opacity:0; animation:fadeUp .6s ease forwards; }
.section-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.section-line {
  height:1px; flex:1;
  background:linear-gradient(90deg,rgba(255,255,255,.12),transparent);
  transform-origin:left; transform:scaleX(0);
  animation:lineGrow .8s ease forwards;
}
.section-name { font-size:10px; letter-spacing:.18em; color:#666; text-transform:uppercase; font-weight:500; flex-shrink:0; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip {
  display:flex; align-items:center; gap:8px;
  padding:9px 16px; border-radius:10px;
  font-size:13px; font-weight:500; color:#ccc;
  opacity:0; animation:chipIn .4s cubic-bezier(.34,1.56,.64,1) forwards;
  position:relative; overflow:hidden; cursor:default; transition:color .2s;
}
.chip::before {
  content:''; position:absolute; inset:0; border-radius:10px; padding:1px;
  background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.03));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.chip-bg { position:absolute; inset:0; border-radius:10px; opacity:.07; }
.chip-icon { width:20px; height:20px; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative; z-index:1; }
.chip-label { position:relative; z-index:1; }
.badge-row { display:flex; gap:8px; justify-content:center; margin-top:36px; }
.badge { padding:6px 14px; border-radius:100px; font-size:12px; font-weight:500; letter-spacing:.04em; }
.badge-free  { background:rgba(95,224,165,.1);  color:#5FE0A5; border:1px solid rgba(95,224,165,.2); }
.badge-solo  { background:rgba(127,119,221,.1); color:#A89CFF; border:1px solid rgba(127,119,221,.2); }
.badge-club  { background:rgba(239,159,39,.1);  color:#F0B959; border:1px solid rgba(239,159,39,.2); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes glow {
  0%,100% { opacity:.4; transform:scale(1); }
  50%      { opacity:.7; transform:scale(1.08); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes chipIn {
  from { opacity:0; transform:translateY(12px) scale(.95); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* i18n */
[data-lang] { display: none; }
[data-lang].visible { display: block; }
span[data-lang].visible { display: inline; }

@media (max-width: 600px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-btn { width: 100%; }
}
