:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-alt: #eef3ff;
  --line: rgba(17, 24, 39, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --primary: #2f6df6;
  --primary-deep: #1d4ed8;
  --primary-soft: rgba(47, 109, 246, 0.12);
  --secondary: #0ea5e9;
  --success: #16a34a;
  --warning: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f5f7ff 0%, #f8fafc 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.52);
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-heading.center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.section-heading h2,
.ai-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.link-arrow {
  font-weight: 600;
  color: var(--primary-deep);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 255, 0.7);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 12px 25px rgba(47, 109, 246, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--primary-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: white;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text);
}

.btn-ghost {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero {
  padding: 62px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 34px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-stats strong {
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.hero-stats span {
  color: var(--muted-2);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.visual-card {
  position: relative;
  width: min(440px, 92%);
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-image {
  height: 280px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(14,165,233,0.15));
}

.card-image.bike {
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.9), rgba(255,255,255,0) 20%),
    linear-gradient(145deg, rgba(18, 24, 38, 0.7), rgba(53, 104, 248, 0.7)),
    linear-gradient(135deg, #7dd3fc 0%, #1d4ed8 100%);
}

.card-image::before {
  content: "";
  position: absolute;
  inset: 24px 50px 20px 50px;
  border-radius: 24px 24px 36px 36px;
  background: linear-gradient(135deg, rgba(15,23,42,0.1), rgba(15,23,42,0.45));
  transform: rotate(-14deg);
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.listing-meta h3 {
  margin: 8px 0 0;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
}

.listing-meta strong {
  font-size: 1.7rem;
  letter-spacing: -0.06em;
}

.visual-card p {
  margin: 8px 4px 0;
  color: var(--muted);
}

.mini-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.mini-panel strong {
  letter-spacing: -0.04em;
}

.mini-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.panel-top {
  top: 42px;
  right: 10px;
}

.panel-bottom {
  bottom: 50px;
  left: 0;
}

.categories-grid,
.listings-grid,
.steps-grid,
.trust-grid {
  display: grid;
  gap: 20px;
}

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

.category-card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.02);
}

.category-visual {
  height: 120px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(47,109,246,0.1), rgba(14,165,233,0.16));
}

.category-content {
  padding: 18px 18px 20px;
}

.category-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.category-content p {
  margin: 0;
  color: var(--muted);
}

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

.listing-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15,23,42,0.04);
}

.listing-thumb {
  height: 220px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #dbeafe);
  position: relative;
  overflow: hidden;
}

.listing-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.08), rgba(15,23,42,0.18));
}

.listing-thumb.sport {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe 50%, #93c5fd);
}

.listing-thumb.home {
  background: linear-gradient(135deg, #fef3c7, #fde68a 35%, #fbbf24);
}

.listing-thumb.tech {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0 35%, #34d399);
}

.listing-thumb.accessory {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8 30%, #f9a8d4);
}

.listing-thumb.pet {
  background: linear-gradient(135deg, #d9f99d, #bef264 30%, #84cc16);
}

.listing-thumb.appliance {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1 28%, #94a3b8);
}

.listing-body {
  padding: 16px 4px 6px;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.listing-price {
  font-size: 1.5rem;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.listing-location,
.listing-meta-row {
  color: var(--muted);
  font-size: 0.95rem;
}

.listing-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.listing-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

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

.step-card,
.trust-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.02);
}

.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(47, 109, 246, 0.1);
  color: var(--primary-deep);
  font-weight: 800;
  margin-bottom: 18px;
}

.step-card h3,
.trust-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.step-card p,
.trust-card p,
.ai-copy p,
.footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-highlight {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  color: white;
}

.ai-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.ai-copy p {
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,0.9);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #a7f3d0;
  font-weight: 800;
}

.ai-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.ai-panel-head {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

.ai-output {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 22px;
  padding: 18px;
}

.prompt-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.prompt-box span {
  color: rgba(255,255,255,0.72);
}

.generated-card {
  padding: 18px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(14,165,233,0.18));
  border: 1px solid rgba(255,255,255,0.08);
}

.generated-card h4 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.generated-card p {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.78);
}

.generated-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.76);
  font-size: 0.9rem;
}

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

.footer {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 18px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-bottom: 28px;
}

.footer-brand {
  margin-bottom: 12px;
}

.cta-box {
  min-width: min(470px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.cta-box h3 {
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

.cta-row {
  display: flex;
  gap: 10px;
}

.cta-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .ai-wrap {
    grid-template-columns: 1fr;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .categories-grid,
  .listings-grid,
  .steps-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-row {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
