/* ─── Satoshi + Inter Fonts ─── */
@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=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --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;
  --bg-white: #FFFFFF;
  --bg-cloud: #F4F6F8;
  --text-heading: #0B192C;
  --text-body: #475569;
  --text-muted: #94A3B8;
  --text-on-dark: #F8FAFC;
  --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);
  --border-light: rgba(11, 25, 44, 0.06);
  --border-medium: rgba(11, 25, 44, 0.10);
  --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);
  --font-display: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-card: 14px;
  --radius-button: 12px;
}

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

html { scroll-behavior: smooth; }

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

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 480px) { .container { padding: 0 1rem; } }

/* ═══ Navbar ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  transition: box-shadow 0.3s;
}
.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); }
.navbar-logo img { width: 32px; height: 32px; }
.navbar-links { display: flex; align-items: center; gap: 1.75rem; }
.navbar-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-body); transition: color 0.2s; }
.navbar-links a:hover { color: var(--sunrise-orange); }

/* 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), var(--sunrise-orange-hover));
  color: #fff; 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); cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1); text-decoration: none;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,53,0.35); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; color: var(--text-heading); 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; transition: all 0.25s; text-decoration: none;
}
.btn-secondary:hover { background: var(--bg-cloud); border-color: var(--horizon-navy); transform: translateY(-2px); }

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

/* ═══ Badge ═══ */
.badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--sunrise-orange-dim); color: var(--sunrise-orange); border: 1px solid rgba(255,107,53,0.2); padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; 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: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══ Cards ═══ */
.card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card); border-radius: var(--radius-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card:hover { border-color: var(--border-medium); box-shadow: var(--shadow-card-hover); }

/* ═══ 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.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(11,25,44,0.03) 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.06) 0%, transparent 60%); filter: blur(80px); opacity: 0.8; pointer-events: none; animation: pulse 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.08; letter-spacing: -0.03em; 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, #E85A2B); -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: 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: 3.5rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.section-header p { color: var(--text-body); max-width: 580px; margin: 0 auto; font-size: 1rem; }
.text-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sunrise-orange); margin-bottom: 0.75rem; display: block; }

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
}

/* ═══ 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.03em; }
.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.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); background: var(--bg-white); padding: 0.3rem 0.8rem; 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); transition: transform 0.2s, box-shadow 0.2s; }
.score-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.score-card-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.4rem; }
.score-card-value { font-size: 1.75rem; font-weight: 800; font-family: var(--font-display); }
.score-card-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

@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; }
}

.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; }
.val-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.val-table th { text-align: left; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0.75rem 1rem; border-bottom: 2px solid var(--border-medium); white-space: nowrap; }
.val-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.val-table tr:hover { background: rgba(11,25,44,0.015); }
.val-table tbody tr { transition: background 0.15s; }

.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; }

.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.72rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 4px; }
.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; }
.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; }

@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); transition: all 0.2s; min-width: 90px; text-align: center; }
.similar-stock:hover { border-color: var(--sunrise-orange); background: var(--sunrise-orange-dim); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,107,53,0.1); }

@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.68rem; font-weight: 700; color: var(--sunrise-orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.model-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.model-type { display: inline-block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.6rem; border-radius: 4px; background: var(--bg-cloud); color: var(--text-muted); }
.model-card p { font-size: 0.88rem; line-height: 1.6; 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; }
.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)); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.pricing-price { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; font-family: var(--font-display); 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.65rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--text-body); }
.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.2s; }
.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.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li a { font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); 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 ═══ */
@keyframes pulse { 0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.7; transform: translate(-50%,-50%) scale(1.1); } }
@keyframes glow-bar { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.ai-glow-bar { height: 3px; background: linear-gradient(90deg, var(--horizon-navy), var(--sunrise-orange), var(--horizon-navy)); background-size: 200% 100%; animation: glow-bar 2s ease-in-out infinite; border-radius: 2px; }

/* ═══ Tabular nums ═══ */
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-family: 'Inter', 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); transition: background 0.15s; }
.stock-list-item:hover { background: rgba(11,25,44,0.015); }

@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; }
}

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

/* ═══ Utility ═══ */
.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; }

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

/* ═══ Focus states for accessibility ═══ */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--sunrise-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══ Smooth image rendering ═══ */
img { image-rendering: -webkit-optimize-contrast; }
