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

:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --bg-3: #21262d;
  --fg: #e6edf3;
  --fg-muted: #8b949e;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --border: rgba(240, 246, 252, 0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

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

/* === MANIFESTO === */
.manifesto {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.manifesto__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 166, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.manifesto__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 4rem;
  width: 100%;
}

.manifesto__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.manifesto__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.manifesto__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 2rem;
}

.manifesto__sub {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* === STUDIO TOOLS === */
.studio-tools {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
}

.studio-tools__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4rem;
}

.studio-tools__header {
  margin-bottom: 4rem;
}

.studio-tools__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.studio-tools__desc {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
}

.studio-tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tool-card:hover {
  border-color: rgba(245, 166, 35, 0.25);
  transform: translateY(-2px);
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.tool-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === AUTONOMY === */
.autonomy {
  padding: 8rem 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.autonomy__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4rem;
}

.autonomy__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.autonomy__statement {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--fg);
  margin-bottom: 3rem;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.autonomy__word:nth-child(1) { color: var(--accent); }

.autonomy__body p {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 4rem;
}

.autonomy__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.af-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.af-item__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.af-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.af-item p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === LIVEOPS === */
.liveops {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border);
}

.liveops__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4rem;
}

.liveops__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border-radius: 4px;
  padding: 0.3em 0.75em;
  margin-bottom: 2rem;
}

.liveops__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.liveops__desc {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

.liveops__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.liveop {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.liveop__bar {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  width: 100%;
}

.liveop__bar--mid { width: 75%; }
.liveop__bar--short { width: 50%; }

.liveop h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.liveop p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === MANIFESTO CLOSE === */
.manifesto-close {
  padding: 10rem 0;
}

.manifesto-close__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4rem;
}

.manifesto-close__rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 3rem;
}

.manifesto-close__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--fg);
  margin-bottom: 2rem;
}

.manifesto-close__sub {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .manifesto__content,
  .studio-tools__inner,
  .autonomy__inner,
  .liveops__inner,
  .manifesto-close__inner {
    padding: 0 1.5rem;
  }

  .manifesto__content { padding-top: 6rem; padding-bottom: 6rem; }
  .studio-tools { padding: 5rem 0; }
  .autonomy { padding: 5rem 0; }
  .liveops { padding: 5rem 0; }
  .manifesto-close { padding: 6rem 0; }

  .studio-tools__grid,
  .autonomy__features {
    grid-template-columns: 1fr;
  }

  .liveops__grid {
    grid-template-columns: 1fr;
  }

  .manifesto__headline {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .autonomy__statement {
    font-size: clamp(3rem, 14vw, 6rem);
  }
}

/* === DASHBOARD NAV === */
.dash-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.dash-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.dash-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}

.dash-nav__links {
  display: flex;
  gap: 0.25rem;
}

.dash-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.dash-nav__link:hover { color: var(--fg); background: var(--bg-3); }
.dash-nav__link.active { color: var(--accent); background: var(--accent-dim); }

/* === DASHBOARD LAYOUT === */
.dash-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.dash-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 0.4rem;
}

.mock-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 0.15em 0.5em;
  vertical-align: middle;
}

.dash-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.dash-period {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.dash-updated {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* === METRICS GRID === */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.metric-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
}

.metric-delta {
  font-size: 0.8rem;
  font-weight: 500;
}

.metric-delta.up    { color: #3fb950; }
.metric-delta.down  { color: #f85149; }
.metric-delta.neutral { color: var(--fg-muted); }

/* === MAIN GRID === */
.dash-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

/* === PANELS === */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

.panel__meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.panel__legend {
  display: flex;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.iap { background: var(--accent); }
.legend-dot.ads { background: #3fb950; }

/* === REVENUE CHART === */
.chart-area {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  min-width: 0;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.bar-group {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  width: 100%;
}

.bar {
  width: 50%;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: opacity 0.2s;
  cursor: default;
}

.bar:hover { opacity: 0.8; }
.bar.iap { background: var(--accent); }
.bar.ads { background: rgba(63, 185, 80, 0.6); }

.chart-label {
  font-size: 0.65rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.panel__totals {
  display: flex;
  gap: 2rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.total-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.total-item.accent .total-value { color: var(--accent); }

.total-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.total-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
}

/* === LIVEOPS CALENDAR === */
.calendar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cal-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cal-row__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  width: 44px;
  flex-shrink: 0;
}

.cal-row__track {
  flex: 1;
  height: 28px;
  position: relative;
}

.cal-event {
  position: absolute;
  left: 0;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  overflow: hidden;
}

.cal-event__name {
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event.live   { background: var(--accent); }
.cal-event.planned { background: rgba(63, 185, 80, 0.7); }
.cal-event.draft  { background: rgba(139, 148, 158, 0.4); border: 1px dashed rgba(139,148,158,0.4); }
.cal-event.idea   { background: rgba(88, 166, 255, 0.25); border: 1px dashed rgba(88,166,255,0.4); }

.cal-legend {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.cl-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
}

.cl-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.cl-dot.live   { background: var(--accent); }
.cl-dot.planned { background: rgba(63, 185, 80, 0.7); }
.cl-dot.draft  { background: rgba(139, 148, 158, 0.4); }
.cl-dot.idea   { background: rgba(88, 166, 255, 0.4); }

/* === PERF SECTION === */
.perf-section { }

.perf-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
}

.perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.perf-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
}

.perf-card.upcoming { opacity: 0.6; }

.perf-card__thumb {
  flex-shrink: 0;
}

.perf-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.perf-card__body h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.perf-card__status {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.perf-metrics {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.perf-metrics span {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.perf-metrics strong {
  color: var(--fg);
  font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-main { grid-template-columns: 1fr; }
  .panel--wide { order: 1; }
  .panel--narrow { order: 2; }
}

@media (max-width: 768px) {
  .dash-wrap { padding: 2rem 1.5rem 4rem; }
  .dash-nav__inner { padding: 0 1.5rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-grid { grid-template-columns: 1fr; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-header__right { align-items: flex-start; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-value { font-size: 1.4rem; }
}