/* ============================================================
   ValuSnapAI — Global Stylesheet
   Premium dark-mode design · aurora gradients · micro-animations
   ============================================================ */

/* ---------- Animatable Custom Properties ---------- */

/* ---------- Design Tokens ---------- */
:root {
  --color-navy: #1E293B;
  --color-dark: #0F172A;
  --color-purple: #8B5CF6;
  --color-purple-light: #A78BFA;
  --color-purple-lighter: #C4B5FD;
  --color-purple-dark: #7C3AED;
  --color-purple-deep: #4C1D95;
  --color-purple-glow: rgba(139, 92, 246, 0.15);
  --color-teal: #10B981;
  --color-gold: #F59E0B;
  --color-gold-glow: rgba(245, 158, 11, 0.15);
  --color-red: #EF4444;
  --color-text: #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-text-dim: rgba(255, 255, 255, 0.4);
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.06);
  --color-footer-bg: #070B14;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Typography ---------- */
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label--purple {
  color: var(--color-purple-light);
}

.section-label--gold {
  color: var(--color-gold);
}

.section-label--teal {
  color: var(--color-teal);
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.75rem;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subheading {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-subheading--center,
.section-heading--center,
.section-label--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-child>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-child.visible>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-child.visible>*:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-child.visible>*:nth-child(3) {
  transition-delay: 0.14s;
}

.reveal-child.visible>*:nth-child(4) {
  transition-delay: 0.2s;
}

.reveal-child.visible>*:nth-child(5) {
  transition-delay: 0.26s;
}

.reveal-child.visible>*:nth-child(6) {
  transition-delay: 0.32s;
}

.reveal-child.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px var(--color-purple-glow), 0 0 60px rgba(139, 92, 246, 0.08);
  }

  50% {
    box-shadow: 0 0 30px var(--color-purple-glow), 0 0 80px rgba(139, 92, 246, 0.12);
  }
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-40px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes logoPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ============================================================
   NAVBAR — SVG Logo + Wordmark
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 12px 0;
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.navbar__logo-icon img,
.navbar__logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.navbar__logo-text span {
  color: var(--color-purple-light);
}

.navbar__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  position: relative;
  transition: color 0.3s;
}

.navbar__link:hover,
.navbar__link.active {
  color: #fff;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-purple);
  transition: width 0.3s, left 0.3s;
  border-radius: 1px;
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
  left: 0;
}

.navbar__cta {
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.navbar__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1002;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 80px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-text);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #fff;
}

.mobile-menu .navbar__cta {
  margin-top: 24px;
  font-size: 1rem;
  padding: 14px 36px;
}

/* ============================================================
   HERO — Static gradient (zero GPU cost)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  padding: 140px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Aurora gradient orbs */
.hero__aurora,
.hero__grain {
  display: none;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-purple-light);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 20px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 50px;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-purple);
  border-radius: 50%;
  animation: logoPulse 2s ease-in-out infinite;
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 28px;
  color: #fff;
  letter-spacing: -0.03em;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero__headline .gradient-text {
  background: linear-gradient(135deg, var(--color-purple-lighter), var(--color-purple-light), #fff, var(--color-purple-light));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* animation removed for perf */
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  color: #fff;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero__avatars {
  display: flex;
}

.hero__avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-left: -8px;
  border: 2px solid var(--color-dark);
}

.hero__avatars span:first-child {
  margin-left: 0;
}

.hero__avatars span:nth-child(1) {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.hero__avatars span:nth-child(2) {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.hero__avatars span:nth-child(3) {
  background: linear-gradient(135deg, #10B981, #34D399);
}

.hero__avatars span:nth-child(4) {
  background: linear-gradient(135deg, #EF4444, #F87171);
}

/* Hero right — phone mockup or app preview */
.hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Phone Animation */
.hero__phone-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-frame {
  position: relative;
  width: 300px;
  height: 540px;
  border-radius: 40px;
  background: linear-gradient(180deg, #0d1220, #131B2E);
  border: 2px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  cursor: pointer;
}

.phone-frame__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0f1a;
  border-radius: 16px;
  z-index: 5;
}

.phone-frame__screen {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 48px 20px 20px;
}

/* Phone screens — positioned within .phone-frame */
.phone-screen {
  position: absolute;
  top: 48px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.phone-screen.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Capture screen */
.screen-capture__viewfinder {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.viewfinder__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--color-purple);
  border-style: solid;
  border-width: 0;
}

.viewfinder__corner--tl {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 8px;
}

.viewfinder__corner--tr {
  top: 0;
  right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 8px;
}

.viewfinder__corner--bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 8px;
}

.viewfinder__corner--br {
  bottom: 0;
  right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: 8px;
}

.viewfinder__item {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.3));
}

/* Scan line animation */
.screen-capture__viewfinder::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-purple), transparent);
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {

  0%,
  100% {
    top: 10%;
    opacity: 0.3;
  }

  50% {
    top: 90%;
    opacity: 1;
  }
}

