/* ==========================================================
   Landing Page Styles — TV2MT5 Bridge
   ========================================================== */

/* ---------- Background ---------- */
.landing-body {
  background: var(--bg-void);
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,138,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,138,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,138,0.3), transparent);
  animation: scan 6s linear infinite;
  top: 0;
}
@keyframes scan {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

/* ---------- Ticker Tape ---------- */
.ticker-tape {
  position: relative;
  z-index: 10;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  gap: var(--s8);
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding: 0 var(--s4);
}
.ticker-inner:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tick {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.tick b { font-weight: 500; color: var(--text-secondary); margin: 0 4px; }
.tick.up { color: var(--green); }
.tick.dn { color: var(--red); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,6,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.logo-icon {
  color: var(--green);
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px var(--green));
}
.logo-accent { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.nav-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  background: var(--green);
  color: var(--bg-void);
  border-radius: var(--r2);
  transition: all var(--t-fast);
}
.nav-cta:hover {
  background: #4dffa0;
  box-shadow: 0 0 20px var(--green-glow);
}

/* Mobile nav */
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s2);
}
.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--t-fast);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--s4) var(--s6);
  border-top: 1px solid var(--border);
  gap: var(--s4);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: var(--s2) 0;
}
.mobile-cta {
  display: inline-block;
  text-align: center;
  padding: var(--s3) var(--s6);
  background: var(--green);
  color: var(--bg-void);
  font-weight: 600;
  border-radius: var(--r2);
  margin-top: var(--s2);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: var(--s20) 0 var(--s16);
  overflow: hidden;
}

/* Glowing background orb */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(57,255,138,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--s6);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px 14px;
  background: rgba(57,255,138,0.08);
  border: 1px solid rgba(57,255,138,0.2);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: var(--s6);
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-green 2s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: var(--s6);
  color: var(--text-primary);
}

.hero-highlight {
  color: var(--green);
  position: relative;
}
.hero-highlight-alt {
  color: var(--amber);
  position: relative;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--s8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  margin-bottom: var(--s10);
  flex-wrap: wrap;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s5) 0;
  margin-bottom: var(--s10);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--s8);
  gap: 4px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal window */
.terminal-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-mid);
}
.terminal-window:hover {
  box-shadow: var(--shadow-glow);
  border-color: rgba(57,255,138,0.2);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}
.terminal-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.terminal-status.live {
  color: var(--green);
  animation: blink 2s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.terminal-body {
  padding: var(--s5);
  position: relative;
}
.terminal-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre;
}
.t-gray   { color: var(--text-muted); }
.t-green  { color: var(--green); }
.t-yellow { color: var(--amber); }
.t-white  { color: var(--text-primary); }
.t-cyan   { color: var(--cyan); }
.t-orange { color: #fb923c; }
.t-purple { color: var(--purple); }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--green);
  animation: cursor-blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Section Layout ---------- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--s12);
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--s3);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ---------- Features ---------- */
.features {
  position: relative;
  z-index: 1;
  padding: var(--s20) 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--s4);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--s6);
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,138,0.3), transparent);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.feature-card:hover {
  border-color: rgba(57,255,138,0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::before { opacity: 1; }

.feature-card--large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--s4);
}
.feature-card--large .feature-metric {
  text-align: right;
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.feature-card--large .feature-icon {
  grid-column: 1;
  grid-row: 1;
}
.feature-card--large .feature-title {
  grid-column: 1;
  grid-row: 2;
}
.feature-card--large .feature-desc {
  grid-column: 1;
  grid-row: 3;
}

.feature-card--accent {
  background: linear-gradient(135deg, rgba(57,255,138,0.08) 0%, var(--bg-card) 100%);
  border-color: rgba(57,255,138,0.15);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: var(--s3);
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--s2);
}
.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feature-link {
  display: inline-block;
  margin-top: var(--s4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  transition: gap var(--t-fast);
}
.feature-link:hover { text-decoration: underline; }

.metric-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--s1);
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large { grid-column: span 2; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; display: flex; flex-direction: column; }
}

/* ---------- How It Works ---------- */
.how-section {
  position: relative;
  z-index: 1;
  padding: var(--s20) 0;
  border-top: 1px solid var(--border);
}

.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 220px;
}
.step-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(57,255,138,0.15);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: var(--s4);
}
.step:hover .step-number { color: rgba(57,255,138,0.4); transition: color var(--t-mid); }
.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--s2);
}
.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-connector {
  flex: 0.5;
  height: 1px;
  background: linear-gradient(90deg, var(--green-dim), transparent);
  margin-top: 48px;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .steps-container { flex-direction: column; align-items: center; gap: var(--s6); }
  .step-connector { width: 1px; height: 30px; background: linear-gradient(180deg, var(--green-dim), transparent); margin: 0; }
}

/* ---------- Pricing ---------- */
.pricing {
  position: relative;
  z-index: 1;
  padding: var(--s20) 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  align-items: start;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  padding: var(--s6);
  position: relative;
  transition: all var(--t-mid);
}
.plan-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}
.plan-card--featured {
  border-color: rgba(57,255,138,0.3);
  background: linear-gradient(160deg, rgba(57,255,138,0.06) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 30px rgba(57,255,138,0.08);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--green);
  color: var(--bg-void);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}
.plan-header { margin-bottom: var(--s5); }
.plan-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--s3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-amount {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}
.plan-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.plan-features li::before {
  content: '→';
  color: var(--green);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.plan-btn {
  display: block;
  text-align: center;
  padding: var(--s3) var(--s4);
  border-radius: var(--r2);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--t-fast);
}
.plan-btn--primary {
  background: var(--green);
  color: var(--bg-void);
}
.plan-btn--primary:hover {
  background: #4dffa0;
  box-shadow: 0 0 20px var(--green-glow);
}
.plan-btn--ghost {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.plan-btn--ghost:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--s20) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(57,255,138,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: var(--s4);
}
.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--s8);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s12) 0 var(--s8);
  position: relative;
  z-index: 1;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s6);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s12);
  margin-bottom: var(--s8);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--s3); }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-top: var(--s2); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.footer-col { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--s1);
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text-secondary); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s5) var(--s6) 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.72rem !important; color: var(--text-disabled) !important; }

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: var(--s8); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
