/* =========================================
   PLAYFRAME — Theme CSS
   ========================================= */

:root {
  --bg: #060C1A;
  --bg-card: #0A1428;
  --fg: #F0F4FF;
  --fg-muted: #7A8BA8;
  --accent: #FF4D1C;
  --accent-dim: rgba(255, 77, 28, 0.15);
  --border: rgba(240, 244, 255, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255,77,28,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,77,28,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.85;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-title-line1 {
  display: block;
  font-size: clamp(80px, 10vw, 160px);
  color: var(--fg);
}

.hero-title-line2 {
  display: block;
  font-size: clamp(80px, 10vw, 160px);
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--fg-muted);
  max-width: 420px;
  line-height: 1.7;
}

/* ---- COURT VIZ ---- */
.hero-right {
  position: relative;
}

.court-viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.85;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 40px;
}

.court-lines {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.court-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border: 1.5px solid var(--fg);
  border-radius: 4px;
}

.court-mid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  height: 35%;
  border: 1.5px solid var(--fg);
  border-radius: 4px;
}

.court-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--fg);
}

.court-arc {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  border-left-color: transparent;
}

/* ---- CLIP CARDS ---- */
.clip-card {
  position: absolute;
  background: #0D1F38;
  border: 1px solid rgba(255,77,28,0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
  top: 16%;
  right: 8%;
  width: 140px;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 20%;
  width: 130px;
  transform: translateY(-50%);
  animation-delay: 1.2s;
}

.card-3 {
  bottom: 20%;
  right: 6%;
  width: 145px;
  animation-delay: 0.6s;
}

.clip-thumb {
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
}

.thumb-1 {
  background: linear-gradient(135deg, #1a3a6e 0%, #2a5a9e 50%, #0a1a3a 100%);
}

.thumb-1::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,77,28,0.3), transparent 60%);
}

.thumb-2 {
  background: linear-gradient(135deg, #1a2a4e 0%, #2a4a7e 50%, #0a1a3a 100%);
}

.thumb-2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(255,77,28,0.25), transparent 60%);
}

.thumb-3 {
  background: linear-gradient(135deg, #0f2040 0%, #1f4070 50%, #081830 100%);
}

.thumb-3::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 50%, rgba(255,77,28,0.2), transparent 60%);
}

.clip-meta {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clip-tag {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 2px;
}

.clip-time {
  font-size: 10px;
  color: var(--fg-muted);
}

/* ---- STATUS BAR ---- */
.status-bar {
  position: absolute;
  bottom: 24px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #080F20 50%, var(--bg) 100%);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-text {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--fg-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---- WORKFLOW ---- */
.workflow {
  padding: 100px 48px;
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 36px;
  flex-shrink: 0;
}

/* ---- THE AGENT ---- */
.the-agent {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.agent-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.agent-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.agent-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.8;
}

.agent-traits {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trait {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trait-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.trait-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.trait-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---- OUTCOMES ---- */
.outcomes {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #081020 100%);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.outcome {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.outcome-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.outcome-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-line {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ---- FOOTER ---- */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--fg);
}

.footer-tag {
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    padding: 60px 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right {
    display: none;
  }

  .agent-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-steps {
    flex-direction: column;
  }

  .step-connector {
    display: none;
  }

  .manifesto, .workflow, .the-agent, .outcomes, .closing {
    padding: 60px 24px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 24px;
  }
}

@media (max-width: 500px) {
  .outcomes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .outcome {
    padding: 24px 16px;
  }
}
