/* ============================================================
   MotoHub AI — Homepage-specific styles
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 380px at 78% 8%, var(--orange-dim), transparent 70%),
    radial-gradient(700px 360px at 10% 100%, var(--cyan-dim), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(46px, 6.4vw, 86px);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 20px 0 22px;
  text-wrap: balance;
}
.hero-copy h1 em { font-style: normal; color: var(--orange-bright); }
.hero-copy > p { color: var(--ink-2); font-size: 19px; max-width: 510px; margin: 0 0 30px; line-height: 1.6; }

.hero-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 9px 9px 9px 18px;
  max-width: 560px;
  transition: border-color .15s;
}
.hero-search:focus-within { border-color: var(--orange); }
.hero-search svg { color: var(--ink-4); }
.hero-search input { flex: 1; background: none; border: 0; outline: none; color: var(--ink); font-family: var(--body); font-size: 16px; }
.hero-search input::placeholder { color: var(--ink-4); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.hero-stats { display: flex; flex-direction: column; gap: 18px; }
.hero-ph { height: 360px; border-radius: var(--r-lg); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 16px; }
.stat .num { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--orange-bright); letter-spacing: -0.02em; }
.stat .lab { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 4px; text-transform: uppercase; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}
.cat-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .18s, transform .18s, background .18s;
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.cat-card .cat-ic { width: 30px; height: 30px; color: var(--orange-bright); margin-bottom: 6px; }
.cat-card h3 { font-size: 21px; font-weight: 700; }
.cat-card p { color: var(--ink-3); font-size: 14.5px; margin: 0; line-height: 1.5; }
.cat-card.feature {
  grid-row: span 2; grid-column: span 2;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  justify-content: flex-start;
}
.cat-card.feature .cat-ic { width: 42px; height: 42px; }
.cat-card.feature h3 { font-size: 34px; }
.cat-card.feature p { font-size: 16px; max-width: 380px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cat-tags span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.cat-tags span:first-child { background: var(--orange-dim); color: var(--orange-bright); border-color: transparent; }
.cat-go { margin-top: auto; padding-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--orange-bright); display: inline-flex; align-items: center; gap: 8px; }
.cat-card.feature .cat-go { font-size: 14px; }

/* ---------- Picks / affiliate ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pick {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column;
}
.pick:first-child { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 24px 50px -30px var(--orange); }
.pick-flag { position: absolute; top: -11px; left: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 6px; font-weight: 600; }
.pick-flag.best { background: var(--orange); color: #1a1208; }
.pick-flag.budget { background: var(--green); color: #08160d; }
.pick-flag.premium { background: var(--cyan); color: #04161c; }
.pick-ph { height: 150px; border-radius: var(--r); margin: 8px 0 16px; }
.pick h3 { font-size: 22px; font-weight: 700; }
.pick-rate { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 14px; font-family: var(--mono); }
.pick-rate b { font-size: 18px; color: var(--ink); }
.pick-rate .rule-mono, .pick-rate .star { font-size: 15px; }
.pick-pros { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pick-pros li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.pick-pros svg { color: var(--green); margin-top: 2px; flex: none; }
.pick-price { font-family: var(--display); font-weight: 800; font-size: 26px; margin: auto 0 16px; display: flex; align-items: baseline; gap: 8px; }
.pick-price .rule-mono { font-size: 12px; }

/* ---------- Tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color .18s, transform .18s;
}
.tool-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.tool-card.hot { border-color: var(--orange); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.tool-card.hot:hover { border-color: var(--orange-bright); }
.tool-top { display: flex; align-items: center; justify-content: space-between; }
.tool-top svg { width: 26px; height: 26px; color: var(--orange-bright); }
.tool-card h3 { font-size: 20px; font-weight: 700; }
.tool-card p { color: var(--ink-3); font-size: 14px; margin: 0; line-height: 1.5; }
.tool-go { margin-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--orange-bright); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.brand {
  height: 84px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r);
  font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink-2);
  letter-spacing: -0.01em;
  transition: border-color .15s, color .15s, background .15s;
}
.brand:hover { border-color: var(--orange); color: var(--ink); background: var(--panel-2); }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.post {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s, transform .18s;
}
.post:hover { border-color: var(--orange); transform: translateY(-3px); }
.post-ph { height: 150px; border: 0; border-bottom: 1px solid var(--line-soft); }
.post-body { padding: 18px 20px 22px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post h3 { font-size: 18px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.post p { color: var(--ink-3); font-size: 14.5px; margin: 12px 0 0; line-height: 1.55; }
.post.big { grid-row: span 2; }
.post.big .post-ph { height: 280px; }
.post.big h3 { font-size: 30px; }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 48px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 44px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 240px at 90% 0%, var(--orange-dim), transparent 70%);
  pointer-events: none;
}
.cta-copy { position: relative; }
.cta-copy h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin: 14px 0 14px; }
.cta-copy > p { color: var(--ink-2); font-size: 17px; max-width: 460px; margin: 0 0 26px; }
.cta-form { display: flex; gap: 12px; max-width: 480px; }
.cta-form input { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); font-family: var(--body); font-size: 15px; outline: none; }
.cta-form input:focus { border-color: var(--orange); }
.cta-ph { height: 280px; border-radius: var(--r); position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card.feature { grid-column: span 2; grid-row: auto; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .pick-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post.big { grid-column: 1 / -1; grid-row: auto; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-ph { display: none; }
}
@media (max-width: 620px) {
  .cat-grid, .tool-grid, .post-grid, .stat-row { grid-template-columns: 1fr; }
  .cat-card.feature { grid-column: auto; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-search { flex-wrap: wrap; }
  .cta-form { flex-direction: column; }
  .cta-panel { padding: 28px; }
}
