/* ==========================================
   RECAST — Custom Theme
   ========================================== */

:root {
  --bg: #0f0e17;
  --bg-surface: #1a1a2e;
  --bg-elevated: #252542;
  --text: #faf6f0;
  --text-muted: #9a95ad;
  --accent: #6c63ff;
  --accent-dim: rgba(108, 99, 255, 0.15);
  --accent-glow: rgba(108, 99, 255, 0.3);
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(108,99,255,0.12) 0%, transparent 70%),
    var(--bg);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 20px;
  max-width: 480px;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  background: var(--accent-dim);
}

/* Pipeline Visual */
.pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 24px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid rgba(108,99,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.04em;
}

.pipeline-arrow {
  padding: 0 4px;
  margin-top: -12px;
}

/* Asset Previews */
.asset-previews {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.asset-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
}

.asset-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.asset-lines { display: flex; flex-direction: column; gap: 5px; }
.line { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.line.long { width: 90%; }
.line.medium { width: 70%; }
.line.short { width: 55%; }

.asset-tweets { display: flex; flex-direction: column; gap: 5px; }
.tweet-line { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.tweet-line:nth-child(1) { width: 85%; }
.tweet-line:nth-child(2) { width: 75%; }
.tweet-line:nth-child(3) { width: 80%; }

.asset-posts { display: flex; gap: 5px; }
.post-chip { width: 20px; height: 20px; border-radius: 4px; background: rgba(108,99,255,0.3); border: 1px solid rgba(108,99,255,0.4); }

/* ---- SECTION SHARED ---- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 48px;
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-surface);
}

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

.step-card {
  padding: 32px 28px;
  background: var(--bg-elevated);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  transition: border-color 0.3s ease;
}

.step-card:hover {
  border-color: rgba(108,99,255,0.3);
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ---- OUTPUTS ---- */
.outputs {
  padding: 100px 0;
  background: var(--bg);
}

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

.output-card {
  padding: 28px 24px;
  background: var(--bg-surface);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.output-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.3);
}

.output-icon {
  margin-bottom: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
}

.output-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.output-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ---- THE LOOP ---- */
.the-loop {
  padding: 100px 0;
  background: var(--bg-surface);
}

.loop-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.loop-text h2 {
  margin-bottom: 24px;
}

.loop-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
  font-weight: 300;
}

/* Orbit Visual */
.loop-visual {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(108,99,255,0.25);
  border-radius: 50%;
}

.ring-outer {
  width: 280px;
  height: 280px;
}

.orbit-center {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--bg-elevated);
  border: 1px solid rgba(108,99,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px var(--accent-glow);
}

.orbit-node {
  position: absolute;
  width: 90px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%) translateY(-18px); }
.node-2 { right: 0; top: 50%; transform: translateY(-50%) translateX(18px); }
.node-3 { bottom: 0; left: 50%; transform: translateX(-50%) translateY(18px); }
.node-4 { left: 0; top: 50%; transform: translateY(-50%) translateX(-18px); }

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 120px 0;
  background: var(--bg);
}

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

.manifesto blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
  margin-bottom: 28px;
}

.manifesto-attr {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ---- FOOTER ---- */
footer {
  padding: 48px 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  font-style: italic;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner,
  .steps-grid,
  .outputs-grid,
  .loop-inner { grid-template-columns: 1fr; }
  .hero { padding: 60px 24px 40px; }
  .hero-right { display: none; }
  .outputs-grid { grid-template-columns: 1fr 1fr; }
  .loop-visual { display: none; }
  .section-inner,
  .footer-inner { padding: 0 24px; }
  .footer-note { display: none; }
}

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