@import url('/assets/tokens.css');

/* Usagi Hub — Homepage sections (PRD PROMPT 4) */

body.home-page {
  padding-top: var(--nav-h);
}

.home-main {
  max-width: none;
  padding: 0;
  min-height: auto;
}

.home-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-section {
  padding: 72px 0;
}

.home-section--alt {
  background: var(--bg2);
  border-block: 1px solid var(--bdr);
}

.home-eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.home-section-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 40px;
}

.home-section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.home-section-head p {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.8;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 55% at 50% -10%, rgba(212, 166, 58, 0.1), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-copy {
  text-align: center;
}

@media (min-width: 960px) {
  .hero-copy {
    text-align: left;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 16px;
}

.home-accent {
  color: var(--gold);
}

.hero-lead {
  font-size: 16px;
  color: var(--txt2);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 28px;
}

@media (min-width: 960px) {
  .hero-lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

@media (min-width: 960px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.hero-cta .btn {
  min-height: 46px;
  padding: 10px 20px;
  font-size: 14px;
}

.hero-disc {
  font-size: 12px;
  color: var(--txt3);
  margin-top: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
  }
}

@media (min-width: 960px) {
  .hero-stats {
    margin-left: 0;
  }
}

.hero-stat {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 14px 10px;
  text-align: center;
}

.hero-stat label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.hero-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.hero-stat strong.is-placeholder {
  color: var(--txt3);
}

.hero-stat strong.stat-gold {
  color: var(--gold);
}

.hero-stat strong.stat-green {
  color: var(--green);
}

/* Live panel */
.hero-panel {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--bdr);
}

.hero-panel__head strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--txt3);
}

.live-dot--fresh {
  background: var(--green);
  animation: livePulse 1.6s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 12px;
}

.panel-cell small {
  display: block;
  font-size: 10px;
  color: var(--txt3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.panel-cell b {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.panel-cell b.is-placeholder {
  color: var(--txt3);
}

.bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.bot-tags span {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}

.myfxbook-link {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 11px;
  color: var(--txt3);
  transition: color 0.25s ease;
}

.myfxbook-link:hover {
  color: var(--gold);
}

/* Trust strip */
.trust-strip {
  padding: 18px 0;
  background: var(--bg2);
  border-block: 1px solid var(--bdr);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt2);
}

.trust-inner span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-inner span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 22px;
  height: 100%;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--gold-bg);
  border: 1px solid var(--gold-dim);
  color: var(--gold-lt);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card__icon svg {
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.7;
}

/* Bots grid */
.bots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .bots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .bots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bots-grid .bot-card--featured {
  grid-column: 1 / -1;
}

@media (min-width: 960px) {
  .bots-grid .bot-card--featured {
    grid-column: span 2;
  }
}

.bot-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.bot-card--featured {
  border-color: var(--gold-dim);
  background: linear-gradient(145deg, rgba(212, 166, 58, 0.06), var(--card));
}

.bot-card__thumb {
  position: relative;
  height: 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--bdr);
  background: linear-gradient(145deg, rgba(200, 144, 26, 0.2), rgba(8, 11, 20, 0.95));
}

.bot-card--featured .bot-card__thumb {
  height: 140px;
}

.bot-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-card__thumb--gold {
  background: linear-gradient(145deg, rgba(200, 144, 26, 0.28), rgba(8, 11, 20, 0.95)),
    radial-gradient(circle at 85% 15%, rgba(232, 184, 75, 0.2), transparent 55%);
}

.bot-card__thumb--blue {
  background: linear-gradient(145deg, rgba(74, 144, 217, 0.28), rgba(8, 11, 20, 0.95)),
    radial-gradient(circle at 80% 20%, rgba(100, 180, 255, 0.15), transparent 55%);
}

.bot-card__thumb--cyan {
  background: linear-gradient(145deg, rgba(41, 201, 154, 0.22), rgba(8, 11, 20, 0.95)),
    radial-gradient(circle at 75% 25%, rgba(37, 201, 141, 0.14), transparent 55%);
}

