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

:root {
  --bg-primary: #0B0D17;
  --bg-secondary: #111827;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-input: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(124,58,237,0.5);
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark: #5B21B6;
  --blue: #3B82F6;
  --blue-light: #60A5FA;
  --cyan: #06B6D4;
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --text-faint: #6B7280;
  --green: #10B981;
  --red: #EF4444;
  --gold: #F59E0B;
  --gradient: linear-gradient(135deg, #7C3AED, #3B82F6);
  --gradient-text: linear-gradient(135deg, #A78BFA, #7C3AED, #3B82F6, #60A5FA);
  --glass: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  --glass-border: 1px solid rgba(255,255,255,0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

body {
  font: 15px/1.6 "Inter","Microsoft YaHei","PingFang SC",sans-serif;
  color: var(--text-secondary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; text-decoration: none; }

/* ── Header / Navbar ─────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(11,13,23,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar .logo {
  font-size: 20px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.navbar .logo span {
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-size: 22px;
}
.navbar .nav { display: flex; align-items: center; gap: 8px; }
.navbar .nav a {
  color: var(--text-muted); font-size: 14px; padding: 8px 14px;
  border-radius: 8px; transition: all .2s;
}
.navbar .nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.navbar .nav .btn-nav {
  background: var(--gradient); color: #fff; font-weight: 600;
  box-shadow: 0 2px 12px rgba(124,58,237,0.3);
}
.navbar .nav .btn-nav:hover { box-shadow: 0 4px 20px rgba(124,58,237,0.5); }

/* ── Container ───────────────────────── */
.container { max-width: 480px; margin: 0 auto; padding: 100px 20px 40px; }
.container.wide { max-width: 760px; }
.container.page { padding-top: 100px; }

/* ── Glass Card ──────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px; margin-bottom: 20px;
  transition: border-color .3s;
}
.card:hover { border-color: rgba(124,58,237,0.15); }
.card h2 {
  font-size: 18px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 20px;
}

/* ── Form ─────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-control {
  width: 100%; padding: 12px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text-primary);
  outline: none; font-family: inherit; transition: all .2s;
}
.form-group input:focus, .form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
  background: rgba(255,255,255,0.08);
}
.form-group input::placeholder { color: var(--text-faint); }

.sms-row { display: flex; gap: 10px; }
.sms-row input { flex: 1; }
.sms-row button { flex-shrink: 0; }

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  font-family: inherit; text-align: center; transition: all .2s;
}
.btn-primary {
  background: var(--gradient); color: #fff; width: 100%;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(124,58,237,0.5); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline {
  background: transparent; color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.3);
}
.btn-outline:hover { background: rgba(124,58,237,0.1); border-color: var(--purple); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-ghost { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

.msg { font-size: 13px; min-height: 18px; margin-top: 8px; }

/* ── Hero Section ─────────────────────── */
.hero {
  position: relative; text-align: center;
  padding: 160px 20px 80px;
  background: var(--bg-primary);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: heroFloat1 20s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: heroFloat2 25s ease-in-out infinite;
}
@keyframes heroFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-80px,60px)} }
@keyframes heroFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(60px,-80px)} }

.hero .badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px; font-size: 13px; color: var(--purple-light);
  margin-bottom: 24px; position: relative; z-index: 1;
}
.hero h1 {
  font-size: 48px; font-weight: 700; color: #fff;
  margin-bottom: 16px; position: relative; z-index: 1; line-height: 1.2;
}
.hero h1 .gradient {
  background: var(--gradient-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 32px; position: relative; z-index: 1;
}
.hero .cta-group {
  display: flex; gap: 12px; justify-content: center;
  position: relative; z-index: 1; flex-wrap: wrap;
}
.hero .btn-hero {
  padding: 14px 36px; font-size: 16px; border-radius: 12px;
  background: var(--gradient); color: #fff; font-weight: 600;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.hero .btn-hero:hover { box-shadow: 0 6px 30px rgba(124,58,237,0.6); transform: translateY(-2px); }
.hero .btn-hero-ghost {
  padding: 14px 36px; font-size: 16px; border-radius: 12px;
  background: transparent; color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.15);
}
.hero .btn-hero-ghost:hover { border-color: rgba(124,58,237,0.4); color: #fff; }

/* ── Features Section ─────────────────── */
.features-section {
  max-width: 900px; margin: 0 auto; padding: 60px 20px;
}
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 {
  font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
}
.section-title p { font-size: 16px; color: var(--text-muted); }

.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.feature-card {
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border); border-radius: var(--radius);
  padding: 28px; transition: all .3s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 32px rgba(124,58,237,0.1);
  transform: translateY(-4px);
}
.feature-card .icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.15); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── How It Works ─────────────────────── */
.how-section {
  max-width: 800px; margin: 0 auto; padding: 60px 20px;
}
.steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.step { text-align: center; position: relative; }
.step .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 16px; color: var(--text-primary); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-muted); }