.screen-capture__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.screen-capture__btn {
  padding: 12px 48px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Result screen */
.result__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.result__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-purple-light);
  background: rgba(139, 92, 246, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.result__confidence {
  font-size: 0.75rem;
  color: var(--color-teal);
  font-weight: 500;
}

.result__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
}

.hero__phone-hint {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-align: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 60px 0;
}

.stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
}

.stats__item {
  text-align: center;
  flex: 1;
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--color-border);
}

.stats__icon {
  color: var(--color-purple);
  margin-bottom: 12px;
}

.stats__icon svg {
  width: 32px;
  height: 32px;
}

.stats__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: #fff;
}

.stats__label {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 120px 0;
  background: var(--color-navy);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}

/* connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  border-top: 2px dashed var(--color-border);
  z-index: 0;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0;
  position: relative;
  z-index: 1;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--color-surface-hover);
}

.step-card__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 5rem;
  position: absolute;
  top: 10px;
  right: 20px;
  opacity: 0.05;
  color: #fff;
  pointer-events: none;
}

.step-card__icon {
  margin-bottom: 16px;
}

.step-card__icon svg {
  width: 48px;
  height: 48px;
}

.step-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.step-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* --- Step Card: Text area --- */
.step-card__text {
  padding: 32px 28px 20px;
}

/* --- Step Card: Phone device frame --- */
.step-card__phone {
  display: flex;
  justify-content: center;
  padding: 0 20px 28px;
  margin-top: auto;
}

.step-device {
  width: 160px;
  height: 320px;
  border-radius: 28px;
  background: #000;
  border: 3px solid #3a3a4e;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(139, 92, 246, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2), box-shadow 0.4s ease;
}

.step-card:hover .step-device {
  transform: translateY(-8px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dynamic island */
.step-device::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 16px;
  background: #000;
  border-radius: 12px;
  z-index: 5;
}

.step-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 25px;
}

/* connection dots */
.step-dot {
  display: none;
}

/* ============================================================
   SECTOR DETAIL PAGE (matches iOS MarketSectorDetailView)
   ============================================================ */
.sector-sentiment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1.5px solid;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.sector-sentiment__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sector-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.sector-header__icon {
  width: 56px; height: 56px;
  min-width: 56px;
  background: rgba(167,139,250,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.sector-header__icon svg {
  width: 100%; height: 100%;
}
.sector-header__sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 4px 0 0;
}
.sector-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.sector-index-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 4px 0 24px;
}
.sector-chart-container {
  min-height: 180px;
  margin-top: 8px;
}
.sector-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.sector-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sector-metric__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  line-height: 1.4;
}
.sector-metric__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.sector-history {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}
.sector-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sector-history__row:last-child { border-bottom: none; }
.sector-history__row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sector-history__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
.sector-history__year {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.sector-history__value {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sector-forecast-badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(16,185,129,0.15);
  color: var(--color-teal);
  padding: 3px 8px;
  border-radius: 6px;
}
.sector-explainer {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}
.sector-outlook {
  margin-bottom: 40px;
}

/* ============================================================
   APP SHOWCASE
   ============================================================ */
.app-showcase {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--color-dark), var(--color-navy));
  overflow: hidden;
}

.app-showcase__phones {
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-top: 60px;
  padding: 0 24px 40px;
}

