/* Index page styles (page-specific only). Shared baseline moved to common/common.css. */

body {
  background: #0a1628;
  color: #fff;
}

/* ═══ LANDING HERO ═══ */
.landing {
  min-height: 100vh;
  padding-top: calc(var(--compliance-h) + var(--nav-h));
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}

/* Multi-layer atmospheric background */
.landing-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(110,176,194,0.16), transparent),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(47,120,173,0.14), transparent),
    radial-gradient(ellipse 50% 40% at 90% 70%, rgba(20,63,116,0.18), transparent),
    linear-gradient(170deg, #0a1628 0%, var(--navy) 40%, #1a4f8a 80%, #0a1628 100%);
}

/* Subtle grid texture */
.landing-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(110,176,194,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,176,194,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Noise grain overlay */
.landing-noise {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Floating lobster glass cards */
.floaters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pre-float {
  position: absolute; width: 80px; height: 80px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center; font-size: 36px; color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  animation: float-lobster 7s ease-in-out infinite;
}
.pre-float .pf-mini {
  position: absolute; bottom: 8px; right: 8px; font-size: 9px; padding: 3px 6px;
  border-radius: 999px; background: rgba(5,13,24,0.7); color: rgba(255,255,255,0.6); font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* Main content */
.landing-content {
  position: relative; z-index: 3; max-width: 1380px; margin: 0 auto;
  padding: 40px 30px 60px;
}

/* Eyebrow tag */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto 28px; width: fit-content;
  padding: 5px 14px; border-radius: 6px;
  border: 1px solid rgba(110,176,194,0.2);
  background: rgba(110,176,194,0.04);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.5); letter-spacing: .08em;
}
.eyebrow-sep { opacity: 0.3; }
.eyebrow-live {
  color: var(--success); display: flex; align-items: center; gap: 6px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
  animation: blink-dot 1.5s ease-in-out infinite;
}
@keyframes blink-dot { 50% { opacity: 0.3; } }

/* Title */
.landing-title {
  text-align: center;
  font-family: var(--font-display); font-size: 56px; line-height: 1.12;
  font-weight: 900; color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.landing-title strong {
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 60%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-title .break-line { display: block; margin-top: 4px; }
.landing-title .mono-count {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 0.6em; color: var(--cyan); letter-spacing: 0;
  -webkit-text-fill-color: var(--cyan);
}

/* Subtitle */
.landing-sub {
  max-width: 760px; margin: 0 auto 40px;
  text-align: center; font-size: 15px; line-height: 2;
  color: rgba(255,255,255,0.5); letter-spacing: 0.3px;
}

/* ═══ ORBITAL STAGE ═══ */
.orbital-stage {
  position: relative; min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

/* Concentric rings */
.ring {
  position: absolute; border-radius: 999px;
  border: 1px solid rgba(110,176,194,0.1);
  background: radial-gradient(circle at center, rgba(110,176,194,0.04), transparent 70%);
}
.ring.r1 { width: 680px; height: 680px; animation: pulse-ring 6s ease-in-out infinite; }
.ring.r2 { width: 480px; height: 480px; animation: pulse-ring 6s ease-in-out 1.5s infinite; }
.ring.r3 { width: 300px; height: 300px; animation: pulse-ring 6s ease-in-out 3s infinite; border-color: rgba(110,176,194,0.14); }

/* Rotating orbit with lobster chips */
.orbit { position: absolute; width: 760px; height: 760px; animation: spin 40s linear infinite; }

.lobster-chip {
  position: absolute; width: 106px; height: 106px; border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #fff;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.lobster-chip .emoji { font-size: 32px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.lobster-chip .name {
  font-size: 10px; font-weight: 700; text-align: center; max-width: 80px;
  line-height: 1.3; color: rgba(255,255,255,0.7); letter-spacing: 0.3px;
}
.lobster-chip.c1 { top: 6%; left: 50%; transform: translateX(-50%); }
.lobster-chip.c2 { top: 18%; right: 15%; }
.lobster-chip.c3 { top: 50%; right: 3%; transform: translateY(-50%); }
.lobster-chip.c4 { bottom: 15%; right: 14%; }
.lobster-chip.c5 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.lobster-chip.c6 { bottom: 15%; left: 14%; }
.lobster-chip.c7 { top: 50%; left: 3%; transform: translateY(-50%); }
.lobster-chip.c8 { top: 18%; left: 15%; }

/* Center portal */
.center-portal {
  position: relative; z-index: 3; width: 260px; height: 260px; border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(110,176,194,0.35), transparent 50%),
    radial-gradient(circle at 65% 65%, rgba(47,120,173,0.2), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(20,63,116,0.9), rgba(10,22,40,0.98));
  border: 1px solid rgba(110,176,194,0.18);
  box-shadow:
    0 0 0 1px rgba(110,176,194,0.06),
    0 0 0 16px rgba(110,176,194,0.04),
    0 0 80px rgba(110,176,194,0.12),
    0 40px 120px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #fff; text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s;
}
.center-portal:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(110,176,194,0.1),
    0 0 0 16px rgba(110,176,194,0.06),
    0 0 100px rgba(110,176,194,0.18),
    0 50px 140px rgba(0,0,0,0.55);
}
.center-portal .portal-emoji { font-size: 72px; line-height: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.center-portal .portal-title {
  font-family: var(--font-display); font-size: 16px; font-weight: 900;
  letter-spacing: .08em; color: rgba(255,255,255,0.95);
}
.center-portal .portal-hint {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--cyan); letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7;
}

/* ═══ CTA BUTTONS ═══ */
.cta-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap; margin-top: 12px;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--blue) 50%, var(--cyan));
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 6px 30px rgba(47,120,173,0.35), 0 0 0 1px rgba(110,176,194,0.2);
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative; overflow: hidden;
}
.cta-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1) 50%, transparent);
  opacity: 0; transition: opacity 0.3s;
}
.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(47,120,173,0.45), 0 0 0 1px rgba(110,176,194,0.3);
}
.cta-primary:hover::before { opacity: 1; }

.cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75); font-weight: 700; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.cta-secondary:hover {
  color: #fff; border-color: rgba(110,176,194,0.3);
  background: rgba(110,176,194,0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.cta-arrow { font-size: 18px; transition: transform 0.2s; }
.cta-primary:hover .cta-arrow { transform: translateX(3px); }

/* ═══ STAT STRIP ═══ */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(110,176,194,0.1);
  border: 1px solid rgba(110,176,194,0.12); border-radius: 12px;
  overflow: hidden;
  max-width: 720px; margin: 32px auto 0;
}
.stat-cell {
  background: rgba(10,22,40,0.85); padding: 18px 20px;
  backdrop-filter: blur(8px);
}
.stat-label {
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,0.4); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.stat-delta { font-size: 10px; }
.stat-delta.up { color: var(--success); }
.stat-delta.dn { color: var(--danger); }
.stat-value {
  font-family: var(--font-mono); font-size: 22px; font-weight: 500;
  color: #fff; letter-spacing: -0.01em;
}
.stat-value.up { color: var(--success); }

/* ═══ MARKET BOARD SECTION ═══ */
.board-section {
  background: var(--surface); padding: 80px 32px;
}
.board-inner {
  max-width: 1200px; margin: 0 auto;
}
.board-head {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  align-items: end; margin-bottom: 48px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.board-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--blue); letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid rgba(47,120,173,0.2);
  border-radius: 4px; background: rgba(47,120,173,0.06);
  align-self: start; margin-top: 6px; white-space: nowrap;
}
.board-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px); line-height: 1.25;
  color: var(--text); letter-spacing: -0.02em;
}
.board-title strong {
  color: var(--blue);
}
.board-sub {
  font-size: 14px; color: var(--neutral); max-width: 560px;
  margin-top: 12px; line-height: 1.8;
}

