/* InnovexOS Landing Page Theme */
:root {
  --bg: #0a0a0f;
  --surface: #111119;
  --surface-2: #1a1a26;
  --border: #1e1e2e;
  --accent: #00E5FF;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --text: #e8e8f0;
  --text-dim: #6b6b85;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 48px 64px;
  min-height: 600px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-lede {
  font-size: 1.0625rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 40px;
}
.hero-grid-badge {
  display: inline-block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.grid-art { display: block; width: 200px; height: 120px; }

/* Card Stack */
.hero-card-stack {
  position: relative;
  height: 420px;
}
.stack-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(8px);
}
.stack-card-1 {
  width: 260px;
  top: 0;
  left: 20px;
  z-index: 1;
}
.stack-card-2 {
  width: 240px;
  top: 130px;
  right: 0;
  z-index: 2;
}
.stack-card-3 {
  width: 220px;
  bottom: 0;
  left: 60px;
  z-index: 3;
}
.card-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.card-bar-group { display: flex; flex-direction: column; gap: 8px; }
.card-bar-row { display: flex; align-items: center; gap: 8px; }
.card-bar-label { font-size: 0.7rem; color: var(--text-dim); width: 100px; flex-shrink: 0; }
.card-bar { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; }
.card-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.card-bar-fill.low { background: #00E5FF40; }
.card-badge {
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}
.creative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.creative-thumb {
  height: 48px;
  border-radius: 6px;
}
.ops-stat { display: flex; flex-direction: column; gap: 4px; }
.ops-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.ops-desc { font-size: 0.75rem; color: var(--text-dim); }

/* Stats */
.stats-section { padding: 0 48px; }
.stats-rule { height: 1px; background: var(--border); margin-bottom: 48px; }
.stats-grid { display: flex; align-items: center; justify-content: center; gap: 0; }
.stat-item { flex: 1; text-align: center; padding: 0 40px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-desc { font-size: 0.875rem; color: var(--text-dim); line-height: 1.5; }
.stat-divider { width: 1px; height: 60px; background: var(--border); flex-shrink: 0; }

/* Features */
.features {
  padding: 80px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.feature-card {
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent-dim); }
.feature-icon { margin-bottom: 20px; }
.feature-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.feature-body { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

/* How Section */
.how-section { padding: 80px 48px; }
.how-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.how-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.how-body { font-size: 0.9375rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 32px; }
.how-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.how-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--text-dim); }
.cycle-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  padding: 40px 0;
}
.cycle-node { text-align: center; }
.cycle-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-1 { box-shadow: 0 0 16px rgba(0, 229, 255, 0.25); }
.ring-2 { box-shadow: 0 0 16px rgba(0, 229, 255, 0.15); opacity: 0.8; }
.ring-3 { box-shadow: 0 0 16px rgba(0, 229, 255, 0.1); opacity: 0.6; }
.cycle-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-dim); }
.cycle-arrow { display: flex; align-items: center; }
.cycle-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}
.cycle-core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cycle-center-label { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }

/* Closing */
.closing { padding: 80px 48px 100px; }
.closing-inner { position: relative; }
.closing-rule { height: 1px; background: var(--border); margin-bottom: 64px; }
.closing-content { position: relative; }
.closing-grid-bg {
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.closing-svg { width: 100%; height: 200px; }
.closing-text { position: relative; z-index: 1; max-width: 680px; }
.closing-body {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.footer-tagline { font-size: 0.875rem; color: var(--text-dim); }
.footer-sub { font-size: 0.8125rem; color: var(--text-dim); opacity: 0.5; margin-left: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 32px 48px; }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-inner { grid-template-columns: 1fr; }
  .how-right { display: none; }
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .stats-section, .features, .how-section, .closing { padding-left: 24px; padding-right: 24px; }
  .stats-grid { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }
  .footer-inner { flex-wrap: wrap; }
  .footer-sub { margin-left: 0; }
}
/* ── Dashboard ──────────────────────────────────────────────────────────── */
.dash-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

/* Setup banner */
.setup-banner {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 28px;
}
.setup-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.setup-icon { color: var(--accent); flex-shrink: 0; }
.setup-banner strong { color: var(--text); }
.setup-banner span { color: var(--text-dim); font-size: 0.875rem; }
.setup-banner button { margin-left: auto; }

/* Setup panel */
.setup-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 28px;
}
.setup-panel-inner {}
.setup-sub { font-size: 0.875rem; color: var(--text-dim); margin: 8px 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.form-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus { border-color: var(--accent); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.form-error { font-size: 0.8rem; color: #ff6b6b; }
.hidden { display: none !important; }

/* Error banner */
.error-banner { background: rgba(255, 100, 100, 0.12); border: 1px solid rgba(255, 100, 100, 0.3); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.error-banner-inner { display: flex; align-items: center; gap: 10px; color: #ff8080; font-size: 0.875rem; }

/* KPI row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.kpi-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 10px; }
.kpi-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; }
.kpi-sub { font-size: 0.75rem; color: var(--text-dim); }
.opacity-50 { opacity: 0.45; }

/* Ad spend row */
.ad-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.ad-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.ad-card-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 10px; }
.ad-input-wrap { display: flex; align-items: center; gap: 0; }
.currency-prefix { color: var(--text-dim); font-size: 1rem; padding: 8px 4px 8px 12px; }
.ad-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.ad-input:focus { border-color: var(--accent); }

/* Main grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 20px;
}
.dash-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.dash-panel:last-child { grid-column: 1 / -1; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); }
.panel-tag { font-size: 0.75rem; color: var(--text-dim); background: var(--surface-2); border-radius: 20px; padding: 2px 10px; }
.panel-loader { display: flex; justify-content: center; padding: 20px; }
.panel-empty { text-align: center; color: var(--text-dim); font-size: 0.875rem; padding: 20px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tables */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding: 0 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.dash-table th.text-right { text-align: right; }
.dash-table td { padding: 12px 8px; border-bottom: 1px solid rgba(30, 30, 46, 0.5); vertical-align: middle; font-size: 0.875rem; }
.dash-table tr:last-child td { border-bottom: none; }
.rank-cell { font-weight: 700; color: var(--text-dim); width: 28px; }
.product-name { color: var(--text); font-weight: 500; }
.text-right { text-align: right; }
.revenue-cell { font-weight: 600; color: var(--accent); }

/* Tickets */
.tickets-list { display: flex; flex-direction: column; gap: 2px; }
.ticket-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(30, 30, 46, 0.5); }
.ticket-item:last-child { border-bottom: none; }
.ticket-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ticket-info { flex: 1; min-width: 0; }
.ticket-name { font-size: 0.875rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.ticket-date { font-size: 0.75rem; color: var(--text-dim); flex-shrink: 0; }

/* Fulfillment bar */
.fulfillment-bar-wrap { margin-bottom: 16px; }
.fulfillment-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.fulfillment-seg { height: 100%; transition: width 0.3s; }
.fulfillment-paid { background: #00E5FF; }
.fulfillment-pending { background: #f59e0b; }
.fulfillment-refunded { background: #6366f1; }
.fulfillment-legend { display: flex; gap: 20px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-dim); }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }
.dot-paid { background: #00E5FF; }
.dot-pending { background: #f59e0b; }
.dot-refunded { background: #6366f1; }

/* Updated row */
.updated-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--text-dim); }

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--accent-dim); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 900px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .ad-row { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-panel:last-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .dash-wrap { padding: 20px 20px 60px; }
}
@media (max-width: 600px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .setup-banner-inner { flex-wrap: wrap; }
  .setup-banner button { margin-left: 0; margin-top: 8px; }
}