/* Individual phone wrapper */
.showcase-phone {
  text-align: center;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2);
  /* Entrance animation */
  opacity: 0;
  animation: phone-rise 0.8s cubic-bezier(.22,.68,0,1.2) forwards;
}

.showcase-phone:nth-child(1) { animation-delay: 0s; }
.showcase-phone:nth-child(2) { animation-delay: 0.15s; }
.showcase-phone:nth-child(3) { animation-delay: 0.3s; }
.showcase-phone:nth-child(4) { animation-delay: 0.45s; }
.showcase-phone:nth-child(5) { animation-delay: 0.6s; }

@keyframes phone-rise {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.showcase-phone:hover {
  transform: translateY(-14px) scale(1.03);
}

/* Device frame — iPhone-like */
.showcase-device {
  border-radius: 32px;
  background: #000;
  border: 3px solid #3a3a4e;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(139, 92, 246, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.showcase-phone:hover .showcase-device {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dynamic island */
.showcase-device::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}

.showcase-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 29px;
}

/* Side phones — smaller */
.showcase-phone--side .showcase-device {
  width: 190px;
  height: 380px;
  border-radius: 30px;
}

.showcase-phone--side .showcase-device::before {
  width: 55px;
  height: 18px;
  top: 8px;
}

.showcase-phone--side .showcase-device img {
  border-radius: 27px;
}

/* Center phone — larger + elevated */
.showcase-phone--center {
  margin-bottom: 20px;
}

.showcase-phone--center .showcase-device {
  width: 250px;
  height: 500px;
  border-radius: 38px;
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(139, 92, 246, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.showcase-phone--center .showcase-device img {
  border-radius: 35px;
}

/* Label under each phone */
.showcase-phone__label {
  display: block;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Float animation — center phone */
.showcase-phone--center .showcase-device {
  animation: showcase-float 6s ease-in-out infinite;
}

/* Float animation — side phones (offset timing) */
.showcase-phone--side:nth-child(1) .showcase-device {
  animation: showcase-float-gentle 7s ease-in-out 0.5s infinite;
}

.showcase-phone--side:nth-child(2) .showcase-device {
  animation: showcase-float-gentle 8s ease-in-out 1s infinite;
}

.showcase-phone--side:nth-child(4) .showcase-device {
  animation: showcase-float-gentle 7.5s ease-in-out 0.8s infinite;
}

.showcase-phone--side:nth-child(5) .showcase-device {
  animation: showcase-float-gentle 8.5s ease-in-out 0.3s infinite;
}

@keyframes showcase-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes showcase-float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features {
  padding: 120px 0;
  background: var(--color-navy);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--color-surface-hover);
}

.feature-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.feature-card__icon {
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 40px;
  height: 40px;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.feature-card__link {
  font-size: 0.9rem;
  color: var(--color-purple);
  font-weight: 500;
  transition: color 0.3s;
}

.feature-card__link:hover {
  color: var(--color-purple-light);
}

/* ============================================================
   SECTORS
   ============================================================ */
.sectors {
  padding: 120px 0;
  background: var(--color-dark);
}

.sectors__link-wrap {
  margin-top: 12px;
  margin-bottom: 40px;
}

.sectors__link-wrap a {
  color: var(--color-purple);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.sectors__link-wrap a:hover {
  color: var(--color-purple-light);
}

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.sector-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-purple);
  background: var(--color-surface-hover);
}

.sector-card__emoji,
.sector-card__abbr {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-purple-light);
  margin-bottom: 10px;
  opacity: 0.7;
}

.sector-card__icon-wrap svg {
  width: 36px;
  height: 36px;
  color: var(--color-purple-light);
  margin-bottom: 12px;
}

.sector-card__name {
  font-weight: 500;
  font-size: 0.9rem;
}

/* ============================================================
   DISCOVERY PREVIEW
   ============================================================ */
.discovery {
  padding: 120px 0;
  background: var(--color-navy);
}

.discovery__scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 40px 0;
}

.discovery__scroll::-webkit-scrollbar {
  display: none;
}

/* ============================================================
   ARTICLES PREVIEW
   ============================================================ */
.articles-preview {
  padding: 120px 0;
  background: var(--color-dark);
}

.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}


.article-card__body {
  padding: 24px;
}

.article-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.article-card__time {
  color: var(--color-text-dim);
}

