/* ═══════════════════════════════════════════════════════════════════════════
   CirclFi — Premium Financial Interface Stylesheet
   Version 2.0 · Complete Rewrite
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Font Imports ─── */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400;1,9..40,500&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* ─── Brand Colors ─── */
  --horizon-navy: #0B192C;
  --sunrise-orange: #FF6B35;
  --sunrise-orange-dim: rgba(255, 107, 53, 0.10);
  --sunrise-orange-glow: rgba(255, 107, 53, 0.30);
  --sunrise-orange-hover: #E85A2B;

  /* ─── Surfaces ─── */
  --bg-white: #FFFFFF;
  --bg-cloud: #F4F6F8;

  /* ─── Typography Colors ─── */
  --text-heading: #0B192C;
  --text-body: #475569;
  --text-muted: #94A3B8;
  --text-on-dark: #F8FAFC;

  /* ─── Semantic Colors ─── */
  --growth-emerald: #10B981;
  --growth-emerald-bg: rgba(16, 185, 129, 0.08);
  --growth-emerald-border: rgba(16, 185, 129, 0.25);
  --market-rose: #F43F5E;
  --market-rose-bg: rgba(244, 63, 94, 0.08);
  --market-rose-border: rgba(244, 63, 94, 0.25);

  /* ─── Borders ─── */
  --border-light: rgba(11, 25, 44, 0.06);
  --border-medium: rgba(11, 25, 44, 0.10);

  /* ─── Shadows ─── */
  --shadow-card: 0 1px 3px rgba(11, 25, 44, 0.04), 0 4px 16px rgba(11, 25, 44, 0.03);
  --shadow-card-hover: 0 4px 12px rgba(11, 25, 44, 0.06), 0 16px 40px rgba(11, 25, 44, 0.06);
  --shadow-elevated: 0 8px 30px rgba(11, 25, 44, 0.10);

  /* ─── Typography ─── */
  --font-display: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* ─── Radii ─── */
  --radius-card: 14px;
  --radius-button: 12px;

  /* ─── Spring Physics Easing ─── */
  --spring-gentle: linear(
    0, 0.007, 0.029, 0.064, 0.113, 0.175, 0.248, 0.332, 0.424, 0.52,
    0.619, 0.717, 0.811, 0.898, 0.975, 1.04, 1.09, 1.124, 1.141, 1.142,
    1.129, 1.103, 1.069, 1.029, 0.986, 0.945, 0.908, 0.878, 0.856, 0.844,
    0.84, 0.846, 0.859, 0.878, 0.9, 0.924, 0.947, 0.968, 0.985, 0.997,
    1.004, 1.006, 1.004, 0.998, 0.99, 0.981, 0.974, 0.968, 0.965, 0.964,
    0.966, 0.97, 0.976, 0.982, 0.989, 0.995, 1
  );
  --spring-bouncy: linear(
    0, 0.004, 0.016, 0.035, 0.063, 0.098, 0.141, 0.191, 0.25, 0.316,
    0.39, 0.472, 0.562, 0.66, 0.765, 0.878, 0.998, 1.126, 1.181, 1.198,
    1.181, 1.132, 1.06, 0.976, 0.89, 0.866, 0.896, 0.965, 1.036, 1.078,
    1.074, 1.031, 0.983, 0.953, 0.953, 0.977, 1.01, 1.024, 1.015, 0.997,
    0.985, 0.986, 0.997, 1.006, 1.005, 0.998, 0.996, 1
  );
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg-white);
  color: var(--text-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

::selection {
  background: rgba(255, 107, 53, 0.15);
  color: var(--text-heading);
}

/* ─── Focus States ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sunrise-orange);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 3px;
  background: linear-gradient(90deg, var(--sunrise-orange), #FF8F65, var(--sunrise-orange));
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1);
  animation: progressGlow 3s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    background 0.4s var(--ease-out-expo);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.navbar-logo img {
  width: 32px;
  height: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.navbar-links a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.25s var(--ease-out-quart);
}

/* Animated underline on navbar links */
.navbar-links a:not(.btn-primary):not(.btn-sm)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sunrise-orange);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-out-expo);
}

