/* ========================================
   DEAL HOUND — Main Stylesheet
   Dark chrome aesthetic
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #0d0d0d;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #444444;
  --accent: #f5c518;
  --accent-dim: rgba(245, 197, 24, 0.15);
  --border: #222222;
  --border-bright: #333333;
  --chrome-gradient: linear-gradient(180deg, #e8e8e8 0%, #ffffff 25%, #a0a0a0 50%, #ffffff 75%, #c0c0c0 100%);
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.chrome-text {
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  color: var(--accent);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

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

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

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: #ffd700 !important;
  color: #000 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #ffd700;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: #555;
}

/* Hero mascot */
.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
}

.mascot-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.1);
}

.mascot-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ========== STATS BAR ========== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ========== LIVE FEED PREVIEW ========== */
.feed-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.feed-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge {
  background: #ff3b30;
  color: white;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}

.feed-items {
  max-height: 320px;
  overflow: hidden;
  position: relative;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.2s;
}

.feed-item:hover {
  background: var(--bg-elevated);
}

.feed-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.retailer-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.rt-bestbuy { background: #0046be; color: white; }
.rt-walmart { background: #007dc6; color: white; }
.rt-target { background: #cc0000; color: white; }
.rt-homedepot { background: #f96302; color: white; }
.rt-amazon { background: #ff9900; color: #000; }

.feed-product {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.feed-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.feed-discount {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.feed-score {
  font-size: 10px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
}

.feed-score.score-high {
  background: rgba(245, 197, 24, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.feed-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg-secondary));
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(42px, 5vw, 64px);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  font-size: 17px;
}

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

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 16.6%;
  right: 16.6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), var(--border-bright), transparent);
}

.step {
  padding: 40px 32px;
  position: relative;
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  margin: 0 auto 24px;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ========== PRICING / COMPARISON ========== */
.pricing {
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price .currency {
  font-size: 24px;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features .x-mark {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ========== DEAL CARDS ========== */
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.deal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.deal-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.deal-card:hover::before {
  opacity: 1;
}

.deal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.deal-score-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: var(--accent);
  flex-shrink: 0;
}

.deal-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.deal-sale-price {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.deal-original-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-discount-pct {
  font-size: 12px;
  font-weight: 700;
  background: rgba(245, 197, 24, 0.12);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
}

.deal-buy-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.deal-buy-btn:hover {
  background: #ffd700;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
}

/* ========== DEALS PAGE ========== */
.deals-page {
  padding-top: 100px;
  min-height: 100vh;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 197, 24, 0.06);
}

.filter-select {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select:focus {
  border-color: var(--accent);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.no-deals {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.no-deals h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ========== ABOUT PAGE ========== */
.about-page {
  padding-top: 100px;
}

.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-section h1 {
  font-size: clamp(40px, 5vw, 60px);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-section h2 {
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 48px;
  color: var(--accent);
}

.about-section p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.retailer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.retailer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item h3 {
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.faq-item p {
  margin-bottom: 0;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  margin-top: 12px;
  line-height: 1.65;
}

.footer-links h4 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== SHIMMER ANIMATION ========== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-elevated) 50%,
    var(--bg-card) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Loading placeholder */
.deal-card.loading .deal-name,
.deal-card.loading .deal-sale-price,
.deal-card.loading .deal-buy-btn {
  background: var(--bg-elevated);
  color: transparent;
  border-radius: 4px;
  animation: shimmer 1.5s ease-in-out infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-elevated) 50%,
    var(--bg-card) 100%
  );
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-mascot {
    order: -1;
  }

  .mascot-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

  .hero-sub {
    margin: 0 auto 40px;
  }

  .hero-ctas {
    justify-content: center;
  }

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

  .steps::before {
    display: none;
  }

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

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

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

  nav .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

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

  .hamburger {
    display: flex;
  }

  .footer-top {
    flex-direction: column;
  }

  .retailer-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  section {
    padding: 60px 0;
  }

  .stats-inner {
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

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