.article-card__read-more {
  color: var(--color-purple);
  font-weight: 500;
  transition: color 0.3s;
}

.article-card__read-more:hover {
  color: var(--color-purple-light);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 120px 0;
  background: var(--color-navy);
  background-image: radial-gradient(ellipse at center, var(--color-purple-glow), transparent 70%);
}

.pricing__cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.price-card {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.price-card--featured {
  border: 2px solid var(--color-gold);
}

.price-card__popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.price-card__save {
  display: inline-block;
  background: var(--color-purple);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 8px;
}

.price-card__tier {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.price-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: #fff;
}

.price-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.price-card__equiv {
  font-size: 0.9rem;
  color: var(--color-teal);
  margin-top: 4px;
}

.price-card__divider {
  height: 1px;
  background: var(--color-border);
  margin: 24px 0;
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.price-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.price-card__feature svg {
  flex-shrink: 0;
  color: var(--color-teal);
}

.price-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s, filter 0.3s;
}

.price-card__cta:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.price-card__cta--purple {
  background: var(--color-purple);
  color: #fff;
}

.price-card__cta--gold {
  background: var(--color-gold);
  color: var(--color-dark);
  animation: glowPulse 2s ease-in-out infinite;
}

.pricing__note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.pricing__note span {
  color: var(--color-teal);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #4C1D95, #8B5CF6, #1E293B);
  text-align: center;
}

.final-cta .section-heading {
  margin-bottom: 16px;
}

.final-cta__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
}

.final-cta__note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer__contact {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* ============================================================
   SUB PAGES — Shared
   ============================================================ */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero--dark {
  background: linear-gradient(180deg, var(--color-dark), var(--color-navy));
}

.page-hero .section-heading {
  font-size: 3rem;
}

.page-hero .section-subheading {
  margin: 0 auto;
}

.page-hero__stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 32px;
  font-size: 0.95rem;
}

.page-hero__stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

/* Filter bar */
.filter-bar {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.filter-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-bar__inner::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.filter-pill:hover {
  color: #fff;
  border-color: var(--color-purple);
}

.filter-pill.active {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}

.filter-separator {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  flex-shrink: 0;
}

.filter-bar__search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-bar__search svg {
  width: 16px;
  height: 16px;
}

/* Content grid for sub-pages */
.content-section {
  padding: 60px 0 120px;
  background: var(--color-navy);
}

.content-grid--3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.content-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.content-grid--5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* Sectors page larger cards */
.sector-card--large {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sector-card--large .sector-card__emoji {
  font-size: 3.5rem;
}

.sector-card--large .sector-card__name {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.sector-card--large .sector-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
}

.sector-card--large .sector-card__count {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: 4px;
}

.sector-card__trend {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 2px;
}

.sector-card__baseline {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.3;
}

.sector-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2px;
}

/* Legal pages (terms, privacy) */
.legal {
  padding: 40px 0 120px;
  background: var(--color-navy);
}

.legal__layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
}

.legal__toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--color-border);
}

.legal__toc-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #fff;
}

.legal__toc a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 6px 0;
  transition: color 0.3s;
}

.legal__toc a:hover {
  color: var(--color-purple);
}

.legal__content {
  max-width: 800px;
}

.legal__content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 48px 0 16px;
  color: #fff;
  padding-top: 16px;
}

.legal__content h2:first-of-type {
  margin-top: 0;
}

.legal__content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 16px;
}

.legal__content ul {
  margin: 0 0 16px 24px;
}

.legal__content li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  list-style: disc;
  margin-bottom: 4px;
}

.legal__content strong {
  color: #fff;
}

.legal__meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* Support page */
.support-hero__search {
  max-width: 500px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.support-hero__search svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}

.support-hero__search span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq {
  padding: 60px 0 80px;
  background: var(--color-navy);
}

.faq__list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s;
}

.faq__question:hover {
  color: #fff;
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s;
}

