/* ═══════════════════════════════════════════════════════
   GhostTrader — Trading Operating System
   Website Stylesheet
   Created: 2026-06-09
   ═══════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ─────────────────────────────────── */
:root {
  --bg:           #070707;
  --bg2:          #0c0c0c;
  --bg3:          #111111;
  --card:         #0d0d0d;
  --card-hover:   #141414;

  --gold:         #C6952A;
  --gold-light:   #E2B048;
  --gold-dim:     rgba(198, 149, 42, 0.15);
  --gold-border:  rgba(198, 149, 42, 0.25);

  --teal:         #14B8A6;
  --live:         #22C55E;
  --live-dim:     rgba(34, 197, 94, 0.12);

  --text:         #FAFAFA;
  --text2:        #888888;
  --text3:        #444444;

  --border:       rgba(255, 255, 255, 0.05);
  --border2:      rgba(255, 255, 255, 0.08);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;

  --transition:   0.25s ease;
  --transition-slow: 0.45s ease;

  --container:    1200px;
  --gutter:       clamp(20px, 5vw, 60px);
}

/* ── 2. Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input { font: inherit; }

/* ── 3. Base ───────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text2);
  font-size: 17px;
  line-height: 1.7;
}

/* ── 4. Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn-gold {
  background: var(--gold);
  color: #000;
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(198, 149, 42, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* ── 5. Status Badges ──────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-live {
  background: var(--live-dim);
  color: var(--live);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: livePulse 1.8s ease-in-out infinite;
}

.status-soon {
  background: rgba(255,255,255,0.04);
  color: var(--text3);
  border: 1px solid var(--border);
}

.status-private {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* ── 6. Navigation ─────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

#nav.scrolled {
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--gold);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 8px; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── 7. Hero ───────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(198, 149, 42, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(198, 149, 42, 0.04) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content .eyebrow { margin-bottom: 24px; }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--live);
  border-radius: 50%;
  animation: livePulse 1.8s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.05;
}

.headline-accent { color: var(--gold); }

.hero-body {
  color: var(--text2);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── 8. Terminal ───────────────────────────────────────── */
.terminal {
  background: #080808;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(198, 149, 42, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.t-dots { display: flex; gap: 6px; }
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-red    { background: #FF5F57; }
.t-yellow { background: #FEBC2E; }
.t-green  { background: #28C840; }

.t-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  margin-left: 4px;
}

.terminal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t-row {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: rowAppear 0.4s ease forwards;
  animation-delay: var(--d, 0s);
}

.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text3);
}

.t-progress {
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.t-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 2px;
  width: 0%;
  animation: fillBar 0.6s ease-out forwards;
  animation-delay: var(--d, 0s);
}

.t-bar-pulse {
  animation: fillBar 0.6s ease-out forwards, barPulse 1.2s ease-in-out infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.6s);
}

.t-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: right;
}

.t-status.gold    { color: var(--gold); }
.t-status.ok      { color: var(--live); }
.t-status.routing { color: var(--teal); animation: routingBlink 1s ease-in-out infinite; }

.t-divider {
  height: 1px;
  background: var(--border);
  opacity: 0;
  animation: rowAppear 0.4s ease forwards;
  animation-delay: 2.2s;
}

.t-log {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: rowAppear 0.4s ease forwards;
  animation-delay: var(--d, 0s);
}

.t-ts {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
  flex-shrink: 0;
}

.t-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text2);
}

/* ── 9. Philosophy Bar ─────────────────────────────────── */
.philosophy-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.philosophy-grid {
  display: flex;
  align-items: center;
  gap: 0;
}

.philosophy-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 32px;
}

.ph-icon {
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.ph-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ph-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.philosophy-divider {
  width: 1px;
  height: 60px;
  background: var(--border2);
  flex-shrink: 0;
}

/* ── 10. Products ──────────────────────────────────────── */
.section-products {
  padding: 100px 0;
}

.product-category {
  margin-bottom: 60px;
}

.category-label-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.cat-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.cat-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  flex-shrink: 0;
}