/* Board card grid */
.board-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.board-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.board-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--cyan));
}
.board-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20,63,116,0.08);
}
.bc-head {
  display: flex; justify-content: space-between; align-items: start;
  font-family: var(--font-mono); font-size: 11px;
}
.bc-sym { color: var(--text); font-weight: 600; letter-spacing: .02em; }
.bc-tag {
  padding: 2px 8px; border-radius: 4px;
  font-size: 9px; letter-spacing: .06em; font-family: var(--font-mono); font-weight: 500;
}
.tag-steady { background: rgba(47,120,173,0.08); color: var(--blue); border: 1px solid rgba(47,120,173,0.12); }
.tag-aggro { background: rgba(18,183,106,0.08); color: var(--success); border: 1px solid rgba(18,183,106,0.12); }
.tag-trend { background: rgba(247,144,9,0.08); color: var(--warning); border: 1px solid rgba(247,144,9,0.12); }
.tag-quant { background: rgba(240,68,56,0.08); color: var(--danger); border: 1px solid rgba(240,68,56,0.12); }
.bc-price {
  font-family: var(--font-mono); font-size: 24px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}
.bc-delta {
  font-family: var(--font-mono); font-size: 12px;
  display: flex; gap: 8px; color: var(--neutral);
}
.bc-delta .up { color: var(--success); }
.bc-delta .dn { color: var(--danger); }
.bc-spark { height: 40px; margin-top: 4px; }
.bc-spark svg { width: 100%; height: 100%; }
.bc-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--neutral); margin-top: 4px;
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* CTA section — etf-platform light style */
.cta-section {
  background: var(--surface); padding: 80px 32px;
}
.cta-inner {
  max-width: 800px; margin: 0 auto;
}
.cta-card {
  background: rgba(200,210,220,0.15);
  border: 1px solid rgba(180,190,200,0.25); border-radius: 14px;
  padding: 40px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cta-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--cyan));
}
.cta-card:hover {
  transform: translateY(-2px);
}
.cta-card-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--navy); line-height: 1.5; margin-bottom: 8px;
}
.cta-card-desc {
  font-size: 13px; color: var(--neutral); line-height: 1.7;
}
.cta-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px; white-space: nowrap;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20,63,116,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.cta-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20,63,116,0.3);
}

@media (max-width: 760px) {
  .cta-section { padding: 48px 16px; }
  .cta-card { flex-direction: column; text-align: center; padding: 32px 24px; }
  .cta-card-btn { width: 100%; justify-content: center; }
}

/* Index-specific animations */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.04); opacity: 0.18; }
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.reveal {
  opacity: 0;
  animation: fade-in-up 0.7s ease-out forwards;
}

.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.3s; }
.reveal-d3 { animation-delay: 0.5s; }
.reveal-d4 { animation-delay: 0.7s; }
.reveal-d5 { animation-delay: 0.9s; }

@media (max-width: 900px) {
  .landing-title { font-size: 40px; }
  .center-portal { width: 210px; height: 210px; }
  .orbit { width: 620px; height: 620px; }
  .lobster-chip { width: 88px; height: 88px; }
  .ring.r1 { width: 520px; height: 520px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .landing-content { padding: 30px 16px 40px; }
  .landing-title { font-size: 32px; }
  .landing-sub { font-size: 13px; }
  .orbital-stage { min-height: 340px; }
  .ring.r1 { width: 340px; height: 340px; }
  .ring.r2 { width: 240px; height: 240px; }
  .ring.r3 { width: 160px; height: 160px; }
  .orbit { width: 340px; height: 340px; }
  .lobster-chip { width: 68px; height: 68px; border-radius: 18px; }
  .lobster-chip .emoji { font-size: 22px; }
  .lobster-chip .name { font-size: 8px; max-width: 56px; }
  .center-portal { width: 160px; height: 160px; }
  .center-portal .portal-emoji { font-size: 48px; }
  .center-portal .portal-title { font-size: 12px; }
  .cta-primary,
  .cta-secondary { padding: 14px 24px; font-size: 14px; min-width: auto; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .stat-value { font-size: 18px; }

  .board-section { padding: 48px 16px; }
  .board-head { grid-template-columns: 1fr; gap: 12px; }
  .board-grid { grid-template-columns: 1fr; gap: 12px; }
  .bc-price { font-size: 20px; }
}