/* ==========================================================================
   FUTURE WAVE ANALYSIS — Master Core Stylesheet
   Theme: Precision Financial Dark Mode / Wave Structure
   ========================================================================== */

@import url('navigation.css');
@import url('components.css');
@import url('themes.css');

/* ==========================================================================
   FUTURE WAVE ANALYSIS — Core Design System & Stylesheet
   Theme: Precision Financial Dark Mode / Wave Structure
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-ink: #071321;
  --bg-ink-translucent: rgba(7, 19, 33, 0.88);
  --bg-panel: #0b1a2e;
  --bg-panel-subtle: #091626;
  --bg-panel-2: #10243b;
  --bg-panel-card: rgba(13, 29, 49, 0.7);
  --bg-panel-hover: #152d49;
  
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-highlight: rgba(45, 212, 191, 0.35);
  
  --foreground: #f8fafc;
  --foreground-muted: #cbd5e1;
  --mist: #8da2bb;
  --mist-dim: #5c7088;
  
  --tide: #2dd4bf;
  --tide-hover: #14b8a6;
  --tide-glow: rgba(45, 212, 191, 0.2);
  --tide-bg: rgba(45, 212, 191, 0.1);
  --tide-border: rgba(45, 212, 191, 0.3);
  
  --bull: #34d399;
  --bull-bg: rgba(52, 211, 153, 0.12);
  --bull-border: rgba(52, 211, 153, 0.35);
  
  --signal: #fbbf24;
  --signal-bg: rgba(251, 191, 36, 0.12);
  --signal-border: rgba(251, 191, 36, 0.35);
  
  --sky: #60a5fa;
  --sky-bg: rgba(96, 165, 250, 0.12);
  --sky-border: rgba(96, 165, 250, 0.35);
  
  --risk: #f87171;
  --risk-bg: rgba(248, 113, 113, 0.12);
  --risk-border: rgba(248, 113, 113, 0.35);

  --primary: #2dd4bf;
  --primary-fg: #071321;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(2, 8, 20, 0.7);
  --shadow-glow: 0 0 35px rgba(45, 212, 191, 0.18);
  --shadow-elevated: 0 24px 60px -24px rgba(2, 8, 20, 0.9);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-ink);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-ink);
  color: var(--foreground);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-tide { color: var(--tide); }
.text-mist { color: var(--mist); }
.text-foreground { color: var(--foreground); }
.text-bull { color: var(--bull); }
.text-signal { color: var(--signal); }
.text-sky { color: var(--sky); }
.text-risk { color: var(--risk); }

/* ==========================================================================
   Grid & Atmosphere Background
   ========================================================================== */
.bg-grid {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  pointer-events: none;
}

.hero-glow {
  position: relative;
}

.hero-glow::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14) 0%, rgba(56, 189, 248, 0.07) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 90rem; /* 1440px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(11, 26, 46, 0.4);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mist);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.8);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--tide);
}

.footer-stock-cover {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: #ffffff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  transition: all var(--transition-fast);
  text-decoration: none;
  width: fit-content;
}

.footer-stock-cover:hover {
  color: var(--tide);
  background: var(--tide-bg);
  border-color: var(--tide-border);
  box-shadow: 0 4px 18px var(--tide-glow);
  transform: translateY(-2px);
}

.footer-stock-cover .stock-cover-arrow {
  color: var(--tide);
  transition: transform var(--transition-fast);
}

.footer-stock-cover:hover .stock-cover-arrow {
  transform: translateX(4px);
}

[dir="rtl"] .footer-stock-cover:hover .stock-cover-arrow {
  transform: translateX(-4px);
}

[data-theme="light"] .footer-stock-cover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

.footer-disclaimer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--mist-dim);
}

.footer-bottom-bar {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--mist);
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

