/* ===================================================================
   RARIBLE TRADE — LANDING PAGE
   Aesthetic: Terminal Luxe — Bloomberg meets premium fintech
   Typography: Syne (display) + Plus Jakarta Sans (body) + JetBrains Mono (data)
   =================================================================== */

/* ===== LANDING OVERRIDES ===== */
.landing-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
}

/* Noise texture overlay for depth */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

[data-theme="light"] .noise-overlay {
  opacity: 0.02;
}

/* ===== NAVIGATION ===== */
.landing-body .landing-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  height: auto;
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ln-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
}

.ln-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ln-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.ln-logo-text span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ln-nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.ln-nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.ln-nav-links a:hover {
  color: var(--text-primary);
  background: rgba(56, 97, 251, 0.06);
}

.ln-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ln-nav-link-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  transition: color 0.2s;
  text-decoration: none;
}

.ln-nav-link-signin:hover {
  color: var(--text-primary);
}

.ln-nav-cta {
  padding: 9px 20px !important;
  font-size: 13px !important;
}

/* ===== HERO SECTION ===== */
.ln-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 40px 80px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

/* Grid background */
.ln-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 97, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 97, 251, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}

[data-theme="light"] .ln-hero-grid-bg {
  background-image:
    linear-gradient(rgba(56, 97, 251, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 97, 251, 0.06) 1px, transparent 1px);
}

/* Floating glow orbs with parallax */
.ln-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.ln-hero-glow--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(56, 97, 251, 0.15) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite;
}

.ln-hero-glow--2 {
  width: 400px;
  height: 400px;
  bottom: 5%;
  right: 10%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}

.ln-hero-glow--3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite 2s;
}

[data-theme="light"] .ln-hero-glow--1 { opacity: 0.5; }
[data-theme="light"] .ln-hero-glow--2 { opacity: 0.4; }
[data-theme="light"] .ln-hero-glow--3 { opacity: 0.3; }

.ln-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ln-hero-content {
  max-width: 600px;
}

/* Badge */
.ln-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(56, 97, 251, 0.06);
  border: 1px solid rgba(56, 97, 251, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}

.ln-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}

/* Title */
.ln-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* Description */
.ln-hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Actions */
.ln-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ln-hero-btn-primary {
  position: relative;
  overflow: hidden;
}

.ln-hero-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.6s ease;
}

.ln-hero-btn-primary:hover::before {
  left: 100%;
}

/* Metrics */
.ln-hero-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ln-metric-val {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.ln-metric-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.ln-metric-sep {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

/* ===== HERO CHART VISUAL ===== */
.ln-hero-visual {
  display: flex;
  justify-content: flex-end;
}

.ln-chart-mock {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(56, 97, 251, 0.06),
    0 0 80px rgba(56, 97, 251, 0.06);
  position: relative;
}

[data-theme="light"] .ln-chart-mock {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(56, 97, 251, 0.08);
}

.ln-chart-header-mock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.ln-chart-pair-mock {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.ln-chart-price-mock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--green);
}

.ln-chart-change-mock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--green);
  background: var(--green-bg);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.ln-chart-svg {
  display: block;
  width: 100%;
  height: 160px;
}

.ln-chart-area {
  opacity: 0.6;
}

.ln-chart-dot {
  animation: pulse 2s ease-in-out infinite;
}

.ln-chart-dot-ring {
  animation: pulse 2s ease-in-out infinite;
}

.ln-chart-overlay-data {
  padding: 16px 24px 20px;
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--glass-border);
}

.ln-cod-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ln-cod-row span:first-child {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.ln-cod-row span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== SECTIONS ===== */
.ln-section {
  padding: 100px 40px;
  position: relative;
}

.ln-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ln-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.ln-section-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
  padding: 0 24px;
}

.ln-section-eyebrow::before,
.ln-section-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.ln-section-eyebrow::before { left: 0; }
.ln-section-eyebrow::after { right: 0; }

.ln-section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

/* ===== FEATURES ===== */
.ln-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ln-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: calc(var(--delay, 0) * 0.1s);
}

.ln-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 97, 251, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(56, 97, 251, 0.08);
}

.ln-feature-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ln-feature-card:hover .ln-feature-accent {
  transform: scaleX(1);
}

.ln-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 97, 251, 0.12), rgba(108, 92, 231, 0.08));
  border: 1px solid rgba(56, 97, 251, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: all 0.35s ease;
}

.ln-feature-card:hover .ln-feature-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(56, 97, 251, 0.3);
}

.ln-feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.ln-feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== STATS ===== */
.ln-stats-section {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.ln-stats-bg-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.08;
}

.ln-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.ln-stat {
  text-align: center;
  padding: 20px 0;
}

