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

:root {
  --bg: #08080e;
  --bg-2: #0e0e1a;
  --bg-card: #12121f;
  --bg-card-hover: #161628;
  --border: #1e1e30;
  --text-primary: #f0f0f8;
  --text-secondary: #8888aa;
  --text-muted: #55556a;
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.35);
  --accent-warm: #f59e0b;
  --good: #22c55e;
  --ok: #eab308;
  --great: #6366f1;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

/* ─── NAVBAR ────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8,8,14,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

/* ─── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 56px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
}

/* ─── INTERFACE CARD (CSS-only mockup) ─────────────────────────────── */
.hero-right {
  display: flex;
  justify-content: center;
}
.interface-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(99,102,241,0.1), 0 20px 60px rgba(0,0,0,0.5);
}
.interface-topbar {
  background: #0a0a14;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.interface-dots {
  display: flex;
  gap: 0.4rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.interface-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.interface-body { display: flex; height: 320px; }

/* Sidebar */
.dash-sidebar {
  width: 120px;
  background: #0a0a14;
  border-right: 1px solid var(--border);
  padding: 1rem 0;
  flex-shrink: 0;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
}
.sidebar-item.active {
  color: var(--accent);
  background: rgba(99,102,241,0.08);
  border-left: 2px solid var(--accent);
}
.sidebar-icon { width: 14px; display: flex; }

/* Main area */
.dash-main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.dash-greeting {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}
.dash-channel {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px;
  padding: 0.2rem 0.5rem;
  font-size: 0.6rem;
  color: var(--good);
}
.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--good);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.dash-stats {
  display: flex;
  gap: 0.5rem;
}
.stat-mini {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
}
.stat-val {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--good);
  font-family: var(--font-display);
}
.stat-label {
  display: block;
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}
.dash-thumbnail-row {
  display: flex;
  gap: 0.5rem;
}
.thumb-card { flex: 1; }
.thumb-preview {
  height: 52px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.thumb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3rem;
}
.thumb-score {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}
.thumb-score.good { background: rgba(34,197,94,0.1); color: var(--good); }
.thumb-score.ok { background: rgba(234,179,8,0.1); color: var(--ok); }
.thumb-score.great { background: rgba(99,102,241,0.1); color: var(--accent); }
.thumb-ago { font-size: 0.5rem; color: var(--text-muted); }

.dash-seo { flex: 1; }
.seo-label { font-size: 0.6rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.seo-bar {
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
}
.seo-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  border-radius: 2px;
}
.seo-keyword {
  font-size: 0.55rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* ─── FEATURES ──────────────────────────────────────────────────────── */
.features {
  padding: 7rem 2rem;
  background: var(--bg);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 600px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── METRICS ───────────────────────────────────────────────────────── */
.metrics {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric { text-align: center; }
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}
.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 140px;
}
.metric-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ─── CLOSING ──────────────────────────────────────────────────────── */
.closing {
  padding: 8rem 2rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}
.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ─── ORBIT ────────────────────────────────────────────────────────── */
.closing-visual { position: relative; }
.orbit-ring {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-center {
  width: 64px;
  height: 64px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.2); }
  50% { box-shadow: 0 0 0 16px rgba(99,102,241,0); }
}
.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.orbit-1 {
  top: 0; left: 50%; transform: translateX(-50%);
  animation: orbit 4s linear infinite;
}
.orbit-2 {
  bottom: 0; right: 0;
  animation: orbit 6s linear infinite reverse;
}
.orbit-3 {
  top: 50%; right: 0; transform: translateY(-50%);
  animation: orbit 5s linear infinite;
}
@keyframes orbit {
  0% { transform: rotate(0deg) translateX(0); }
  25% { transform: rotate(90deg) translateX(10px); }
  50% { transform: rotate(180deg) translateX(0); }
  75% { transform: rotate(270deg) translateX(-10px); }
  100% { transform: rotate(360deg) translateX(0); }
}

/* ─── FOOTER ───────────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.footer-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-left { order: 1; }
  .hero-right { order: 2; }
  .hero-sub { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .closing-inner { grid-template-columns: 1fr; }
  .closing-visual { display: none; }
  .metrics-inner { flex-wrap: wrap; gap: 2rem; }
  .metric-divider { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .metric { flex: 1 0 40%; }
  .footer-inner { flex-direction: column; gap: 0.75rem; }
}