/* ============================================================
   LOKVIA Design System — v1.0
   Dark industrial aesthetic for rental property matching
   ============================================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --lv-void:      #08090C;
  --lv-dark:      #0F1115;
  --lv-graphite:  #161A22;
  --lv-slate:     #1E232D;

  /* Text */
  --lv-cream:     #F0F2F7;
  --lv-text:      rgba(240, 242, 247, 0.85);
  --lv-muted:     rgba(240, 242, 247, 0.55);

  /* Accent */
  --lv-cyan:      #00D68F;
  --lv-cyan-70:   rgba(0, 214, 143, 0.70);
  --lv-cyan-40:   rgba(0, 214, 143, 0.40);
  --lv-cyan-15:   rgba(0, 214, 143, 0.15);
  --lv-cyan-06:   rgba(0, 214, 143, 0.06);

  /* Secondary */
  --lv-violet:    #B090FF;
  --lv-violet-15: rgba(176, 144, 255, 0.15);

  /* Borders */
  --lv-border:    rgba(240, 242, 247, 0.08);
  --lv-border-hl: rgba(0, 214, 143, 0.25);

  /* Fonts */
  --lv-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lv-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --lv-section-y: 120px;
  --lv-gap:       32px;

  /* Transitions */
  --lv-ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --lv-duration:  0.3s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--lv-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--lv-text);
  background-color: var(--lv-void);
  overflow-x: hidden;
}

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

a {
  color: var(--lv-cyan);
  text-decoration: none;
  transition: color var(--lv-duration) var(--lv-ease);
}

a:hover {
  color: var(--lv-cream);
}

/* --- Typography Scale --- */
.lv-display {
  font-family: var(--lv-font-body);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--lv-cream);
}

h1, .lv-h1 {
  font-family: var(--lv-font-body);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--lv-cream);
}

h2, .lv-h2 {
  font-family: var(--lv-font-body);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--lv-cream);
}

h3, .lv-h3 {
  font-family: var(--lv-font-body);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--lv-cream);
}

h4, .lv-h4 {
  font-family: var(--lv-font-body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lv-cream);
}

.lv-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.lv-body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

.lv-mono {
  font-family: var(--lv-font-mono);
}

/* --- Label Component --- */
.ubx-label {
  font-family: var(--lv-font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lv-cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ubx-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--lv-cyan);
}

/* --- Container --- */
.lv-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.lv-container--narrow {
  max-width: 880px;
}

/* --- Buttons --- */
.ubx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--lv-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--lv-duration) var(--lv-ease);
  text-decoration: none;
  white-space: nowrap;
}

.ubx-btn--primary {
  background: var(--lv-cyan);
  color: var(--lv-void);
  border-color: var(--lv-cyan);
}

.ubx-btn--primary:hover {
  background: transparent;
  color: var(--lv-cyan);
}

.ubx-btn--outline {
  background: transparent;
  color: var(--lv-cream);
  border-color: var(--lv-border-hl);
}

.ubx-btn--outline:hover {
  background: var(--lv-cyan-15);
  border-color: var(--lv-cyan);
  color: var(--lv-cyan);
}

.ubx-btn--ghost {
  background: transparent;
  color: var(--lv-muted);
  border-color: transparent;
  padding: 14px 16px;
}

.ubx-btn--ghost:hover {
  color: var(--lv-cyan);
}

.ubx-btn--sm {
  font-size: 0.8125rem;
  padding: 10px 20px;
}

/* --- Status Indicator --- */
.lv-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lv-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lv-cyan);
}

.lv-status__dot {
  width: 8px;
  height: 8px;
  background: var(--lv-cyan);
  position: relative;
}

.lv-status__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--lv-cyan-40);
  animation: lv-pulse 2s ease-in-out infinite;
}

@keyframes lv-pulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* ============================================================
   HEADER
   ============================================================ */
.lv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lv-border);
  height: 72px;
}

.lv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.lv-header__logo {
  flex-shrink: 0;
}

.lv-header__logo svg {
  height: 28px;
  width: auto;
}

.lv-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.lv-header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lv-muted);
  transition: color var(--lv-duration) var(--lv-ease);
}

.lv-header__nav a:hover {
  color: var(--lv-cream);
}

.lv-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lv-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.lv-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--lv-cream);
  transition: all var(--lv-duration) var(--lv-ease);
}

/* ============================================================
   HERO
   ============================================================ */