.ln-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.ln-stat-suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.ln-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* ===== REVIEWS — Enhanced ===== */
.landing-body .review-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  position: relative;
}

.landing-body .review-card:hover {
  border-color: rgba(56, 97, 251, 0.25);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    0 0 30px rgba(56, 97, 251, 0.06);
}

.review-quote-mark {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 48px;
  font-family: 'Syne', serif;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  pointer-events: none;
}

.landing-body .review-stars {
  color: #F5A623;
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.landing-body .review-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  min-height: 85px;
}

.landing-body .review-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
}

/* ===== CTA SECTION ===== */
.ln-cta-section {
  position: relative;
  text-align: center;
  padding: 100px 40px;
  overflow: hidden;
}

.ln-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(56, 97, 251, 0.12) 0%, rgba(108, 92, 231, 0.05) 40%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.ln-cta-inner {
  position: relative;
  z-index: 1;
}

.ln-cta-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.ln-cta-inner p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.ln-footer {
  border-top: 1px solid var(--glass-border);
}

.ln-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ln-footer-links {
  display: flex;
  gap: 24px;
}

.ln-footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.ln-footer-links a:hover {
  color: var(--text-primary);
}

.ln-footer-copy {
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .ln-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ln-hero-visual {
    justify-content: center;
  }

  .ln-hero-content {
    max-width: 100%;
    text-align: center;
  }

  .ln-hero-actions {
    justify-content: center;
  }

  .ln-hero-metrics {
    justify-content: center;
  }

  .ln-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .ln-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ln-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .ln-footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .ln-nav-inner {
    padding: 0 14px;
    height: 56px;
  }

  .ln-nav-links {
    display: none;
  }

  .ln-nav-link-signin {
    display: none;
  }

  /* Compact nav actions on mobile */
  .ln-nav-actions {
    gap: 8px;
  }

  .ln-nav-cta {
    padding: 7px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .ln-nav-actions .lang-switcher {
    display: none;
  }

  .ln-nav-actions .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 8px;
  }

  .ln-hero {
    padding: 72px 16px 48px;
    min-height: auto;
  }

  .ln-hero-badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  .ln-hero-title {
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: -1px;
  }

  .ln-hero-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .ln-hero-metrics {
    flex-direction: column;
    gap: 16px;
  }

  .ln-metric-sep {
    width: 40px;
    height: 1px;
  }

  .ln-metric-val {
    font-size: 20px;
  }

  .ln-hero-visual {
    display: none;
  }

  .ln-section {
    padding: 48px 16px;
  }

  .ln-section-title {
    font-size: 24px;
  }

  .ln-section-desc {
    font-size: 14px;
  }

  .ln-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ln-feature-card {
    padding: 20px;
  }

  .ln-feature-card h3 {
    font-size: 16px;
  }

  .ln-feature-card p {
    font-size: 13px;
  }

  .ln-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ln-stat-num {
    font-size: 28px;
  }

  .reviews-controls {
    gap: 10px;
  }

  .review-card {
    padding: 20px;
  }

  .review-text {
    font-size: 14px;
  }

  .ln-cta-section {
    padding: 48px 16px;
  }

  .ln-cta-inner h2 {
    font-size: clamp(22px, 6vw, 36px);
  }

  .ln-cta-inner p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* CTA button — make it fit */
  .ln-cta-inner .btn {
    padding: 12px 24px !important;
    font-size: 14px !important;
    width: 100%;
    max-width: 300px;
  }

  .ln-footer-inner {
    padding: 20px 16px;
  }

  .ln-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* Hero actions — full width on mobile */
  .ln-hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .ln-hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* Ticker compact */
  .ticker-item {
    gap: 8px;
    padding: 0 16px;
  }

  .ticker-symbol {
    font-size: 12px;
  }

  .ticker-price {
    font-size: 12px;
  }

  .ticker-change {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .ln-nav-inner {
    padding: 0 10px;
    height: 52px;
  }

  .ln-logo-mark {
    width: 28px;
    height: 28px;
  }

  .ln-logo-text {
    font-size: 17px;
  }

  .ln-nav-cta {
    padding: 6px 12px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }

  .ln-hero {
    padding: 64px 14px 40px;
  }

  .ln-hero-title {
    font-size: 28px;
  }

  .ln-hero-desc {
    font-size: 14px;
  }

  .ln-section {
    padding: 40px 14px;
  }

  .ln-section-title {
    font-size: 22px;
  }

  .ln-stat-value {
    font-size: 28px;
  }

  .ln-nav-inner {
    padding: 0 12px;
    height: 52px;
  }

  .ln-nav-logo span {
    font-size: 16px;
  }
}
