/* Grok Bot Swarm — Muse layout, phosphor instead of electric blue */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 221, 148, 0.3);
  --phosphor: #00DD94;
  --phosphor-bright: #12f0a4;
  --phosphor-glow: rgba(0, 221, 148, 0.15);
  --phosphor-dim: rgba(0, 221, 148, 0.6);
  --text: #e8e8e8;
  --text-secondary: #c0c0c0;
  --text-muted: #a0a0a0;
  --white: #ffffff;
  --console: #060c12;
  --ok: #4ade80;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: "Outfit", system-ui, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 72px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

#glyph-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 2000;
  background: var(--phosphor);
  color: var(--bg);
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

section, header.hero, footer, nav { position: relative; z-index: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-pad { padding: 96px 0; }

.accent { color: var(--phosphor); }

h1, h2, h3 { color: var(--white); letter-spacing: -0.02em; }

h2 {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--phosphor);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.body-copy {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.05rem;
  margin-bottom: 18px;
  max-width: 640px;
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-wordmark .accent { color: var(--phosphor); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--phosphor); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--phosphor);
  border: 1px solid var(--phosphor);
  padding: 9px 22px;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--phosphor);
  color: var(--bg);
  box-shadow: 0 0 30px var(--phosphor-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}
nav[data-open="true"] .mobile-menu { display: flex; }
.mobile-menu a {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--phosphor); }

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--phosphor);
  color: var(--bg);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--phosphor-bright);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--phosphor-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(0, 221, 148, 0.06);
  color: var(--phosphor);
  border: 1px solid rgba(0, 221, 148, 0.45);
  padding: 14px 30px;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--phosphor);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--phosphor-glow);
}

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

/* Hero */
.hero {
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 221, 148, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-console {
  border: 1px solid rgba(0, 221, 148, 0.32);
  background: rgba(6, 12, 18, 0.85);
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 221, 148, 0.07), 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.console-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.console-bar .dot:first-child { background: rgba(0, 221, 148, 0.5); }
.console-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-left: 10px;
}

.console-body {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-secondary);
  padding: 20px 22px 24px;
  min-height: 258px;
  margin: 0;
  white-space: pre-wrap;
}
.console-body .c-prompt { color: var(--phosphor); }
.console-body .c-ok { color: var(--ok); }
.console-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--phosphor);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* On-ramp */
.section-intro {
  text-align: center;
  margin-bottom: 56px;
}
.section-intro p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 221, 148, 0.06);
}

.card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--phosphor);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card h3 {
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

/* Trading + contact */
.trading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.trading-copy .btn-primary {
  margin: 28px 0 12px;
  min-width: 240px;
}

.affiliate-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
}
.affiliate-note a {
  color: var(--phosphor);
  text-decoration: none;
}
.affiliate-note a:hover { text-decoration: underline; }

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}

.contact-card h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--phosphor-dim);
  box-shadow: 0 0 0 3px var(--phosphor-glow);
}
.field textarea { min-height: 120px; resize: vertical; }

.contact-card .btn-primary { width: 100%; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 1.4em;
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
}
.form-status[data-kind="ok"] { color: var(--ok); }
.form-status[data-kind="error"] { color: #f87171; }
.form-status[data-kind="pending"] { color: var(--phosphor-dim); }
.contact-card .btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}


.legal-page {
  padding-top: 140px;
  padding-bottom: 96px;
}
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}
.legal-page p { margin-bottom: 16px; max-width: 720px; }
.legal-page a { color: var(--phosphor); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}
.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-copy a:hover { color: var(--phosphor); }

@media (max-width: 960px) {
  .hero-grid,
  .trading-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 0; }
  .hero-console { max-width: 560px; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section-pad { padding: 72px 0; }
  .container { padding: 0 22px; }
  .hero-actions { gap: 14px; }
  .btn-primary,
  .btn-secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .console-cursor { animation: none; }
  .service-card,
  .btn-primary,
  .btn-secondary { transition: none; }
}