.navbar-links a:not(.btn-primary):not(.btn-sm):hover {
  color: var(--sunrise-orange);
}

.navbar-links a:not(.btn-primary):not(.btn-sm):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ─── Navbar Scroll State ─── */
.navbar--scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 24px rgba(11, 25, 44, 0.06), 0 1px 3px rgba(11, 25, 44, 0.04);
  background: rgba(255, 255, 255, 0.96);
}

/* ─── Mobile Nav ─── */
@media (max-width: 640px) {
  .navbar-links {
    gap: 0.75rem;
  }
  .navbar-links a:not(.btn-primary) {
    font-size: 0.78rem;
  }
  .btn-sm {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.75rem !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--sunrise-orange) 0%, var(--sunrise-orange-hover) 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-button);
  border: none;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25), 0 1px 2px rgba(255, 107, 53, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.4s var(--spring-gentle),
    box-shadow 0.35s var(--ease-out-quart),
    filter 0.35s var(--ease-out-quart);
}

/* Shine overlay */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-quart);
}

/* Glow pseudo-element */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.4), transparent, rgba(255, 107, 53, 0.2));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-quart);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.35), 0 2px 6px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover::before {
  opacity: 1;
}

/* Anticipation on press — squash slightly before release */
.btn-primary:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.4s var(--spring-gentle),
    background 0.3s var(--ease-out-quart),
    border-color 0.3s var(--ease-out-quart),
    box-shadow 0.3s var(--ease-out-quart);
}

.btn-secondary:hover {
  background: var(--bg-cloud);
  border-color: var(--horizon-navy);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(11, 25, 44, 0.06);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.97);
  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}


/* ═══════════════════════════════════════════════════════════════════════════
   BADGE
   ═══════════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--sunrise-orange-dim);
  color: var(--sunrise-orange);
  border: 1px solid rgba(255, 107, 53, 0.2);
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--growth-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
  animation: dotBreathe 2.5s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition:
    transform 0.45s var(--spring-gentle),
    box-shadow 0.4s var(--ease-out-quart),
    border-color 0.4s var(--ease-out-quart);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.2);
  box-shadow:
    var(--shadow-card-hover),
    0 0 0 1px rgba(255, 107, 53, 0.05);
}


/* ═══════════════════════════════════════════════════════════════════════════
   GLASS SURFACE
   ═══════════════════════════════════════════════════════════════════════════ */
.glass-surface {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(11, 25, 44, 0.04);
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -1000px;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(11, 25, 44, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 25, 44, 0.025) 1px, transparent 1px);
  transform: rotateX(60deg) translateY(-100px) translateZ(-200px);
  transform-origin: top center;
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.07) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.8;
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8F65 50%, #E85A2B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-cloud);
}

.section-dark {
  background: var(--horizon-navy);
  color: var(--text-on-dark);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-body);
  max-width: 580px;
  margin: 0 auto;
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  line-height: 1.7;
}

.text-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sunrise-orange);
  margin-bottom: 0.75rem;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   STOCK PAGE HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.stock-hero {
  padding: 6.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-cloud) 0%, var(--bg-white) 100%);
}

.stock-ticker {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--text-heading);
  letter-spacing: -0.04em;
}

.stock-name {
  font-size: 1rem;
  color: var(--text-body);
  margin-top: 0.25rem;
}

.stock-industry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-white);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border-light);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SCORE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.score-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.score-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  transition:
    transform 0.4s var(--spring-gentle),
    box-shadow 0.35s var(--ease-out-quart),
    border-color 0.35s var(--ease-out-quart);
}

.score-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(11, 25, 44, 0.08), 0 0 0 1px rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.2);
}