.faq__item.open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__answer-inner {
  padding: 0 0 24px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.contact-section {
  padding: 80px 0 120px;
  background: var(--color-dark);
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
}

.contact-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-card__email {
  font-size: 0.9rem;
  color: var(--color-purple);
  word-break: break-all;
}

.contact-card__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Page bottom CTA */
.page-bottom {
  padding: 60px 0;
  text-align: center;
  background: var(--color-navy);
  border-top: 1px solid var(--color-border);
}

.page-bottom p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.page-bottom .btn-primary {
  display: inline-flex;
  margin-top: 12px;
}

/* Disclaimer page special elements */
.legal__warning-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 4px solid var(--color-gold);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal__warning-banner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0;
}

.legal__acknowledgment-box {
  background: var(--color-surface);
  border: 2px solid var(--color-purple);
  border-radius: 16px;
  padding: 32px;
  margin-top: 16px;
}

.legal__acknowledgment-box p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.legal__acknowledgment-box ol {
  margin: 0 0 0 24px;
}

.legal__acknowledgment-box li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 8px;
  list-style: decimal;
}

.legal__content ol {
  margin: 0 0 16px 24px;
}

.legal__content ol li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  list-style: decimal;
  margin-bottom: 4px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__right {
    display: none;
  }

  .hero__headline {
    font-size: 3rem;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

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

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

  .pricing__cards {
    flex-direction: column;
    max-width: 400px;
  }

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

  .legal__layout {
    grid-template-columns: 1fr;
  }

  .legal__toc {
    position: static;
  }

  .content-grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {

  .navbar__links,
  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__headline {
    font-size: 2.5rem;
  }

  .hero__sub {
    font-size: 1.1rem;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats__inner {
    flex-direction: column;
    gap: 32px;
  }

  .stats__item::after {
    display: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid::before {
    display: none;
  }

  .section-heading {
    font-size: 2rem;
  }

  .page-hero .section-heading {
    font-size: 2.2rem;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

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

  .articles__grid {
    grid-template-columns: 1fr;
  }

  .pricing__cards {
    flex-direction: column;
    max-width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .content-grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .content-grid--4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .contact__cards {
    grid-template-columns: 1fr;
  }

  .page-hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .filter-bar__search {
    display: none;
  }

  .how-it-works,
  .app-showcase,
  .features,
  .sectors,
  .discovery,
  .articles-preview,
  .pricing {
    padding: 80px 0;
  }

  /* Reduce page hero padding on sub-pages (articles, sectors, discovery) */
  .page-hero {
    padding: 80px 0 40px;
  }

  .page-hero .section-heading {
    font-size: 1.8rem;
  }

  .page-hero .section-subheading {
    font-size: 0.95rem;
  }

  /* Article cards: stack better on mobile */
  .article-card {
    flex-direction: row;
    gap: 12px;
  }

  .article-card__img {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 10px;
  }

  .article-card__title {
    font-size: 0.95rem;
  }

  /* Sector cards: single column on mobile */
  .content-grid--4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* Investment badge */
.disc-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.disc-card__badge--gainer {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.disc-card__badge--gem {
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
}

.disc-card__badge--premium {
  background: rgba(245, 158, 11, 0.9);
  color: #000;
}

/* Article card summary */
.article-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__tag {
  background: rgba(139, 92, 246, 0.85);
  color: #fff;
}

@media (max-width: 768px) {
  .detail-modal {
    max-height: 90vh;
    border-radius: 16px;
  }

  .detail-modal__img {
    height: 200px;
  }

  .detail-modal__meta {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   APP-MATCHING DISCOVERY CARDS
   ============================================================ */
/* Discovery item card - matches app's DiscoveryItemCard */
.disc-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.disc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Image wrapper (matches app ZStack with 160px height) */
.disc-card__img-wrap {
  height: 160px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-card__img-wrap--sector {
  background: linear-gradient(135deg, #1E293B, #2D1B69);
}

.disc-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.disc-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1f2e, #2D1B69);
}

.disc-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.disc-card__badge--gainer {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.disc-card__badge--gem {
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
}

.disc-card__badge--premium {
  background: rgba(245, 158, 11, 0.9);
  color: #000;
}

.disc-card__cat-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Price row (matches app HStack with price + trend badge) */
.disc-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.disc-card__body {
  padding: 12px;
}

.disc-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: capitalize;
  margin-top: 2px;
}

.disc-card__name {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.disc-card__price {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.disc-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.disc-card__trend--up {
  color: var(--color-teal);
  background: rgba(16, 185, 129, 0.2);
}

.disc-card__trend--down {
  color: var(--color-red);
  background: rgba(239, 68, 68, 0.2);
}

/* ============================================================
   APP-MATCHING ARTICLE BROWSE CARDS  
   (Matches app: thumbnail left, content right, chevron)
   ============================================================ */
.article-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, background 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}

.article-card__img {
  width: 90px;
  min-height: 90px;
  flex-shrink: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #1a1f2e;
}

.article-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.article-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.article-card__tag--watches {
  background: rgba(168, 85, 247, 0.15);
  color: #a78bfa;
}

.article-card__tag--electronics {
  background: rgba(45, 212, 191, 0.15);
  color: var(--color-teal);
}

.article-card__tag--fashion {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
}

.article-card__tag--vehicles {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

.article-card__tag--collectibles {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-gold);
}

.article-card__tag--default {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.article-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.article-card__meta svg {
  width: 12px;
  height: 12px;
}

.article-card__chart-label {
  color: rgba(139, 92, 246, 0.7);
}

.article-card__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Articles grid — stack vertically like the app */
.articles__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* Discovery grid — 2-column grid matching app LazyVGrid */
.content-grid--3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

/* ============================================================
   DETAIL PAGE (full page, not modal)
   ============================================================ */
.detail-page {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--color-dark);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-arc {
  transition: stroke-dasharray 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-page.open {
  transform: translateX(0);
}

.detail-page__nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-page__back {
  background: none;
  border: none;
  color: var(--color-purple-light);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-page__back:hover {
  opacity: 0.8;
}

.detail-page__hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.detail-page__content {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Category badge */
.detail-page__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  margin-bottom: 12px;
}

.detail-page__name {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* Price + trend row */
.detail-page__price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-page__price {
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}

.detail-page__trend {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-page__trend--up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-teal);
}

.detail-page__trend--down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
}

/* Price rolling animation (during chart scrub) */
.detail-page__price.price-rolling {
  transition: none;
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* Digit roll animation (matches iOS app number roll) */
.digit-roll {
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  vertical-align: bottom;
}

.digit-roll__new {
  display: inline-block;
  animation: digitRollIn 0.25s ease-out forwards;
}

@keyframes digitRollIn {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Analysis section fade-in animation */
@keyframes analysisFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#analysis-container>* {
  animation: analysisFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#analysis-container> :nth-child(2) {
  animation-delay: 0.08s;
}

#analysis-container> :nth-child(3) {
  animation-delay: 0.16s;
}

/* Glass card sections (matches app's .glassCard()) */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.glass-card__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-card__title svg {
  width: 16px;
  height: 16px;
  color: var(--color-purple-light);
}

.glass-card__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Investment score gauge */
.score-gauge {
  width: 80px;
  height: 80px;
  position: relative;
}

.score-gauge__circle {
  transform: rotate(-90deg);
}

.score-gauge__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}

.score-gauge__fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.score-gauge__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Recommendation badge */
.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rec-badge--buy {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-teal);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rec-badge--hold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.rec-badge--sell {
  background: rgba(239, 68, 68, 0.2);
  color: var(--color-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.rec-badge--avoid {
  background: rgba(239, 68, 68, 0.2);
  color: var(--color-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Tags flow */
.tags-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags-flow__tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
}

/* Meta grid */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.meta-grid__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-grid__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
}

.meta-grid__value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Risk/hold pills (matches app) */
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill--risk {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
}

.pill--hold {
  background: rgba(45, 212, 191, 0.15);
  color: var(--color-teal);
}

/* Sector pills in filter bar */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Discovery scroll - horizontal like app */
.discovery__scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.discovery__scroll::-webkit-scrollbar {
  display: none;
}

/* Article content in detail page */
.article-body {
  color: var(--color-text-muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body .article-h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 28px 0 12px;
}

.article-body .article-h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 24px 0 10px;
}

.article-body .article-img {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-body .article-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.article-meta__time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-meta__time svg {
  width: 12px;
  height: 12px;
}

.article-meta__author {
  color: var(--color-purple-light);
}

.article-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

/* ---- Article chart sections (interactive charts in articles) ---- */
.article-chart-section {
  margin-bottom: 0;
}

.article-chart-header {
  margin-bottom: 8px;
}

.article-chart-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-chart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.article-chart-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

/* ---- Recommendation badge (real AI data) ---- */
.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

/* Keep old article-text for backwards compat */
.article-text {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.article-text p {
  margin-bottom: 16px;
}

/* ---- Detail page: brand header ---- */
.detail-page__brand {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-purple-light);
}

@media (max-width: 600px) {
  .detail-page__brand {
    font-size: 0.75rem;
  }
}

.detail-page__brand svg {
  width: 14px;
  height: 14px;
}

.detail-page__source {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-bottom: 20px;
}

/* ---- Timeframe pills (matches app) ---- */
.tf-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tf-pill {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
}

.tf-pill:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-purple-light);
}

.tf-pill--active {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}

/* Chart legend */
.chart-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  display: inline-block;
  width: 24px;
  height: 2px;
}

.legend-line--solid {
  background: var(--color-purple);
}

.legend-line--dashed {
  background: repeating-linear-gradient(90deg, var(--color-purple-light) 0, var(--color-purple-light) 4px, transparent 4px, transparent 8px);
}

/* Detail chart container */
.detail-chart {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
}

/* ---- Investment Analysis card ---- */
.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.inv-timeframe {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-teal);
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
}

.inv-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.score-gauge {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.score-gauge svg {
  width: 100%;
  height: 100%;
}

.score-gauge__num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}

.score-gauge__label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
}

.inv-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.inv-badge--buy {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-teal);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.inv-badge--hold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Price rolling animation (during chart scrub) */
.detail-page__price.price-rolling {
  transition: none;
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* Price animate transition (number update with pulse) */
.detail-page__price.price-animate {
  animation: priceRoll 0.3s ease-out;
}

@keyframes priceRoll {
  0% {
    opacity: 0.4;
    transform: translateY(-6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Analysis section fade-in animation */
@keyframes analysisFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.analysis-section {
  animation: analysisFadeIn 0.4s ease-out;
}

/* ---- Recommendation badge (real AI data) ---- */
.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rec-badge--buy {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.rec-badge--hold {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.rec-badge--sell {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.rec-badge--avoid {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Gauge ring */
.gauge-ring {
  margin: 0 auto 8px;
  display: block;
}

.gauge-arc {
  transition: stroke-dasharray 0.8s ease-out;
}

/* Score number */
.score-num {
  font-weight: 700;
  font-size: 1.4rem;
}

/* ---- AI Insights grid ---- */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.insight-card__label {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.insight-card__value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.insight-card__icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.insight-card__sub {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Key factors chips */
.key-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
}

.kf-chip {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  white-space: nowrap;
}

.key-factors li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.key-factors li:last-child {
  border-bottom: none;
}

/* ---- Mobile responsive fixes ---- */
@media (max-width: 768px) {

  .detail-page__name {
    font-size: 1.2rem;
  }

  .detail-page__price {
    font-size: 1.3rem;
  }

  .detail-page__hero-img {
    height: 200px;
  }

  .detail-page__content {
    padding: 16px 16px 40px;
  }

  .tf-pills {
    flex-wrap: wrap;
    gap: 6px;
  }

  .tf-pill {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .article-chart-name {
    font-size: 0.85rem;
  }

  .article-body p {
    font-size: 0.9rem;
  }

  .article-h1 {
    font-size: 1.1rem;
  }

  .article-h2 {
    font-size: 1rem;
  }

  .insights-grid {
    gap: 8px;
  }

  .glass-card {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .content-grid--3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-page__price {
    font-size: 1.1rem;
  }

  .detail-page__name {
    font-size: 1rem;
  }

  .detail-page__hero-img {
    height: 180px;
  }

  .detail-chart {
    height: 160px;
  }
}

/* Chart pulse animation (matches iOS Now point pulsing) */
@keyframes chartPulse {

  0%,
  100% {
    r: 12;
    opacity: 0.2;
  }

  50% {
    r: 18;
    opacity: 0.08;
  }
}

.chart-pulse {
  animation: chartPulse 1.5s ease-in-out infinite;
}