/* landing.css — Landing page specific styles */

body {
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  background: var(--bg-page);
  overflow: hidden;
}

/* Subtle green radial glow behind hero */
.hero-section::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(34,197,94,0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid texture */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Header */
header {
  position: relative;
  z-index: 10;
  padding: 32px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--text-secondary);
}

.brand {
  display: block;
  height: 32px;
}

.brand img {
  height: 100%;
  width: auto;
  filter: saturate(1.4) brightness(1.1);
}

/* Hero content */
.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 100px 0 80px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 4px;
}

.hero .subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Email Form ── */
.email-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.email-form .input-wrapper {
  position: relative;
}

.email-form input[type="email"] {
  width: 320px;
  padding: 16px 24px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.email-form input[type="email"]:hover {
  border-color: var(--border-default);
}

.email-form input[type="email"]:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-glow);
}

.email-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.email-form button {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent-green);
  border: none;
  border-radius: 14px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px var(--accent-green-glow);
}

.email-form button:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--accent-green-glow);
}

.email-form button:active {
  transform: translateY(0);
}

/* ── Stats Pills ── */
.stats-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-pill .dot.green {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green-glow);
}

.stat-pill .mono {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Success State ── */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 40px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-card);
  animation: fadeInScale 0.3s ease;
}

.success-state.show {
  display: flex;
}

.success-state .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-state h3 {
  color: var(--accent-green);
  font-size: 1.125rem;
}

.success-state p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Section Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  border: none;
  margin: 0;
}

/* ── Preview Section ── */
.preview-section {
  background: var(--bg-elevated);
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-header .badge {
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Preview Cards ── */
.preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  overflow-x: hidden;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  max-width: 100%;
}

.preview-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.preview-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.preview-card .tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
}

.preview-card .tier-badge .score-num {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: white;
}

.preview-card .tier-badge .tier-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-card .source-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid;
}

.preview-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.preview-card .card-details {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.preview-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-card .price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-card .under-market {
  font-size: 0.8125rem;
  color: var(--accent-green);
  font-weight: 500;
}

.posted-ago {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  margin-top: 0.25rem;
}

.market-confidence {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.7;
}

/* Check a Listing */
.check-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.check-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.check-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.check-form {
  max-width: 600px;
  margin: 0 auto;
}

.check-input-row {
  display: flex;
  gap: 12px;
}

.check-input-row input {
  flex: 1;
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.check-input-row input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-glow);
}

.check-input-row button {
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent-green);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.check-input-row button:hover {
  background: #16a34a;
}

.check-input-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.check-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.check-result-card {
  max-width: 600px;
  margin: 24px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
}

.check-result-card .result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.check-result-card .result-price {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.check-result-card .result-details {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.price-gauge {
  position: relative;
  height: 8px;
  background: linear-gradient(to right, #22c55e, #a1a1aa, #ef4444);
  border-radius: 4px;
  margin: 16px 0 8px;
}

.price-gauge .marker {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid var(--bg-page);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.alternatives {
  margin-top: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.alternatives h4 {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.alt-listing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.alt-listing:last-child {
  border-bottom: none;
}

.alt-listing a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.alt-listing a:hover {
  color: var(--accent-green);
}

.alt-listing .alt-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
}

.check-error {
  max-width: 600px;
  margin: 16px auto 0;
  padding: 12px 20px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  color: #ef4444;
  font-size: 0.875rem;
  text-align: center;
}

.preview-card .fee-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #f59e0b;
  font-family: var(--font-mono);
}

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

.see-all a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.see-all a:hover {
  color: var(--text-secondary);
}

/* ── How It Works ── */
.how-section {
  padding: 96px 0;
}

.how-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

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

.step {
  text-align: center;
}

.step .number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-green);
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Sources ── */
.sources {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--border-subtle);
}

.sources-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.source-badge {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.source-badge .source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.source-badge.rentler .source-dot { background: #3b82f6; }
.source-badge.craigslist .source-dot { background: #f97316; }
.source-badge.ksl .source-dot { background: #a855f7; }

.source-badge.rentler { border-color: rgba(59,130,246,0.15); }
.source-badge.craigslist { border-color: rgba(249,115,22,0.15); }
.source-badge.ksl { border-color: rgba(168,85,247,0.15); }

/* ── CTA Section ── */
.cta-section {
  padding: 96px 0 120px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 197, 94, 0.05), transparent),
    var(--bg-page);
}

.cta-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-section .tagline {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 20px;
}

.discord-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.discord-cta:hover {
  color: #5865F2;
  background-color: rgba(88, 101, 242, 0.1);
}

.discord-cta svg {
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-secondary);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--text-primary);
}

.footer-updated {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.15);
  filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
}

/* ── Fade-up Scroll Animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Loading skeleton for cards ── */
.preview-card.skeleton .tier-badge,
.preview-card.skeleton h3,
.preview-card.skeleton .price,
.preview-card.skeleton .card-details {
  background: linear-gradient(90deg, var(--bg-card-hover), rgba(255,255,255,0.04), var(--bg-card-hover));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  color: transparent;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .email-form {
    flex-direction: column;
    padding: 0 8px;
  }

  .email-form input[type="email"] {
    width: 100%;
  }

  .email-form button {
    width: 100%;
  }

  .stats-line {
    gap: 8px;
  }

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

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

  .check-input-row {
    flex-direction: column;
  }

  .check-input-row button {
    width: 100%;
  }

  .preview-section {
    padding: 56px 0;
  }

  .how-section {
    padding: 64px 0;
  }

  .cta-section {
    padding: 64px 0 80px;
  }
}

@media (max-width: 480px) {
  .preview-card {
    padding: 20px;
  }

  .preview-card .price {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .stat-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}
