/* ====================
   FRAMEFORGE THEME
   ==================== */

:root {
  --bg: #060810;
  --fg: #e8e8ed;
  --accent: #ff5722;
  --accent-dim: #cc3d10;
  --muted: #6b6b7a;
  --surface: #0d0f1a;
  --border: #1a1d2e;
  --code-bg: #0a0c16;
  --code-key: #ff8a65;
  --code-str: #81d4fa;
  --code-kw: #ce93d8;
  --code-fn: #a5d6a7;
  --code-comment: #555a6e;
  --code-status: #4caf50;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ====== NAV ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.nav-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 100px clamp(1.5rem, 5vw, 4rem) 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 87, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 87, 34, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
}

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

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.hero-title-top {
  display: block;
  color: var(--fg);
}

.hero-title-bot {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(255, 87, 34, 0.4);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* ===== FRAME STACK ===== */
.frame-stack {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
}

.frame-card {
  width: 72px;
  height: 90px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.frame-card-1 { transform: perspective(400px) rotateY(-12deg); z-index: 1; border-color: var(--accent-dim); }
.frame-card-2 { transform: translateX(-12px) perspective(400px) rotateY(-8deg); z-index: 2; }
.frame-card-3 { transform: translateX(-24px) perspective(400px) rotateY(-4deg); z-index: 3; }

.frame-inner {
  width: 44px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  opacity: 0.6;
}

.frame-card-1 .frame-inner { background: linear-gradient(135deg, #fff 0%, #ccc 100%); opacity: 0.3; }
.frame-card-3 .frame-inner { background: linear-gradient(135deg, var(--accent) 0%, #ff8a65 100%); opacity: 0.8; }

.frame-label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ===== CODE WINDOW ===== */
.code-window {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(255, 87, 34, 0.06);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-title {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.1em;
}

.code-body {
  padding: 20px 24px;
  line-height: 1.8;
  color: var(--fg);
}

.code-line { display: flex; align-items: baseline; }
.code-indent-1 { padding-left: 1.5rem; }
.code-blank { height: 0.5rem; }

.kw { color: var(--code-kw); }
.key { color: var(--code-key); }
.str { color: var(--code-str); }
.fn { color: var(--code-fn); }
.comment { color: var(--code-comment); font-style: italic; }
.status { color: var(--muted); }
.live { color: var(--code-status); font-weight: 600; }

.hero-cta-btn {
  display: block;
  margin: 20px 24px 24px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.hero-cta-btn:hover { background: var(--accent-dim); }

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 120px clamp(1.5rem, 5vw, 4rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.manifesto-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 600;
}

.manifesto-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 3rem;
}

.manifesto-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 3rem;
}

.manifesto-body {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ===== PROCESS ===== */
.process {
  padding: 120px clamp(1.5rem, 5vw, 4rem);
}

.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.process-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  font-weight: 600;
}

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

.process-card {
  padding: 48px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s;
}

.process-card:hover {
  border-color: var(--accent-dim);
}

.process-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: rgba(255, 87, 34, 0.08);
  position: absolute;
  top: 24px;
  right: 24px;
  line-height: 1;
}

.process-icon {
  margin-bottom: 2rem;
}

.process-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.process-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== OUTCOMES ===== */
.outcomes {
  padding: 120px clamp(1.5rem, 5vw, 4rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.outcomes-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  font-weight: 600;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 4rem;
}

.outcome-card {
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.outcome-stat {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.outcome-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.outcome-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}

.outcomes-quote {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.outcomes-quote blockquote {
  font-size: 1.3rem;
  color: var(--fg);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.outcomes-quote cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.1em;
}

/* ===== CLOSING ===== */
.closing {
  padding: 140px clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 87, 34, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.closing-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.closing-divider {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 auto 2rem;
}

.closing-fine {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.footer-links {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-sep { color: var(--border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right { order: -1; }
  .code-window { max-width: 400px; }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3.5rem; }
  .frame-stack { gap: 4px; }
  .frame-card { width: 58px; height: 74px; }
  .frame-inner { width: 36px; height: 24px; }
}

/* ===== ANIMATIONS ===== */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.15; }
}

.hero-glow {
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.manifesto-text, .closing-headline {
  animation: fadeUp 0.8s ease-out both;
}