.score-card-label {
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.score-card-value {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.score-card-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .score-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .score-card {
    padding: 1rem;
  }
  .score-card-value {
    font-size: 1.5rem;
  }
  .stock-hero {
    padding: 5.5rem 0 2rem;
  }
}

@media (max-width: 480px) {
  .score-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .score-card-value {
    font-size: 1.3rem;
  }
  .score-card {
    padding: 0.85rem;
  }
}

/* ─── Quality of Confidence Colors ─── */
.qoc-high { color: var(--growth-emerald); }
.qoc-mid  { color: #3B82F6; }
.qoc-low  { color: var(--market-rose); }


/* ═══════════════════════════════════════════════════════════════════════════
   VALUATION TABLE
   ═══════════════════════════════════════════════════════════════════════════ */
.val-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
}

.val-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.val-table th {
  text-align: left;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--border-medium);
  white-space: nowrap;
}

.val-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}

/* Table row hover — left orange border-reveal + background tint */
.val-table tbody tr {
  position: relative;
  transition:
    background 0.25s var(--ease-out-quart);
}

.val-table tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sunrise-orange);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out-expo);
}

.val-table tbody tr:hover {
  background: rgba(255, 107, 53, 0.03);
}

.val-table tbody tr:hover::before {
  transform: scaleY(1);
}

/* ─── Blurred Rows ─── */
.val-row-blurred {
  position: relative;
}

.val-row-blurred td {
  color: var(--text-body);
}

.val-row-blurred td:first-child {
  font-weight: 600;
  color: var(--text-heading);
}

.val-row-blurred td:nth-child(2) {
  color: var(--text-muted);
}

.blur-text {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  display: inline-block;
}

/* ─── Upside / Confidence Indicators ─── */
.val-upside-pos {
  color: var(--growth-emerald);
  font-weight: 600;
}

.val-upside-neg {
  color: var(--market-rose);
  font-weight: 600;
}

