/* ================================================================
   DeFi Yield Terminal — Landing page
   Same palette as the app: obsidian + electric violet + emerald.
   Standalone stylesheet so the landing stays lean (no dashboard CSS).
   ================================================================ */

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

:root {
  --bg-base:       #0A0B10;
  --bg-surface:    #13151C;
  --bg-elevated:   #1A1D27;

  --border:          #242836;
  --border-subtle:   #1B1E28;
  --border-bright:   #343A4B;

  --text-primary:   #F2F3F7;
  --text-secondary: #A0A6B5;
  --text-muted:     #6B7181;
  --text-faint:     #464B59;

  --brand:        #7C5CFF;
  --brand-hover:  #8E72FF;
  --brand-deep:   #5B3AE5;
  --brand-soft:   rgba(124, 92, 255, 0.12);
  --brand-ring:   rgba(124, 92, 255, 0.30);

  --positive:      #10B981;
  --positive-soft: rgba(16, 185, 129, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --max-w: 1180px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-image:
    radial-gradient(1100px 700px at 12% -8%,  rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(1000px 600px at 95% 8%,   rgba(16, 185, 129, 0.06), transparent 60%);
  background-attachment: fixed;
}

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

/* ── Top nav ──────────────────────────────────────────────── */

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.15s;
}
.lp-brand:hover { opacity: 0.85; }

.lp-brand__mark { display: inline-flex; }

.lp-brand__name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.lp-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.lp-nav__cta:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

/* ── Hero ─────────────────────────────────────────────────── */

.lp-hero {
  padding: clamp(48px, 9vw, 120px) clamp(20px, 4vw, 48px) clamp(60px, 8vw, 100px);
  position: relative;
}

.lp-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.lp-pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 4px var(--positive-soft);
  animation: lp-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.lp-pill__strong {
  color: var(--text-primary);
  font-weight: 600;
}

.lp-hero__title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 18ch;
}

.lp-hero__title-accent {
  background: linear-gradient(90deg, var(--brand) 0%, var(--positive) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 58ch;
}
.lp-hero__sub strong { color: var(--text-primary); font-weight: 600; }

.lp-hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

/* ── Buttons ──────────────────────────────────────────────── */

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.18s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.lp-btn--primary {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 0 0 1px var(--brand-ring), 0 10px 32px rgba(124, 92, 255, 0.28);
}
.lp-btn--primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--brand-ring), 0 14px 38px rgba(124, 92, 255, 0.36);
}

.lp-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-bright);
}
.lp-btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--brand);
}

.lp-btn--large {
  padding: 16px 28px;
  font-size: 1rem;
}

/* ── Stat strip ───────────────────────────────────────────── */

.lp-stat-strip {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 18px 28px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(19, 21, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-wrap: wrap;
  justify-content: center;
}

.lp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 90px;
}
.lp-stat__value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.015em;
}
.lp-stat__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.lp-stat__sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ── Protocol marquee ─────────────────────────────────────── */

.lp-marquee {
  padding: 28px 0 56px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(19, 21, 28, 0.35);
}

.lp-marquee__eyebrow {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
  font-weight: 500;
}

.lp-marquee__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.lp-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  padding: 4px 28px;
  animation: lp-marquee 50s linear infinite;
  width: max-content;
}

.lp-marquee__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  opacity: 0.55;
  filter: grayscale(0.25);
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}
.lp-marquee__item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.08);
}

.lp-marquee__item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

@keyframes lp-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-marquee__track { animation: none; }
  .lp-pill__dot { animation: none; }
}

/* ── Sections ─────────────────────────────────────────────── */

.lp-section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 48px);
}

.lp-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.lp-section__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-align: center;
}

.lp-section__lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 14px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── Value cards ──────────────────────────────────────────── */

.lp-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.lp-value-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
}

.lp-value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-ring), transparent);
  opacity: 0.7;
}

.lp-value-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.lp-value-card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.lp-value-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.lp-value-card__body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.lp-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-primary);
}

/* ── Final CTA ────────────────────────────────────────────── */

.lp-final-cta {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(124, 92, 255, 0.10), transparent 70%),
    var(--bg-base);
}

.lp-final-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lp-final-cta__title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.lp-final-cta__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ── Footer ───────────────────────────────────────────────── */

.lp-footer {
  padding: 40px clamp(20px, 4vw, 48px) 56px;
  border-top: 1px solid var(--border-subtle);
}

.lp-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.lp-footer__brand { color: var(--text-secondary); font-weight: 600; }
.lp-footer__sep   { opacity: 0.5; }
.lp-footer a      { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-bright); text-underline-offset: 3px; }
.lp-footer a:hover { color: var(--brand-hover); }

.lp-footer__disclaimer {
  max-width: 80ch;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ── Responsive tweaks ────────────────────────────────────── */

@media (max-width: 640px) {
  .lp-nav { padding: 16px 18px; }
  .lp-brand__name { display: none; }
  .lp-stat-strip { gap: 16px; padding: 14px 18px; }
  .lp-stat__sep  { display: none; }
  .lp-stat { min-width: auto; }
  .lp-value-grid { margin-top: 36px; }
}
