/* HEDGE RADAR -- Institutional Grade Trading Workspace Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-surface: #0e121a;
  --bg-surface-hover: #151b27;
  --bg-card: rgba(14, 18, 26, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(14, 203, 129, 0.35);
  
  --green: #0ecb81;
  --green-bg: rgba(14, 203, 129, 0.12);
  --red: #f6465d;
  --red-bg: rgba(246, 70, 93, 0.12);
  --gold: #f0b90b;
  --gold-bg: rgba(240, 185, 11, 0.12);
  --cyan: #00e5ff;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --nav-height: 72px;
  --font-mono: 'JetBrains Mono', monospace;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Data Grid Pattern Background */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image: 
    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: 48px 48px;
  pointer-events: none;
  z-index: -2;
}

.ambient-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(14, 203, 129, 0.05) 0%, rgba(7, 9, 14, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

/* Live Market Ticker Marquee Bar */
.ticker-bar {
  background: rgba(10, 14, 22, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  z-index: 1001;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-sym {
  color: var(--text-secondary);
  font-weight: 600;
}

.ticker-val {
  color: var(--text-primary);
  font-weight: 500;
}

.ticker-up { color: var(--green); }
.ticker-down { color: var(--red); }

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 38px;
  width: auto;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid rgba(240, 185, 11, 0.3);
}

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

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

.nav-link:hover {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Institutional Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: var(--font-body);
}

.btn-green {
  background: var(--green);
  color: #04070a;
  font-weight: 700;
}

.btn-green:hover {
  background: #10dc8d;
  box-shadow: 0 4px 20px rgba(14, 203, 129, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.98rem;
  border-radius: 10px;
}

/* Hero Section */
.hero {
  padding: 80px 24px 60px 24px;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--green-bg);
  border: 1px solid rgba(14, 203, 129, 0.3);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(14, 203, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  max-width: 960px;
  margin: 0 auto 20px auto;
  color: #ffffff;
}

.hero-p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 36px auto;
  font-weight: 400;
  line-height: 1.6;
}

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

/* Terminal Preview Container */
.terminal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.terminal-bar {
  background: #090c12;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.terminal-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.terminal-body {
  padding: 0;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.015);
  padding: 12px 18px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.tag-dh { background: var(--green-bg); color: var(--green); border: 1px solid rgba(14, 203, 129, 0.3); }
.tag-wh { background: rgba(0, 229, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.3); }
.tag-iv { background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(240, 185, 11, 0.3); }

/* Features Grid */
.features-section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  transition: all 0.25s ease;
}

.card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
  transform: translateY(-3px);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}

.card-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.card-p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Institutional Footer */
.footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 30px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .hero-h1 { font-size: 2rem; letter-spacing: -0.5px; }
  .hero-p { font-size: 0.95rem; }
  .hero { padding: 36px 16px 48px 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 20px; }

  /* Nav — hide menu links, keep only Launch Terminal button */
  .nav-menu { display: none; }
  .nav-right .btn-outline { display: none; }
  .nav-container { padding: 0 16px; }
  .brand-badge { display: none; }
  .brand-name { font-size: 1.1rem; }
  .btn-green { padding: 9px 14px; font-size: 0.82rem; }

  /* Ticker bar — smaller text */
  .ticker-bar { height: 28px; font-size: 0.72rem; }

  /* Feature grid stacks */
  .features-section { padding: 48px 16px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px; }

  /* Scanner table — only show 3 core cols on mobile */
  .data-table th:nth-child(n+4),
  .data-table td:nth-child(n+4) { display: none; }
  .data-table th, .data-table td { padding: 12px 12px; font-size: 0.8rem; }
  .terminal-tab { display: none; }
  .terminal-bar { justify-content: space-between; }
  .terminal-window { border-radius: 10px; }
}

@media (max-width: 400px) {
  .hero-h1 { font-size: 1.75rem; }
  .brand-name { font-size: 0.95rem; }
  .data-table th, .data-table td { padding: 10px 10px; font-size: 0.75rem; }
}
