/* LVLD marketing site — tokens from docs/DESIGN-SYSTEM.md (dark theme, Iris accent) */

:root {
  --bg: #000000;
  --surface-1: #141416;
  --surface-2: #1f2023;
  --surface-3: #2a2b2f;
  --hairline: rgba(255, 255, 255, 0.14);
  --text-hi: #f2f0eb;
  --text-lo: #9a9ca1;
  --text-faint: #5f6165;
  --accent: #b18cff;
  --accent-glow: rgba(177, 140, 255, 0.14);
  --accent-ink: #0a0a0a;
  --negative: #ff5c4d;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--body);
  font-size: 17px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- type ---- */

.display-xl {
  font-family: var(--display);
  font-size: clamp(44px, 7.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.title {
  font-family: var(--display);
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.caption {
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-lo);
}

.lede { color: var(--text-lo); font-size: 19px; line-height: 28px; }

.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---- nav ---- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.nav img { height: 22px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-lo);
  transition: color 240ms var(--ease);
}

.nav-links a:hover { color: var(--text-hi); }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  transition: transform 120ms var(--ease), background 240ms var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--text-hi); color: #0a0a0a; }
.btn-primary:hover { background: #ffffff; }

.btn-outline {
  border: 1px solid var(--hairline);
  color: var(--text-hi);
}
.btn-outline:hover { background: var(--surface-1); }

.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }

/* ---- hero ---- */

.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  pointer-events: none;
}

.hero h1 { max-width: 15ch; margin: 0 auto 20px; }

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede { max-width: 54ch; margin: 0 auto 32px; }

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ---- phone mockups ---- */

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 56px 0 0;
}

.phone {
  position: relative;
  z-index: 2;
  width: 270px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 0 80px rgba(177, 140, 255, 0.07), 0 24px 64px rgba(0, 0, 0, 0.6);
}

.phone img {
  width: 100%;
  border-radius: 28px;
}

.phone.side {
  z-index: 1;
  opacity: 0.7;
  transform: translateY(36px) scale(0.9);
}

.phone.side:first-child { margin-right: -64px; }
.phone.side:last-child { margin-left: -64px; }

/* ---- sections ---- */

.section { padding: 96px 0; }

.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .caption { color: var(--accent); margin-bottom: 12px; }
.section-head .title { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.section-head p { color: var(--text-lo); margin-top: 12px; }

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 28px 24px;
}

.step .n {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 18px;
}

.step h3 { font-family: var(--body); font-size: 20px; line-height: 26px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 22px; color: var(--text-lo); }

/* features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 32px;
}

.feature { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; }

.feature .fico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature .fico svg { width: 22px; height: 22px; stroke: var(--text-hi); }

.feature h3 { font-size: 17px; font-weight: 600; line-height: 24px; }
.feature p { font-size: 15px; line-height: 22px; color: var(--text-lo); margin-top: 2px; }

/* security */

.security-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 32px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}

.security-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  pointer-events: none;
}

.security-copy h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.15; margin-bottom: 20px; }
.security-copy p { color: var(--text-lo); margin-bottom: 16px; max-width: 58ch; }

.security-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
}

.security-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: var(--text-hi);
}

.security-links a:hover { color: var(--accent); }

.security-art { position: relative; z-index: 1; }
.security-art img { width: 100%; }

/* footer */

footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 40px;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.foot-top img { height: 20px; width: auto; }

.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

.foot-links a { font-size: 15px; color: var(--text-lo); }
.foot-links a:hover { color: var(--text-hi); }

.foot-legal { font-size: 13px; line-height: 20px; color: var(--text-faint); max-width: 70ch; }
.foot-legal a { color: var(--text-lo); }

/* ---- legal pages ---- */

.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.legal h1 { font-family: var(--display); font-size: 40px; line-height: 1.1; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 8px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-family: var(--body); font-size: 20px; font-weight: 600; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-lo); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--text-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ---- load reveal ---- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 640ms var(--ease) forwards;
  }
  .reveal.d1 { animation-delay: 90ms; }
  .reveal.d2 { animation-delay: 180ms; }
  .reveal.d3 { animation-delay: 280ms; }
  .reveal.d4 { animation-delay: 400ms; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
  .phone.side.reveal { animation-name: rise-side; }
  @keyframes rise-side {
    to { opacity: 0.7; transform: translateY(36px) scale(0.9); }
  }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { border-radius: 999px; }

/* ---- responsive ---- */

@media (max-width: 900px) {
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .security-card { grid-template-columns: 1fr; padding: 48px 32px; }
  .security-art { display: none; }
  .phones .side { display: none; }
}

@media (max-width: 600px) {
  .steps, .features { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
}