.lv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 var(--lv-section-y);
  background: var(--lv-void);
  overflow: hidden;
}

.lv-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--lv-cyan-06) 0%, transparent 70%);
  pointer-events: none;
}

.lv-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.lv-hero__label {
  margin-bottom: 24px;
}

.lv-hero__title {
  margin-bottom: 24px;
}

.lv-hero__title .lv-accent {
  color: var(--lv-cyan);
}

.lv-hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--lv-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.lv-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.lv-hero__indicator {
  position: absolute;
  bottom: 48px;
  left: 24px;
}

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */
.lv-steps {
  padding: var(--lv-section-y) 0;
  background: var(--lv-dark);
  border-top: 1px solid var(--lv-border);
  border-bottom: 1px solid var(--lv-border);
}

.lv-steps__header {
  text-align: center;
  margin-bottom: 64px;
}

.lv-steps__header .ubx-label {
  justify-content: center;
  margin-bottom: 16px;
}

.lv-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lv-gap);
}

.lv-step {
  position: relative;
  padding: 40px 32px;
  background: var(--lv-graphite);
  border: 1px solid var(--lv-border);
  transition: border-color var(--lv-duration) var(--lv-ease);
}

.lv-step:hover {
  border-color: var(--lv-border-hl);
}

.lv-step__number {
  font-family: var(--lv-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lv-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lv-step__number::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--lv-border-hl);
}

.lv-step__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--lv-cream);
  margin-bottom: 12px;
}

.lv-step__text {
  font-size: 0.9375rem;
  color: var(--lv-muted);
  line-height: 1.65;
}

.lv-step__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lv-cyan-06);
  border: 1px solid var(--lv-cyan-15);
  margin-bottom: 20px;
  color: var(--lv-cyan);
}

/* ============================================================
   PROBLEMS / SOLUTIONS
   ============================================================ */
.lv-problems {
  padding: var(--lv-section-y) 0;
  background: var(--lv-void);
}

.lv-problems__header {
  text-align: center;
  margin-bottom: 64px;
}

.lv-problems__header .ubx-label {
  justify-content: center;
  margin-bottom: 16px;
}

.lv-problems__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--lv-gap);
}

.lv-problem-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--lv-border);
  overflow: hidden;
  transition: border-color var(--lv-duration) var(--lv-ease);
}

.lv-problem-card:hover {
  border-color: var(--lv-border-hl);
}

.lv-problem-card__problem {
  padding: 32px;
  background: var(--lv-graphite);
  border-right: 1px solid var(--lv-border);
}

.lv-problem-card__solution {
  padding: 32px;
  background: var(--lv-dark);
}

.lv-problem-card__icon {
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lv-problem-card__icon--x {
  color: rgba(240, 100, 100, 0.7);
}

.lv-problem-card__icon--check {
  color: var(--lv-cyan);
}

.lv-problem-card__icon span {
  font-family: var(--lv-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lv-problem-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lv-cream);
  margin-bottom: 8px;
}

.lv-problem-card__text {
  font-size: 0.875rem;
  color: var(--lv-muted);
  line-height: 1.6;
}

/* ============================================================
   SPLIT SECTIONS
   ============================================================ */
.lv-split {
  padding: var(--lv-section-y) 0;
  border-top: 1px solid var(--lv-border);
}

.lv-split--dark {
  background: var(--lv-dark);
}

.lv-split--void {
  background: var(--lv-void);
}

.lv-split__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.lv-split--reverse .lv-split__inner {
  direction: rtl;
}

.lv-split--reverse .lv-split__inner > * {
  direction: ltr;
}

.lv-split__content .ubx-label {
  margin-bottom: 16px;
}

.lv-split__content h2 {
  margin-bottom: 20px;
}

.lv-split__content p {
  color: var(--lv-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.lv-split__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.lv-split__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--lv-text);
}

.lv-split__features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--lv-cyan-15);
  border: 1px solid var(--lv-cyan-40);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lv-split__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--lv-graphite);
  border: 1px solid var(--lv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lv-split__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--lv-cyan-06) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      var(--lv-border) 40px,
      var(--lv-border) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      var(--lv-border) 40px,
      var(--lv-border) 41px
    );
  opacity: 0.5;
}

