:root {
  --bg: #0b0d10;
  --surface: #11141a;
  --surface-2: #161a22;
  --surface-3: #1c212b;
  --text: #f0f2f5;
  --muted: #9aa3b2;
  --accent: #10b981;
  --accent-2: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #022c22;
  border-radius: 10px;
  font-size: 18px;
}

.logo-text { font-size: 20px; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 24px 100px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge-draft { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.25); }
.badge-live { background: rgba(16, 185, 129, 0.14); color: var(--accent-2); border-color: rgba(16, 185, 129, 0.3); }
.badge-demo { background: rgba(99, 102, 241, 0.14); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.3); }
.badge-valid { background: rgba(16, 185, 129, 0.14); color: var(--accent-2); border-color: rgba(16, 185, 129, 0.3); }

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 24px 0 18px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stats div { display: flex; flex-direction: column; align-items: center; }

.hero-stats strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}

.hero-stats span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover { box-shadow: 0 10px 30px rgba(16, 185, 129, 0.38); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

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

.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }

.section {
  padding: 80px 24px;
}

.section.alt { background: var(--surface); }

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.container.narrow { max-width: 760px; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.flow-step h3 { margin: 16px 0 8px; font-size: 18px; }

.flow-step p { color: var(--muted); margin: 0; font-size: 14px; }

.step-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #022c22;
  font-weight: 800;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.stack-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-card span { font-size: 12px; font-weight: 500; color: var(--muted); }

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  color: var(--muted);
  font-size: 13px;
}

.main { padding: 48px 24px 80px; }

.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.card-header h2 { font-size: 18px; font-weight: 700; margin: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }

label { font-size: 13px; font-weight: 500; color: var(--muted); }

input, select, textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

.tiers-list { display: flex; flex-direction: column; gap: 14px; }

.tier-row {
  display: grid;
  grid-template-columns: 1.2fr 90px 110px 90px;
  gap: 14px;
  align-items: center;
}

.tier-row input { width: 100%; }

.actions-bar {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 100;
}

.toast.show { transform: translateY(0); opacity: 1; }

.event-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
}

.event-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 18px; }

.event-details { display: flex; gap: 32px; flex-wrap: wrap; }

.detail { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 12px; color: var(--muted); }
.detail-value { font-size: 15px; font-weight: 500; }

.countdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.countdown-label { font-size: 12px; color: var(--muted); }

.countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.countdown-unit {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 56px;
}

.countdown-unit strong { display: block; font-size: 24px; font-weight: 800; }
.countdown-unit span { font-size: 11px; color: var(--muted); text-transform: uppercase; }

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tier-card:hover { border-color: rgba(16, 185, 129, 0.35); transform: translateY(-2px); }

.tier-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.tier-card h3 { margin: 0; font-size: 20px; }
.tier-price { font-size: 28px; font-weight: 800; color: var(--accent-2); }

.availability {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.availability-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.availability-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.summary-row.total {
  border-bottom: none;
  font-size: 18px;
  font-weight: 700;
  padding-top: 16px;
}

.processing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hidden { display: none !important; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success-card {
  text-align: center;
  padding: 48px 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #022c22;
  border-radius: 50%;
  font-size: 36px;
  font-weight: 800;
}

.ticket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin: 32px 0;
  text-align: left;
  overflow: hidden;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.ticket-title { font-weight: 700; }

.ticket-body { padding: 20px 24px; }

.ticket-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }

.charts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.chart-card { min-height: 320px; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 220px;
  padding-top: 20px;
}

.bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar {
  width: 100%;
  max-width: 60px;
  background: linear-gradient(180deg, var(--accent), #059669);
  border-radius: 8px 8px 0 0;
  transition: height 0.5s ease;
}

.bar-label { font-size: 12px; color: var(--muted); }

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0% 35%, var(--accent-2) 35% 70%, #6366f1 70% 100%);
  position: relative;
}

.donut::after {
  content: '';
  position: absolute;
  inset: 34px;
  background: var(--surface);
  border-radius: 50%;
}

.donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-2);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  margin: -28px -28px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13px;
  font-weight: 600;
}

.code-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .event-hero, .checkout-layout, .charts-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .nav-links { display: none; }
}
