/* =========================================
   ULOBO — COMPLETE HOMEPAGE STYLES
   ========================================= */

:root {
  --bg: #020617;
  --bg-alt: #081326;
  --surface: #0f1d35;
  --surface-light: #162744;
  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.11);
  --success: #34d399;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 4px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(100deg, #60a5fa, #2563eb, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

.lead {
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.small-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.positive {
  color: var(--success);
  font-weight: 800;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* =========================================
   BUTTONS
   ========================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 25px;
  min-height: 50px;
  background: var(--primary);
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 13px;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 22px;
}

/* =========================================
   NAVIGATION
   ========================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.93);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
}

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

.nav-links > a:not(.button) {
  font-size: 0.83rem;
  font-weight: 700;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.nav-links > a:not(.button):hover {
  color: white;
}

.nav-links .button {
  padding: 11px 18px;
  min-height: 42px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  color: white;
  border: 1px solid var(--border);
  font-size: 1.5rem;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 110px;
  background: radial-gradient(
      ellipse at 85% 20%,
      rgba(37, 99, 235, 0.16),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 0% 80%,
      rgba(59, 130, 246, 0.08),
      transparent 45%
    ),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 65px;
}

.hero-content h1 {
  margin: 18px 0 25px;
}

.hero-content .muted {
  max-width: 560px;
}

/* =========================================
   PANELS
   ========================================= */

.panel {
  padding: 30px;
  background: linear-gradient(
    145deg,
    rgba(22, 39, 68, 0.96),
    rgba(8, 18, 37, 0.98)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 1.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-auction-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
  margin: 22px 0 15px;
}

.bid {
  padding: 13px 16px;
  margin-top: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.bid.winner {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
}

.bid.winner strong {
  color: var(--success);
}

/* =========================================
   PRICING
   ========================================= */

.price-table {
  display: grid;
  gap: 13px;
  margin-top: 23px;
  font-size: 0.9rem;
}

.price-table .flex-between > span:first-child {
  color: #cbd5e1;
}

.price-table strong {
  font-variant-numeric: tabular-nums;
}

.price-table .total {
  padding-top: 17px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 1.06rem;
  font-weight: 800;
}

.price-table .total > :last-child {
  color: #60a5fa;
  font-size: 1.55rem;
}

.panel .positive {
  margin-top: 20px;
}

/* =========================================
   AUCTION AND SERVICE CARDS
   ========================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card {
  display: block;
  overflow: hidden;
  background: linear-gradient(160deg, #14233e, #091426);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover > img {
  transform: scale(1.035);
}

.card-content {
  padding: 26px;
}

.card-content h3 {
  margin: 8px 0 20px;
}

.card-content .price-table {
  margin-top: 12px;
}

.card-content .positive {
  margin: 18px 0 0;
}

.card-content .muted {
  margin-bottom: 18px;
}

.auction-cta {
  margin-top: 35px;
}

/* =========================================
   HOW IT WORKS
   ========================================= */

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

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

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  margin-bottom: 25px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  color: #93c5fd;
  font-size: 1.1rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  margin-bottom: 0;
}

/* =========================================
   TWO-COLUMN SECTIONS
   ========================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}

.split h2 {
  margin: 18px 0 25px;
}

.split .button {
  margin-top: 15px;
}

/* =========================================
   SAVINGS CALCULATOR
   ========================================= */

.range-group {
  margin-bottom: 30px;
}

.range-group label {
  color: #cbd5e1;
  font-weight: 700;
}

.range-group strong {
  color: #93c5fd;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  margin: 17px 0 0;
  accent-color: #3b82f6;
  cursor: pointer;
}

.savings {
  margin-top: 24px;
  padding: 20px;
  text-align: center;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 14px;
}

.savings p {
  margin-bottom: 4px;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.savings strong {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}

.savings.is-negative {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.25);
}

.savings.is-negative .positive {
  color: #fbbf24;
}

.savings.is-negative strong {
  color: #fbbf24;
}

/* =========================================
   FAQ
   ========================================= */

.faq {
  max-width: 850px;
  margin: 0 auto;
}

.faq details {
  margin-bottom: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
}

.faq summary {
  position: relative;
  padding: 23px 55px 23px 25px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #60a5fa;
  font-size: 1.5rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 25px 24px;
  margin: 0;
  color: var(--muted);
}

/* =========================================
   APP DOWNLOAD CTA
   ========================================= */

.cta {
  padding: 75px 35px;
  text-align: center;
  background: linear-gradient(135deg, #173b88, #0b1e46 65%, #091326);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 28px;
}

.cta h2 {
  margin: 15px 0 20px;
}

.cta > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  color: #cbd5e1;
}

.stores {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 35px;
}

.stores a {
  display: inline-flex;
  align-items: center;
}

.stores img {
  height: 48px;
  width: auto;
  max-width: 180px;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  padding: 70px 0 25px;
  background: #01040f;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 45px;
}

.footer-grid > div:first-child p {
  max-width: 310px;
  margin-top: 18px;
}

.footer h3 {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-grid > div:not(:first-child) a {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

/* =========================================
   TABLETS
   ========================================= */

@media (max-width: 1050px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links > a:not(.button) {
    font-size: 0.76rem;
  }

  .hero-grid {
    gap: 35px;
  }

  .cards {
    gap: 18px;
  }

  .card-content {
    padding: 21px;
  }
}

/* =========================================
   MOBILE NAVIGATION
   ========================================= */

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 22px 20px 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #081326;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a:not(.button) {
    padding: 13px 5px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .button {
    margin-top: 20px;
    width: 100%;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 45px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 65px 0;
  }

  .nav-inner {
    min-height: 70px;
  }

  .hero {
    padding: 65px 0 75px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 10vw, 3.8rem);
  }

  .hero-grid {
    gap: 35px;
  }

  .hero-auction-image {
    height: 190px;
  }

  .panel {
    padding: 22px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card > img {
    height: 210px;
  }

  .steps {
    gap: 15px;
  }

  .step {
    padding: 26px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .split {
    gap: 30px;
  }

  .cta {
    padding: 55px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer {
    padding-top: 55px;
  }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