.lv-split__visual-label {
  position: relative;
  z-index: 1;
  font-family: var(--lv-font-mono);
  font-size: 0.8125rem;
  color: var(--lv-muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   TRUST CARDS
   ============================================================ */
.lv-trust {
  padding: var(--lv-section-y) 0;
  background: var(--lv-dark);
  border-top: 1px solid var(--lv-border);
}

.lv-trust__header {
  text-align: center;
  margin-bottom: 64px;
}

.lv-trust__header .ubx-label {
  justify-content: center;
  margin-bottom: 16px;
}

.lv-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lv-gap);
}

.lv-trust-card {
  padding: 40px 32px;
  background: var(--lv-graphite);
  border: 1px solid var(--lv-border);
  transition: border-color var(--lv-duration) var(--lv-ease), transform var(--lv-duration) var(--lv-ease);
}

.lv-trust-card:hover {
  border-color: var(--lv-border-hl);
  transform: translateY(-2px);
}

.lv-trust-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lv-cyan-06);
  border: 1px solid var(--lv-cyan-15);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.lv-trust-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lv-cream);
  margin-bottom: 12px;
}

.lv-trust-card__text {
  font-size: 0.9375rem;
  color: var(--lv-muted);
  line-height: 1.65;
}

.lv-trust__disclaimer {
  margin-top: 48px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--lv-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 24px;
  border: 1px dashed var(--lv-border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.lv-footer {
  padding: 80px 0 40px;
  background: var(--lv-void);
  border-top: 1px solid var(--lv-border);
}

.lv-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.lv-footer__brand p {
  color: var(--lv-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 280px;
}

.lv-footer__brand svg {
  height: 24px;
  width: auto;
}

.lv-footer__col h4 {
  font-family: var(--lv-font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lv-muted);
  margin-bottom: 20px;
}

.lv-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lv-footer__col ul a {
  font-size: 0.875rem;
  color: var(--lv-text);
  transition: color var(--lv-duration) var(--lv-ease);
}

.lv-footer__col ul a:hover {
  color: var(--lv-cyan);
}

.lv-footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--lv-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--lv-muted);
}

.lv-footer__bottom a {
  color: var(--lv-muted);
}

.lv-footer__bottom a:hover {
  color: var(--lv-cyan);
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.lv-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.lv-section-header .ubx-label {
  justify-content: center;
  margin-bottom: 16px;
}

.lv-section-header p {
  color: var(--lv-muted);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.7;
}

.lv-text-center { text-align: center; }
.lv-text-cyan   { color: var(--lv-cyan); }
.lv-text-violet { color: var(--lv-violet); }
.lv-text-muted  { color: var(--lv-muted); }
.lv-mt-0  { margin-top: 0; }
.lv-mb-16 { margin-bottom: 16px; }
.lv-mb-24 { margin-bottom: 24px; }
.lv-mb-32 { margin-bottom: 32px; }
.lv-mb-48 { margin-bottom: 48px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --lv-section-y: 80px;
    --lv-gap: 24px;
  }

  .lv-split__inner {
    gap: 48px;
  }

  .lv-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --lv-section-y: 64px;
    --lv-gap: 20px;
  }

  /* Header mobile */
  .lv-header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--lv-dark);
    border-bottom: 1px solid var(--lv-border);
    padding: 24px;
    gap: 20px;
  }

  .lv-header__nav.is-open {
    display: flex;
  }

  .lv-header__burger {
    display: flex;
  }

  .lv-header__actions .ubx-btn {
    display: none;
  }

  /* Hero */
  .lv-hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .lv-hero__ctas {
    flex-direction: column;
  }

  .lv-hero__ctas .ubx-btn {
    width: 100%;
    text-align: center;
  }

  .lv-hero__indicator {
    display: none;
  }

  /* Steps */
  .lv-steps__grid {
    grid-template-columns: 1fr;
  }

  /* Problems */
  .lv-problems__grid {
    grid-template-columns: 1fr;
  }

  .lv-problem-card {
    grid-template-columns: 1fr;
  }

  .lv-problem-card__problem {
    border-right: none;
    border-bottom: 1px solid var(--lv-border);
  }

  /* Split */
  .lv-split__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lv-split--reverse .lv-split__inner {
    direction: ltr;
  }

  .lv-split__visual {
    order: -1;
  }

  /* Trust */
  .lv-trust__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .lv-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lv-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .lv-container {
    padding: 0 16px;
  }

  .lv-step,
  .lv-trust-card {
    padding: 28px 24px;
  }

  .lv-problem-card__problem,
  .lv-problem-card__solution {
    padding: 24px;
  }
}