.val-conf {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.val-conf-high {
  background: rgba(16, 185, 129, 0.1);
  color: var(--growth-emerald);
}

.val-conf-med {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.val-conf-low {
  background: rgba(239, 68, 68, 0.1);
  color: var(--market-rose);
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAYWALL CTA
   ═══════════════════════════════════════════════════════════════════════════ */
.paywall {
  position: relative;
  margin-top: -2rem;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, var(--bg-white) 30%);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.paywall-content {
  position: relative;
  z-index: 2;
}

.paywall h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.paywall p {
  color: var(--text-body);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sunrise-orange-dim);
  margin-bottom: 1rem;
  transition: transform 0.4s var(--spring-bouncy);
}

.lock-icon:hover {
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .paywall {
    padding: 2.5rem 1rem 1.5rem;
  }
  .paywall .btn-primary {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SIMILAR STOCKS
   ═══════════════════════════════════════════════════════════════════════════ */
.similar-stocks {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.similar-stock {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 1rem;
  background: var(--bg-cloud);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
  min-width: 90px;
  text-align: center;
  transition:
    transform 0.4s var(--spring-bouncy),
    border-color 0.3s var(--ease-out-quart),
    background 0.3s var(--ease-out-quart),
    box-shadow 0.3s var(--ease-out-quart);
}

.similar-stock:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--sunrise-orange);
  background: var(--sunrise-orange-dim);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.12);
}

@media (max-width: 640px) {
  .similar-stocks {
    gap: 0.5rem;
  }
  .similar-stock {
    min-width: 75px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MODEL CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.model-card {
  padding: 1.75rem;
}

.model-card .model-num {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--sunrise-orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.model-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.model-type {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  background: var(--bg-cloud);
  color: var(--text-muted);
}

.model-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-body);
}

.model-card .model-best {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════════ */
.pricing-card {
  padding: 2.25rem 1.75rem;
  text-align: center;
}

.pricing-card.featured {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 8px 40px rgba(255, 107, 53, 0.12), var(--shadow-elevated);
  transform: scale(1.02);
  position: relative;
  animation: featureGlow 4s ease-in-out infinite;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--horizon-navy), var(--sunrise-orange), #FF8F65);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.pricing-card.featured:hover {
  animation: none;
  box-shadow: 0 12px 48px rgba(255, 107, 53, 0.18);
  transform: scale(1.03) translateY(-3px);
}

.pricing-price {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 1rem 0 0.5rem;
}

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

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  color: var(--sunrise-orange);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pricing-card {
    padding: 1.75rem 1.25rem;
  }
  .pricing-card.featured {
    transform: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--horizon-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s var(--ease-out-quart);
}

.footer a:hover {
  color: var(--sunrise-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col li a {
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   AI GLOW BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.ai-glow-bar {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--horizon-navy) 0%,
    var(--sunrise-orange) 30%,
    rgba(255, 255, 255, 0.8) 50%,
    var(--sunrise-orange) 70%,
    var(--horizon-navy) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s var(--ease-out-quart) infinite;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MONO / TABULAR NUMS
   ═══════════════════════════════════════════════════════════════════════════ */
.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-family: 'DM Sans', monospace;
}


/* ═══════════════════════════════════════════════════════════════════════════
   STOCKS DIRECTORY
   ═══════════════════════════════════════════════════════════════════════════ */
.stock-list-item {
  display: grid;
  grid-template-columns: 90px 1fr 80px 90px 120px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  transition:
    background 0.25s var(--ease-out-quart),
    transform 0.25s var(--ease-out-quart);
}

.stock-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sunrise-orange);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out-expo);
}

.stock-list-item:hover {
  background: rgba(255, 107, 53, 0.02);
  transform: translateX(3px);
}

.stock-list-item:hover::before {
  transform: scaleY(1);
}

@media (max-width: 768px) {
  .stock-list-item {
    grid-template-columns: 70px 1fr 60px;
    padding: 0.7rem 0.75rem;
    gap: 0.5rem;
  }
  .stock-list-item .hide-mobile {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMPARE PAGES
   ═══════════════════════════════════════════════════════════════════════════ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.compare-card {
  padding: 2rem;
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-vs span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--horizon-navy);
  color: var(--bg-white);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  box-shadow: 0 4px 16px rgba(11, 25, 44, 0.15);
}

.compare-table th {
  white-space: nowrap;
  font-size: 0.8rem;
}

.compare-table td {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .compare-vs span {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
  .compare-table {
    font-size: 0.75rem;
  }
  .compare-table th,
  .compare-table td {
    padding: 0.5rem 0.4rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   AGGREGATOR PAGES
   ═══════════════════════════════════════════════════════════════════════════ */
.aggr-table tbody tr {
  transition: background 0.2s var(--ease-out-quart);
}

.aggr-table tbody tr:hover:not(.val-row-blurred) {
  background: var(--bg-cloud);
}

.aggr-table td:first-child {
  font-family: var(--font-display);
}


/* ═══════════════════════════════════════════════════════════════════════════
   METHODOLOGY STICKY NAV
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  [style*="position:sticky"][style*="top:60px"] {
    top: 52px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }


/* ═══════════════════════════════════════════════════════════════════════════
   STAGGER GROUP
   ═══════════════════════════════════════════════════════════════════════════ */
.stagger-group > *:nth-child(1)  { transition-delay: 0ms;   animation-delay: 0ms;   }
.stagger-group > *:nth-child(2)  { transition-delay: 60ms;  animation-delay: 60ms;  }
.stagger-group > *:nth-child(3)  { transition-delay: 120ms; animation-delay: 120ms; }
.stagger-group > *:nth-child(4)  { transition-delay: 180ms; animation-delay: 180ms; }
.stagger-group > *:nth-child(5)  { transition-delay: 240ms; animation-delay: 240ms; }
.stagger-group > *:nth-child(6)  { transition-delay: 300ms; animation-delay: 300ms; }
.stagger-group > *:nth-child(7)  { transition-delay: 360ms; animation-delay: 360ms; }
.stagger-group > *:nth-child(8)  { transition-delay: 420ms; animation-delay: 420ms; }
.stagger-group > *:nth-child(9)  { transition-delay: 480ms; animation-delay: 480ms; }
.stagger-group > *:nth-child(10) { transition-delay: 540ms; animation-delay: 540ms; }
.stagger-group > *:nth-child(11) { transition-delay: 600ms; animation-delay: 600ms; }
.stagger-group > *:nth-child(12) { transition-delay: 660ms; animation-delay: 660ms; }


/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATION SYSTEM — KEYFRAMES
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. fadeUp — spring entrance from below */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(2px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

/* 2. scaleIn — pop-in from 0.92 scale */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  60% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 3. slideRow — table row slide from left */
@keyframes slideRow {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 4. glowPulse — subtle orange breathing glow */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(255, 107, 53, 0.08);
  }
}

/* 5. shimmer — accent shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* 6. floatOrb — background orb floating */
@keyframes floatOrb {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1) translate3d(0, 0, 0);
  }
  25% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05) translate3d(15px, -10px, 0);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1) translate3d(-5px, 10px, 0);
  }
  75% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.03) translate3d(-15px, -5px, 0);
  }
}