.cat-private {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.cat-public {
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
  border: 1px solid rgba(20, 184, 166, 0.2);
}
.cat-talents {
  background: rgba(139, 92, 246, 0.1);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.product-grid {
  display: grid;
  gap: 16px;
}

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

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(ellipse at top left, var(--gold-dim) 0%, transparent 60%);
}

.product-card:hover {
  border-color: var(--gold-border);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card:hover::before { opacity: 1; }

.card-soon { opacity: 0.75; }
.card-soon:hover { opacity: 1; }

.card-wide { max-width: 600px; margin: 0 auto; width: 100%; }

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pc-icon {
  font-size: 24px;
  color: var(--gold);
  font-family: var(--font-heading);
}
.card-soon .pc-icon { color: var(--text3); }

.pc-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pc-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pc-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── 11. How It Works ──────────────────────────────────── */
.section-flow {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-step {
  padding: 32px 28px;
  position: relative;
  border-right: 1px solid var(--border);
}

.flow-step:last-child {
  border-right: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}

.flow-step h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.flow-step p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

.step-arrow {
  position: absolute;
  top: 32px;
  right: -14px;
  font-size: 18px;
  color: var(--gold);
  z-index: 1;
  background: var(--bg2);
  padding: 2px 4px;
  display: none;
}

/* ── 12. The OS (Technology) ───────────────────────────── */
.section-os {
  padding: 100px 0;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.os-feature {
  background: var(--bg);
  padding: 36px 32px;
  transition: background var(--transition);
}

.os-feature:hover { background: var(--card-hover); }

.osf-icon {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 16px;
}

.os-feature h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.os-feature p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

/* ── 13. Vision ────────────────────────────────────────── */
.section-vision {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.vision-quote {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  padding: 0 32px;
}

.vision-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 60px;
  color: var(--gold);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.6;
}

.vision-attr {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.vision-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.vision-body p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
}

/* ── 14. Waitlist ──────────────────────────────────────── */
.section-waitlist {
  padding: 120px 0;
}

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

.waitlist-inner .eyebrow { justify-content: center; margin-bottom: 20px; }

.waitlist-inner h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
}

.waitlist-inner > p {
  color: var(--text2);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.waitlist-form input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.waitlist-form input:focus {
  border-color: var(--gold-border);
}

.waitlist-form input::placeholder { color: var(--text3); }

.waitlist-disclaimer {
  font-size: 12px;
  color: var(--text3);
}

.waitlist-success {
  display: none;
  color: var(--live);
  font-size: 15px;
  font-weight: 500;
  padding: 16px;
  background: var(--live-dim);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* ── 15. Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  font-size: 17px;
  margin-bottom: 12px;
  display: inline-flex;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text3);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text2);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.copyright {
  font-size: 13px;
  color: var(--text3);
}

.risk-disclaimer {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.6;
  max-width: 800px;
}

.risk-disclaimer strong { color: var(--text2); }

/* ── 16. Scroll Reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── 17. Keyframes ─────────────────────────────────────── */
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

@keyframes fillBar {
  from { width: 0%; }
  to   { width: 100%; }
}

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

@keyframes rowAppear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes routingBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── 18. Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-step:nth-child(2) { border-right: none; }
  .flow-step:nth-child(1),
  .flow-step:nth-child(2) { border-bottom: 1px solid var(--border); }

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

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-terminal { order: -1; }

  .hero-headline { font-size: clamp(36px, 8vw, 52px); }

  .philosophy-grid {
    flex-direction: column;
    gap: 28px;
  }
  .philosophy-divider {
    width: 100%;
    height: 1px;
  }
  .philosophy-item {
    padding: 0 8px;
  }

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

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-menu-btn { display: flex; }

  .flow-steps {
    grid-template-columns: 1fr;
  }
  .flow-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .flow-step:last-child { border-bottom: none; }

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

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .section-hero { padding: 120px 0 80px; }

  .section-products,
  .section-flow,
  .section-os,
  .section-vision,
  .section-waitlist { padding: 72px 0; }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-lg { width: 100%; justify-content: center; }
}
