/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #08080e;
  --bg-card:     rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(255,255,255,0.15);
  --text:        #e8e8f0;
  --muted:       #6b6b80;
  --blue:        #0A9EFA;
  --purple:      #B913C8;
  --red:         #D44040;
  --emblem:      #B913C8;
  --data:        #D44040;
  --cast:        #13C819;
  --grad-suite:  linear-gradient(135deg, #FF7700 0%, #FF0084 100%);
  --radius:      14px;
  --radius-sm:   8px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* ── Nav ──────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(8,8,14,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.nav-brand span {
  font-size: 17px;
  font-weight: 700;
  background: var(--grad-suite);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--bg-card);
}
.btn-primary {
  background: var(--grad-suite);
  color: #fff;
  border: none;
}
.btn-primary:hover { opacity: 0.88; }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-outline:hover { background: rgba(10,158,250,0.1); }
.btn-danger {
  background: rgba(255,51,85,0.12);
  color: #ff3355;
  border: 1px solid #ff3355;
}
.btn-danger:hover { background: rgba(255,51,85,0.2); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn-google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(0,0,0,0.12);
  gap: 10px;
  font-weight: 600;
}
.btn-google:hover { background: #f5f5f5; }
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Sections ─────────────────────────────────────────────────────── */
section { padding: 96px 48px; }
.container { max-width: 1100px; margin: 0 auto; }

/* ── Hero ─────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-h) + 64px);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,19,200,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,158,250,0.1) 0%, transparent 70%);
  top: 50%;
  left: 30%;
  transform: translate(-50%, -40%);
  pointer-events: none;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 0 60px rgba(185,19,200,0.3), 0 0 120px rgba(10,158,250,0.15);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: var(--grad-suite);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Products ─────────────────────────────────────────────────────── */
#products { background: rgba(255,255,255,0.015); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 52px;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.7;
}
.product-card.emblem::before { background: var(--emblem); }
.product-card.data::before   { background: var(--data); }
.product-card.cast::before   { background: var(--cast); }
.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
}
.product-card.emblem .product-icon { background: rgba(185,19,200,0.2); color: #d584fd; }
.product-card.data   .product-icon { background: rgba(212,64,64,0.2);  color: #D44040; }
.product-card.cast   .product-icon { background: rgba(19,200,25,0.15); color: #13C819; }

.product-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.product-card.emblem .product-name { color: #d584fd; }
.product-card.data   .product-name { color: var(--data); }
.product-card.cast   .product-name { color: #13C819; }

.product-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.25s;
}
.pricing-card.featured {
  border-color: rgba(10,158,250,0.35);
  background: rgba(10,158,250,0.05);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grad-suite);
  color: #fff;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.plan-price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}
.plan-features li {
  font-size: 14px;
  color: var(--text);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  background: rgba(10,158,250,0.15);
  color: var(--blue);
}
.plan-features li .muted-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}

/* ── Auth Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #12121c;
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  transform: translateY(12px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.modal-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.modal-logo span {
  font-size: 15px;
  font-weight: 700;
  background: var(--grad-suite);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  gap: 24px;
}
.modal-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
}
.modal-tab.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── Forms ────────────────────────────────────────────────────────── */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus {
  border-color: var(--blue);
  background: rgba(10,158,250,0.05);
}
.field input::placeholder { color: var(--muted); }

.form-error {
  font-size: 13px;
  color: #ff5566;
  margin-top: -8px;
  margin-bottom: 12px;
}
.form-success {
  font-size: 13px;
  color: #4ade80;
  margin-top: -8px;
  margin-bottom: 12px;
}

/* ── Dashboard ────────────────────────────────────────────────────── */
#dashboard {
  display: none;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 48px);
}

.dash-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: var(--font);
  width: 100%;
  text-align: left;
}
.dash-nav-item:hover { background: var(--bg-card); color: var(--text); }
.dash-nav-item.active { background: var(--bg-card); color: var(--text); }
.dash-nav-item .icon { font-size: 16px; opacity: 0.7; }

.dash-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.dash-panel-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* License card */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.license-badge.active {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
}
.license-badge.expired {
  background: rgba(255,51,85,0.12);
  color: #ff5566;
  border: 1px solid rgba(255,51,85,0.25);
}
.license-badge.none {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

.license-plan-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.license-detail {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.license-apps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.license-app-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Devices table */
.devices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.device-info { display: flex; flex-direction: column; gap: 2px; }
.device-name { font-size: 14px; font-weight: 600; }
.device-last { font-size: 12px; color: var(--muted); }

/* Account settings */
.settings-section {
  margin-bottom: 28px;
}
.settings-section:last-child { margin-bottom: 0; }
.settings-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.settings-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.settings-row .field { flex: 1; margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand span {
  font-size: 14px;
  font-weight: 700;
  background: var(--grad-suite);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
footer p {
  font-size: 13px;
  color: var(--muted);
}

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1e1e2e;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  max-width: 320px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-color: rgba(74,222,128,0.3); }
.toast.error   { border-color: rgba(255,85,102,0.3); }

/* ── Spinner ──────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ──────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  section { padding: 72px 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-sidebar { flex-direction: row; flex-wrap: wrap; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}