/* 7. heroEntrance — enhanced with blur */
@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    filter: blur(6px);
  }
  40% {
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

/* 8. dotBreathe — badge dot breathing */
@keyframes dotBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: scale(1.5);
    opacity: 0.65;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
  }
}

/* 9. featureGlow — featured pricing card pulsing glow */
@keyframes featureGlow {
  0%, 100% {
    box-shadow:
      0 8px 40px rgba(255, 107, 53, 0.10),
      0 0 0 0 rgba(255, 107, 53, 0);
  }
  50% {
    box-shadow:
      0 8px 40px rgba(255, 107, 53, 0.16),
      0 0 0 4px rgba(255, 107, 53, 0.06);
  }
}

/* 10. progressGlow — scroll progress bar glow */
@keyframes progressGlow {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: brightness(1.15) drop-shadow(0 0 6px rgba(255, 107, 53, 0.35));
  }
}

/* Legacy — keep pulse for backwards compatibility */
@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Legacy — keep dot-pulse for backwards compatibility */
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Legacy — keep glow-bar for backwards compatibility */
@keyframes glow-bar {
  0% { background-position: -200% 50%; }
  100% { background-position: 200% 50%; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATION SYSTEM — SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Scroll Reveal: Fade Up ─── */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo),
    filter 0.7s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ─── Table Row Slide In ─── */
.reveal-row {
  transform: translate3d(-16px, 0, 0);
}

.reveal-row.revealed {
  transform: translate3d(0, 0, 0);
}


/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATION SYSTEM — HERO ENTRANCE
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-entrance {
  opacity: 0;
  animation: heroEntrance 0.9s var(--ease-out-expo) forwards;
}

/* Stagger hero children for cinematic entrance */
.hero-entrance:nth-child(1) { animation-delay: 0ms;   }
.hero-entrance:nth-child(2) { animation-delay: 120ms; }
.hero-entrance:nth-child(3) { animation-delay: 240ms; }
.hero-entrance:nth-child(4) { animation-delay: 360ms; }
.hero-entrance:nth-child(5) { animation-delay: 480ms; }


/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Disable all reveals */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.revealed {
    transform: none;
  }

  .reveal-row {
    transform: none;
  }

  .reveal-row.revealed {
    transform: none;
  }

  /* Disable hero entrance */
  .hero-entrance {
    opacity: 1;
    animation: none;
  }

  /* Disable badge dot */
  .badge-dot {
    animation: none;
  }

  /* Disable pricing glow */
  .pricing-card.featured {
    animation: none;
  }

  /* Disable AI glow bar shimmer */
  .ai-glow-bar {
    animation: none;
  }

  /* Disable hero glow float */
  .hero-glow {
    animation: none;
  }

  /* Disable scroll progress glow */
  .scroll-progress {
    animation: none;
  }

  /* Disable lock icon hover */
  .lock-icon {
    transition: none;
  }

  /* Nuclear option — catch everything else */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