.bot-card__thumb--violet {
  background: linear-gradient(145deg, rgba(148, 144, 238, 0.28), rgba(8, 11, 20, 0.95)),
    radial-gradient(circle at 82% 18%, rgba(91, 82, 214, 0.18), transparent 55%);
}

.bot-card__thumb--amber {
  background: linear-gradient(145deg, rgba(240, 188, 94, 0.26), rgba(8, 11, 20, 0.95)),
    radial-gradient(circle at 78% 22%, rgba(200, 144, 26, 0.16), transparent 55%);
}

.bot-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bot-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-lt);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.72);
  border: 1px solid rgba(200, 144, 26, 0.35);
  margin-bottom: 0;
}

.bot-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.bot-card__desc {
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 40px;
}

/* Founding */
.founding-wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 800px) {
  .founding-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

.founding-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 12px 0 16px;
}

.founding-copy > p {
  color: var(--txt2);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 15px;
}

.tier-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .tier-list {
    grid-template-columns: 1fr 1fr;
  }
}

.tier-item {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bdr);
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.5;
}

.tier-item b {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
}

.founding-box {
  background: var(--card);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r);
  padding: 24px;
}

.founding-box > p {
  font-size: 14px;
  color: var(--txt2);
  margin-bottom: 12px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.slot-grid--founding {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
  .slot-grid--founding {
    grid-template-columns: repeat(4, 1fr);
  }
}

.slot-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-top: 4px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--bdr);
  font-size: 14px;
  color: var(--txt2);
}

.slot-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.founding-alt-link {
  margin-top: 14px;
  font-size: 14px;
}

.founding-alt-link a {
  color: var(--gold);
  text-decoration: none;
}

.founding-alt-link a:hover {
  text-decoration: underline;
}

.home-section-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--txt2);
}

.home-section-foot a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.home-section-foot a:hover {
  text-decoration: underline;
}

.slot-item {
  text-align: center;
  padding: 18px 8px;
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
}

.slot-item .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.slot-item .lbl {
  font-size: 11px;
  color: var(--txt3);
  margin-top: 6px;
}

.founding-note {
  font-size: 13px;
  color: var(--txt2);
  margin: 0 0 16px;
  line-height: 1.6;
}

.founding-after-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bdr);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  line-height: 1.5;
}

.home-section-lead--wide {
  max-width: 960px;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--txt2);
}

.home-req-panel {
  margin-top: 28px;
  padding: 20px 18px 22px;
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  background: var(--card);
}

.home-req-panel__head {
  margin-bottom: 14px;
}

.home-req-panel__head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 8px;
}

.home-req-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .home-req-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-req-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--txt2);
  padding-left: 14px;
  position: relative;
}

.home-req-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.home-req-list strong {
  color: var(--gold);
}

.bot-card__desc {
  line-height: 1.65;
}

/* FAQ */
.faq-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.faq-more-wrap {
  max-width: 680px;
  margin: 20px auto 0;
  text-align: center;
}

.faq-item {
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  background: var(--card);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--bdr);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.7;
}

/* CTA band */
.cta-band {
  padding: 56px 0;
  background: linear-gradient(135deg, rgba(212, 166, 58, 0.08), transparent);
  border-block: 1px solid var(--bdr);
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-inner p {
  color: var(--txt2);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 15px;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cta-btns .btn {
  min-height: 46px;
  padding: 10px 22px;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--bdr);
  gap: 10px;
}

.sticky-cta .btn {
  flex: 1;
  min-height: 44px;
}

@media (max-width: 639px) {
  body.home-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta {
    display: flex;
  }

  .home-section {
    padding: 56px 0;
  }

  .hero {
    padding: 32px 0 48px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    overflow-wrap: break-word;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .hero-cta .btn-outline:nth-child(3) {
    display: flex;
  }

  .founding-wrap {
    gap: 24px;
  }

  .bots-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }

  .home-container {
    padding: 0 12px;
  }
}

@media (max-width: 320px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .sticky-cta {
    flex-direction: column;
  }
}
