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

:root {
  --bg: #0f1117;
  --surface: #1a1d2e;
  --border: #2a2d3e;
  --primary: #6c63ff;
  --primary-hover: #5a52e0;
  --text: #e2e8f0;
  --muted: #8892a4;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
}

body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 100; }
nav .logo { font-weight: 700; font-size: 1.25rem; color: var(--text); }
nav .logo span { color: var(--primary); }
nav .links { display: flex; gap: 1.5rem; align-items: center; }
nav .links a { color: var(--muted); font-size: .9rem; }
nav .links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1.25rem; border-radius: 8px; font-size: .9rem; font-weight: 500; border: none; cursor: pointer; transition: background .15s, opacity .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .85; }
.btn-sm { padding: .35rem .85rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .65rem .9rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: .9rem; outline: none; transition: border .15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }
.form-error { color: var(--danger); font-size: .8rem; margin-top: .35rem; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th { text-align: left; color: var(--muted); padding: .6rem 1rem; border-bottom: 1px solid var(--border); font-weight: 500; }
tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }

/* Badge */
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 20px; font-size: .75rem; font-weight: 500; }
.badge-green { background: rgba(34,197,94,.15); color: var(--success); }
.badge-red { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-yellow { background: rgba(245,158,11,.15); color: var(--warning); }
.badge-purple { background: rgba(108,99,255,.15); color: var(--primary); }

/* Alert */
.alert { padding: .75rem 1rem; border-radius: 8px; font-size: .875rem; margin-bottom: 1rem; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: var(--success); }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--danger); }

/* Auth page */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.auth-box p { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* Dashboard layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: var(--surface); border-right: 1px solid var(--border); padding: 1.5rem 1rem; flex-shrink: 0; }
.sidebar .brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 1.5rem; padding: 0 .5rem; }
.sidebar .brand span { color: var(--primary); }
.sidebar nav { display: block; padding: 0; border-bottom: none; position: static; background: none; }
.sidebar nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 8px; color: var(--muted); font-size: .875rem; margin-bottom: .25rem; transition: all .15s; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(108,99,255,.1); color: var(--text); text-decoration: none; }
.sidebar nav a.active { color: var(--primary); }
.main { flex: 1; padding: 2rem; overflow: auto; }
.main h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }

/* Hero */
.hero { text-align: center; padding: 5rem 1rem 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
.hero .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Pricing */
.section { padding: 4rem 1rem; max-width: 1000px; margin: 0 auto; }
.section h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.section .sub { color: var(--muted); margin-bottom: 2rem; }
.pricing-table { overflow-x: auto; }
.pricing-table table { min-width: 640px; }
.pricing-table thead th { text-align: center; background: var(--surface); padding: 1rem; }
.pricing-table thead th:first-child { text-align: left; }
.pricing-table tbody td { text-align: center; padding: .85rem 1rem; }
.pricing-table tbody td:first-child { text-align: left; font-weight: 500; }
.price { font-weight: 700; color: var(--primary); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step { padding: 1.5rem; border: 1px solid var(--border); border-radius: 12px; }
.step .num { width: 36px; height: 36px; background: rgba(108,99,255,.15); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 1rem; }
.step h3 { font-size: 1rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .875rem; }

/* Code block */
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; font-size: .85rem; overflow-x: auto; margin: .5rem 0; color: #a5b4fc; }

/* Contact */
.contact-bar { background: rgba(108,99,255,.08); border: 1px solid rgba(108,99,255,.2); border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.contact-bar p { color: var(--muted); font-size: .9rem; flex: 1; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 1.5rem 2rem; color: var(--muted); font-size: .8rem; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 1rem; }
  .sidebar nav { display: flex; gap: .5rem; overflow-x: auto; }
  .sidebar nav a { white-space: nowrap; }
  .main { padding: 1rem; }
}