/* ── Pricing (inline on landing) ──────── */
.pricing-section {
  max-width: 900px; margin: 0 auto; padding: 60px 20px;
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.price-card {
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border); border-radius: var(--radius);
  padding: 28px; text-align: center; cursor: pointer;
  transition: all .3s; position: relative;
}
.price-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
  transform: translateY(-4px);
}
.price-card.hot {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 40px rgba(124,58,237,0.15);
}
.price-card .tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; padding: 3px 14px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
}
.price-card .name { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.price-card .price { font-size: 36px; font-weight: 700; color: #fff; margin: 12px 0 4px; }
.price-card .price small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-card .price .per { font-size: 13px; color: var(--text-muted); }
.price-card .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 20px; }
.price-card li {
  font-size: 13px; color: var(--text-secondary); padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.price-card li::before { content: '✓'; color: var(--green); margin-right: 8px; font-weight: 700; }
.price-card .btn-buy {
  width: 100%; padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(124,58,237,0.3); background: transparent;
  color: var(--purple-light); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.price-card .btn-buy:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.price-card.hot .btn-buy { background: var(--gradient); color: #fff; border-color: transparent; }

/* ── Models Section ───────────────────── */
.models-section {
  max-width: 700px; margin: 0 auto; padding: 40px 20px 60px;
  text-align: center;
}
.model-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.model-badge {
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border); border-radius: 12px;
  padding: 16px 28px; font-size: 15px; font-weight: 600; color: var(--text-primary);
  transition: all .3s;
}
.model-badge:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-2px); }
.model-badge small { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }

/* ── CTA Section ──────────────────────── */
.cta-section {
  text-align: center; padding: 80px 20px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 500px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.cta-section h2 {
  font-size: 28px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px; position: relative;
}
.cta-section p { color: var(--text-muted); margin-bottom: 24px; position: relative; }

/* ── Footer ───────────────────────────── */
.footer {
  text-align: center; padding: 32px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 12px;
}
.footer a { color: var(--text-muted); }

/* ── Dashboard Specific ───────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-item {
  padding: 14px; background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.04);
}
.info-item .label { font-size: 12px; color: var(--text-faint); }
.info-item .value { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-top: 4px; }
.info-item .value.green { color: var(--green); }
.info-item .value.red { color: var(--red); }
.info-item .value.mono { font-family: "JetBrains Mono","Fira Code",monospace; font-size: 13px; word-break: break-all; }

.divider { text-align: center; margin: 20px 0; position: relative; }
.divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.divider span { background: var(--bg-secondary); padding: 0 12px; position: relative; color: var(--text-faint); font-size: 13px; }

.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pay-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.pay-btn {
  padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; text-align: center; font-family: inherit;
  transition: all .2s; color: var(--text-secondary);
}
.pay-btn:hover { border-color: rgba(124,58,237,0.4); background: var(--bg-card-hover); }
.pay-btn.active { border-color: var(--purple); background: rgba(124,58,237,0.1); }
.pay-btn .name { font-size: 13px; color: var(--text-muted); }
.pay-btn .price { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.pay-btn .hint { font-size: 11px; color: var(--green); margin-top: 4px; }

/* ── Credit Balance Card ──────────────── */
.credit-balance {
  text-align: center; padding: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.08));
  border-radius: var(--radius-sm); margin-bottom: 16px;
}
.credit-balance .amount {
  font-size: 48px; font-weight: 700;
  background: var(--gradient-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.credit-balance .label { font-size: 13px; color: var(--text-muted); }

/* ── Invite Code ──────────────────────── */
.invite-code {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 10px 14px;
}
.invite-code code {
  flex: 1; font-family: monospace; font-size: 15px; color: var(--purple-light);
  letter-spacing: 1px;
}

/* ── Responsive ───────────────────────── */
@media (max-width: 700px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .features-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .pay-row, .pay-row--3 { grid-template-columns: 1fr; }
  .navbar { padding: 0 16px; }
  .navbar .nav a { padding: 6px 10px; font-size: 13px; }
  .cta-group { flex-direction: column; align-items: center; }
}
