/* ==========================================================================
   GrokBot Trade - Advanced Cyber AI Design System
   Domain: grok-bot.trade
   ========================================================================== */

:root {
  --bg-deep: #05070d;
  --bg-card: rgba(13, 19, 33, 0.75);
  --bg-card-hover: rgba(20, 29, 51, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --cyan-glow: #00f0ff;
  --emerald-glow: #10b981;
  --violet-glow: #8b5cf6;
  --amber-glow: #f59e0b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Animated Grid & Ambient Glows */
.cyber-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070a12;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #00f0ff 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Glowing Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan-glow);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 12px 36px -10px rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00f0ff 0%, #0099ff 100%);
  color: #040914;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #33f3ff 0%, #1ab0ff 100%);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--cyan-glow);
  transform: translateY(-1px);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--cyan-glow);
}

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

.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--cyan-glow);
  color: var(--cyan-glow);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 24px auto 20px;
  max-width: 980px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Stats Ribbon */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 60px;
}

.stat-item {
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Interactive Agent Execution Cockpit (Hero Visual) */
.cockpit-card {
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 20px 60px -15px rgba(0, 240, 255, 0.15);
  border-radius: 20px;
  background: #090e1a;
  overflow: hidden;
}

.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(13, 20, 36, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.cockpit-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 380px;
}

.cockpit-left {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  background: rgba(8, 12, 22, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.cockpit-right {
  padding: 24px;
  background: #050811;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
}

.swarm-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.node-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.node-status-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.status-active { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-running { background: rgba(0, 240, 255, 0.15); color: #00f0ff; }
.status-syncing { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.terminal-log-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-entry {
  display: flex;
  gap: 12px;
  line-height: 1.4;
}

.log-time {
  color: var(--text-dim);
  font-size: 0.75rem;
  white-space: nowrap;
}

.log-text {
  color: var(--text-main);
}
.log-cyan { color: var(--cyan-glow); }
.log-green { color: var(--emerald-glow); }
.log-purple { color: #c084fc; }

/* Sections Common */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  color: var(--cyan-glow);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-glow);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.feature-link {
  color: var(--cyan-glow);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Interactive Playground Section */
.playground-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.scenario-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario-btn {
  text-align: left;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-btn.active, .scenario-btn:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: var(--cyan-glow);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.scenario-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scenario-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.custom-query-box {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.custom-input {
  flex: 1;
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9rem;
}

.custom-input:focus {
  outline: none;
  border-color: var(--cyan-glow);
}

/* Playground Output Console */
.simulation-display {
  background: #080c16;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 18px;
  padding: 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-step-item {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 3px solid var(--cyan-glow);
}

.sim-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

.sim-step-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.sim-step-detail {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.sim-result-box {
  margin-top: auto;
  padding: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 240, 255, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
}

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

.result-metric {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emerald-glow);
  font-family: var(--font-mono);
}

/* ROI Calculator Section */
.calc-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px;
}

.calc-slider-box {
  margin-bottom: 40px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.slider-value {
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-size: 1.3rem;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 12px var(--cyan-glow);
  cursor: pointer;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.calc-result-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.calc-res-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.calc-res-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Architecture Section */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.arch-step-card {
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.arch-number {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* Waitlist CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 240, 255, 0.2);
}

.cta-banner-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  background: #03050a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--cyan-glow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0c1220;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 25px 70px -10px rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-input, .form-select {
  width: 100%;
  background: #070a14;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--cyan-glow);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .cockpit-body { grid-template-columns: 1fr; }
  .playground-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #080c16;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .mobile-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .calc-results-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
