/* ==========================================
   ORALE — style.css
   War room. Not a brochure.
   ========================================== */

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

/* --- CUSTOM PROPERTIES --- */
:root {
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  /* Dark (default) */
  --bg-primary: #0A0A0F;
  --bg-secondary: #12141C;
  --bg-panel: #161822;
  --text-primary: #F0F2F5;
  --text-secondary: #8B92A5;
  --gold: #F5A623;
  --gold-dim: #C4841A;
  --green: #00D68F;
  --red: #FF4757;
  --border: rgba(255,255,255,0.06);
  --logo-display-dark: block;
  --logo-display-light: none;
}

[data-theme="light"] {
  --bg-primary: #FAFAFA;
  --bg-secondary: #F0F0F0;
  --bg-panel: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --gold: #D4890D;
  --gold-dim: #A66D0A;
  --green: #059669;
  --red: #DC2626;
  --border: rgba(0,0,0,0.08);
  --logo-display-dark: none;
  --logo-display-light: block;
}

/* --- BASE --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- GRAIN --- */
.grain {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* --- UTILITY --- */
.dark-only { display: var(--logo-display-dark); }
.light-only { display: var(--logo-display-light); }

.text-gold { color: var(--gold); }
.gold-gradient {
  background: linear-gradient(135deg, #F5A623 0%, #FFD700 40%, #F5A623 70%, #E8961E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .gold-gradient {
  background: linear-gradient(135deg, #D4890D 0%, #E8A020 40%, #D4890D 70%, #B8760B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.num-inline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: -0.02em;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(0.4);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 75%);
}
[data-theme="light"] .hero-bg-img {
  opacity: 0.08;
  filter: saturate(0.2) invert(1);
}

.hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  padding: 2rem;
}

.hero-logo-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 1.5rem;
  line-height: 1.1;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #0A0A0F;
  background: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,166,35,0.3);
}
.cta-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.hero-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* Hero — instant, no fade */
.anim-hero {
  opacity: 1;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================
   PITCH
   ========================================== */
.pitch {
  padding: 8rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pitch-lead {
  margin-bottom: 4rem;
}

.num-huge {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.pitch-stat-label {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.pitch-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.pitch-body p:last-child { margin-bottom: 0; }

/* ==========================================
   PROOF — TERMINAL
   ========================================== */
.proof {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}
.proof-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 3rem;
}

.terminal {
  background: #0D0D14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
[data-theme="light"] .terminal {
  background: #1A1A2E;
  border-color: rgba(0,0,0,0.15);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.terminal-dot:first-child { background: #FF5F57; }
.terminal-dot:nth-child(2) { background: #FEBC2E; }
.terminal-dot:nth-child(3) { background: #28C840; }
.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #C8CCD8;
  overflow-x: auto;
}

.terminal-line {
  white-space: pre;
  min-height: 1.9em;
}

/* Terminal lines — instant */
.tl-type {
  opacity: 1;
}

.t-dim { color: rgba(255,255,255,0.35); }
.t-gold { color: #F5A623; font-weight: 600; }
.t-green { color: #00D68F; }
.t-bright { color: #FFFFFF; font-weight: 700; }

.terminal-cursor {
  display: inline-block;
  animation: cursorBlink 1s step-end infinite;
  color: var(--gold);
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ==========================================
   METHOD — HOW IT WORKS
   ========================================== */
.method {
  padding: 8rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.method-stack {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.method-word {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

.method-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.method-converge {
  margin-top: 5rem;
  text-align: center;
}

.method-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 2rem;
}
.method-arrow span {
  display: block;
  width: 2px;
  height: 16px;
  background: var(--gold);
  opacity: 0.4;
}
.method-arrow span:nth-child(2) { opacity: 0.6; }
.method-arrow span:nth-child(3) { opacity: 1; }

.method-execute {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #F5A623, #FFD700, #F5A623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .method-execute {
  background: linear-gradient(135deg, #D4890D, #E8A020, #D4890D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   ACCESS
   ========================================== */
.access {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  text-align: center;
}
.access-inner {
  max-width: 600px;
  margin: 0 auto;
}

.access-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.access-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.access-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #0088cc;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.access-tg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,136,204,0.3);
}
.tg-icon { flex-shrink: 0; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
  .hero-logo-img { max-width: 280px; }
  .pitch { padding: 5rem 1.5rem; }
  .proof { padding: 4rem 1.5rem; }
  .method { padding: 5rem 1.5rem; }
  .method-stack { gap: 3rem; }
  .terminal-body { font-size: 0.7rem; padding: 1rem; }
  .access { padding: 4rem 1.5rem; }
}
