@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #000;
  --bg-card: #0a0a0a;
  --bg-elevated: #111;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.1);
  --text: #fff;
  --text-2: rgba(255,255,255,0.55);
  --text-3: rgba(255,255,255,0.3);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-bg: rgba(99,102,241,0.1);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 48px; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(0,0,0,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; max-width: 1080px; margin: 0 auto; padding: 0 48px; }
.nav-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 13px; color: var(--text-2); transition: color 0.15s; }
.nav-link:hover { color: var(--text); }
.nav-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; border: none; border-radius: var(--radius); cursor: pointer; transition: all 0.15s; white-space: nowrap; text-decoration: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-white { padding: 10px 28px; background: #fff; color: #000; }
.btn-white:hover:not(:disabled) { background: #e5e5e5; }
.btn-ghost { padding: 10px 28px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.08); }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.btn-accent { padding: 10px 28px; background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-light); }
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.15); padding: 10px 28px; }
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,0.15); }

/* Hero */
.hero { text-align: center; padding: 120px 48px 64px; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(120,119,198,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 100px; margin-bottom: 28px; }
.hero-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; margin-bottom: 18px; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.4) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 16px; color: var(--text-3); max-width: 420px; margin: 0 auto 36px; line-height: 1.65; }
.hero-btns { display: flex; gap: 10px; justify-content: center; }

/* Dashboard preview */
.dash-wrap { margin: 40px 48px 0; padding: 1px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%); }
.dash { background: var(--bg-card); border-radius: 13px; padding: 16px 18px; }
.dash-bar { display: flex; gap: 5px; margin-bottom: 14px; }
.dash-dot { width: 7px; height: 7px; border-radius: 50%; }

/* Sections */
.section { padding: 64px 48px; }
.sec-label { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.sec-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
.sec-desc { font-size: 14px; color: var(--text-3); margin-bottom: 36px; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: 14px; overflow: hidden; }
.feat-card { padding: 28px; background: var(--bg); }
.feat-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(255,255,255,0.04); margin-bottom: 14px; font-size: 16px; color: var(--text-2); }
.feat-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.feat-card p { font-size: 13px; color: var(--text-3); line-height: 1.55; }

/* Steps */
.step { display: flex; gap: 16px; align-items: start; padding: 20px 0; }
.step-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-bg); color: var(--accent); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.step h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.step p { font-size: 13px; color: var(--text-3); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border-radius: 14px; overflow: hidden; }
.price-card { padding: 28px; background: var(--bg); display: flex; flex-direction: column; }
.price-card.featured { background: #050510; }
.price-pop { font-size: 10px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.price-tier { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.price-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 2px; }
.price-amount span { font-size: 14px; font-weight: 400; color: var(--text-3); }
.price-desc { font-size: 13px; color: var(--text-3); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.price-features { list-style: none; flex: 1; margin-bottom: 20px; }
.price-features li { font-size: 13px; color: var(--text-2); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: '\2713'; font-size: 12px; font-weight: 600; }
.price-card:not(.featured) .price-features li::before { color: rgba(255,255,255,0.15); }
.price-card.featured .price-features li::before { color: var(--accent); }

/* CTA section */
.cta-section { text-align: center; padding: 56px 48px 48px; border-top: 1px solid var(--border); }
.cta-section h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.cta-section p { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }

/* Footer */
.footer { padding: 20px 48px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.15); }
.footer a { color: rgba(255,255,255,0.15); margin-left: 16px; }

/* Auth pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.auth-card .auth-sub { font-size: 14px; color: var(--text-3); margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-2); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 14px; font-size: 14px; color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; transition: border-color 0.15s; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.form-input::placeholder { color: var(--text-3); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.12); color: var(--red); }
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.12); color: var(--green); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 11px; font-weight: 500; border-radius: 4px; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.badge-green { background: rgba(34,197,94,0.1); color: var(--green); }
.badge-green::before { background: var(--green); }
.badge-blue { background: var(--accent-bg); color: var(--accent-light); }
.badge-blue::before { background: var(--accent); }
.badge-yellow { background: rgba(234,179,8,0.1); color: var(--yellow); }
.badge-yellow::before { background: var(--yellow); }
.badge-red { background: rgba(239,68,68,0.1); color: var(--red); }
.badge-red::before { background: var(--red); }
.badge-gray { background: rgba(255,255,255,0.05); color: var(--text-2); }
.badge-gray::before { background: var(--text-3); }

/* Dashboard layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: var(--bg-card); border-right: 1px solid var(--border); position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; }
.sidebar-logo { padding: 18px 20px; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; border-bottom: 1px solid var(--border); }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: all 0.15s; border-left: 2px solid transparent; }
.sidebar-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.sidebar-item.active { color: var(--text); background: rgba(255,255,255,0.04); border-left-color: var(--accent); }
.sidebar-footer { padding: 14px 20px; border-top: 1px solid var(--border); }
.sidebar-email { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 8px; }
.main { flex: 1; margin-left: 220px; padding: 32px 40px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.page-desc { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 28px; }
.stat-card { background: rgba(255,255,255,0.025); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-label { font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* Table */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
td { padding: 10px 14px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }

/* Card */
.card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.card-desc { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }

/* Settings row */
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.settings-info h4 { font-size: 14px; font-weight: 500; }
.settings-info p { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* Toggle */
.toggle { position: relative; width: 36px; height: 20px; border-radius: 10px; background: rgba(255,255,255,0.15); cursor: pointer; transition: background 0.15s; flex-shrink: 0; }
.toggle.on { background: var(--accent); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.toggle.on::after { transform: translateX(16px); }

/* Tabs */
.tabs { display: flex; gap: 2px; padding: 2px; background: rgba(255,255,255,0.04); border-radius: 8px; margin-bottom: 24px; width: fit-content; }
.tab { padding: 7px 16px; font-size: 13px; font-weight: 500; color: var(--text-3); border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.tab.active { background: rgba(255,255,255,0.08); color: var(--text); }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; }
.empty h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.empty p { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 24px; }
.modal { background: #111; border: 1px solid var(--border-strong); border-radius: 14px; padding: 28px; max-width: 440px; width: 100%; }
.modal h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* Loading */
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.hidden { display: none !important; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* Mobile */
@media (max-width: 768px) {
  .container, .nav-inner { padding: 0 20px; }
  .hero { padding: 100px 20px 48px; }
  .section { padding: 48px 20px; }
  .dash-wrap { margin: 32px 20px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-section { padding: 48px 20px; }
  .footer { padding: 16px 20px; flex-direction: column; gap: 8px; text-align: center; }

  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: rgba(0,0,0,0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 12px; }
  .nav-links.open { display: flex; }
  .nav-menu-btn { display: block; }

  .sidebar { display: none; }
  .sidebar.mobile-open { display: flex; position: fixed; z-index: 200; width: 260px; }
  .main { margin-left: 0; padding: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .mobile-menu-btn { display: block; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

/* Legal pages */
.legal h2 { font-size: 16px; font-weight: 600; color: #fff; margin: 28px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 14px; line-height: 1.7; color: var(--text-2); margin-bottom: 8px; }
.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal a { color: var(--accent-light); text-decoration: underline; }
