/* ===== BiteBills landing — 1:1 from Figma ===== */

:root {
  --bg: #0a0a0a;
  --card: #141414;
  --panel: #111111;
  --line: rgba(255, 255, 255, 0.08);      /* #ffffff14 */
  --text: #fafafa;
  --muted: rgba(255, 255, 255, 0.64);     /* #ffffffa3 */
  --muted2: #a7a7a7;
  --green: #489834;
  --green-bright: #4ad94f;
}

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

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1512px;
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo img { border-radius: 4px; }
.nav-links {
  position: absolute;
  left: 507px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
}
.nav-links a:hover { color: #fff; }
.header-divider { height: 1px; background: var(--line); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  background: #ffffff;
  color: #0a0a0a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .15s, transform .15s;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:active { transform: scale(.98); }
.btn-primary .arr { margin-left: auto; padding-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 905px;
  overflow: hidden;
}
.hero-glow-wide {
  position: absolute;
  left: calc(50% - 756px + 106px);
  top: 60px;
  width: 1300px;
  height: 760px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.031);  /* #ffffff08 */
  filter: blur(200px);
}
.hero-glow-core {
  position: absolute;
  left: calc(50% - 756px + 376px);
  top: 240px;
  width: 760px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);   /* #ffffff12 */
  filter: blur(160px);
}
.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
}
.hero-inner .kicker { margin-top: 249px; }
.hero-title {
  margin-top: 40px;
  font-size: 64px;
  font-weight: 600;
  line-height: 83px;
  text-align: center;
  color: #ffffff;
}
.hero-line { display: block; }
.hero-line-icon {
  margin-top: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero-coin { margin-top: 8px; }
.italic { font-style: italic; }

.hero-inner .btn-primary { margin-top: 40px; }  /* title end 590.5 -> button 638.5 (hero y) */
.ticker {
  margin-top: 40px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Content frame ---------- */
.content {
  max-width: 1512px;
  margin: 0 auto;
  padding: 64px 48px;
}

.section { margin-bottom: 96px; }
.section:last-child { margin-bottom: 0; }

/* ---------- Section headers ---------- */
.section-head.center {
  text-align: center;
  margin-bottom: 96px;
}
.section-title {
  font-size: 64px;
  font-weight: 600;
  line-height: 90px;
  color: var(--text);
}
.section-title.left { text-align: left; line-height: 1; }
.section-subtitle {
  margin: 16px auto 0;
  max-width: 888px;
  font-size: 24px;
  font-weight: 500;
  line-height: 31px;
  color: var(--text);
}
.section-subtitle.left { text-align: left; margin: 24px 0; max-width: none; }
#how-it-works .section-subtitle.left { margin-bottom: 30px; }
.section-paragraph {
  margin: 16px auto 0;
  max-width: 1092px;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  color: var(--muted);
}
.section-paragraph.left { text-align: left; margin: 24px 0; max-width: none; }
.section-btn { margin-top: 32px; }

/* ---------- Kicker (mono label) ---------- */
.section > .kicker { margin-bottom: 30px; }

/* ---------- Big cards ---------- */
.big-cards {
  display: flex;
  gap: 32px;
  margin-bottom: 96px;
}
.big-card {
  width: 692px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.big-card.wide933 { width: 934px; }
.big-card.narrow460 { width: 451px; }
.big-card-img {
  margin: 1px;
  width: calc(100% - 2px);
  background: rgba(255, 255, 255, 0.031);
  border-radius: 13px 13px 0 0;
  overflow: hidden;
}
.big-card-img img { width: 100%; height: auto; }

.card-body {
  padding: 32px 64px 64px;
}
.card-body.compact {
  padding: 24px 0 0;
  background: none;
}
.card-body.minimal {
  padding: 24px 0 0;
}
.card-body.roadmap {
  padding: 24px 0 0;
}
.card-body.short { padding-bottom: 0; }

.card-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-icon { border-radius: 6px; }
.card-icon.plain { border-radius: 0; }
.card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--text);
}
.card-desc {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
  color: var(--muted);
}
.card-desc.sm { line-height: 21px; }
.card-link-margin {
  margin-top: 16px;
  padding-top: 8px;
}
.card-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: opacity .15s;
}
.card-link:hover { opacity: .75; }

/* ---------- Small cards ---------- */
.small-cards {
  display: flex;
  gap: 32px;
}
.small-card {
  width: 451px;
}
.small-card.narrow { width: 450px; }
.small-card-img {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.small-card-img img { width: 100%; height: auto; }

.startup-cards { align-items: flex-start; }
.startup-cards.second-row { margin-top: 30px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  background: #1d1d1d;
  border-radius: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted2);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Platforms section ---------- */
.platforms-section {
  display: flex;
  justify-content: space-between;
  padding: 194px 0;
  margin-bottom: 96px;
}
.platforms-head .section-title { margin-bottom: 24px; }
.platforms-head .section-subtitle.left { max-width: 416px; }
.platforms-head .section-paragraph.left { max-width: 734px; }
.platforms-head .btn-primary { margin-top: 24px; }
.platforms-row { margin-top: 24px; }

.lcv-wrap { container-type: inline-size; width: 100%; max-width: 560px; flex-shrink: 0; margin-top: 10px; aspect-ratio: 560/341; position: relative; }
.link-card-visual {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 341px;
  transform-origin: 0 0;
  transform: scale(calc(100cqw / 560px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px 24px;
}
@supports not (width: 1cqw) {
  .lcv-wrap { aspect-ratio: auto; overflow: visible; }
  .link-card-visual { position: static; transform: none; }
}
.link-card-visual > .kicker { line-height: 18px; font-size: 14px; }
.link-pill {
  margin-top: 16px;
  width: 512px;
  height: 47px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
}
.pill-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
}
.conversion-card {
  margin-top: 16px;
  width: 512px;
  height: 162px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  position: relative;
}
.conversion-top {
  height: 128px;
  display: flex;
  justify-content: space-between;
}
.conversion-label-block { padding-top: 15px; margin-left: 42px; }
.conv-label {
  font-size: 16px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.62);
}
.conv-value {
  margin-top: 17px;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}
.conversion-bars {
  position: absolute;
  right: 56px;
  bottom: 38px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 85px;
  width: 190px;
}
.conversion-bars .bar {
  width: 22px;
  background: var(--green-bright);
  border-radius: 2px;
}
.conversion-bars .bar:nth-of-type(1) { height: 29px; }
.conversion-bars .bar:nth-of-type(2) { height: 42px; }
.conversion-bars .bar:nth-of-type(3) { height: 36px; }
.conversion-bars .bar:nth-of-type(4) { height: 59px; }
.conversion-bars .bar:nth-of-type(5) { height: 49px; }
.conversion-bars .bar:nth-of-type(6) { height: 72px; }
.conversion-bars .bar:nth-of-type(7) { height: 85px; }
.platforms-line {
  position: absolute;
  left: 25px;
  top: 300px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.conversion-delta {
  position: absolute;
  left: 83px;
  top: 236px;
  width: max-content;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.delta-value {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.delta-period {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.74);
}

/* ---------- Footer ---------- */
.footer { margin-top: 0; }
.footer-title {
  font-size: 64px;
  font-weight: 600;
  line-height: 83px;
  color: var(--text);
}
.footer-btn { margin-top: 32px; }
.footer-divider { height: 1px; background: var(--line); }
.footer-divider.top { margin-top: 64px; }
.footer-divider.bottom { margin-top: 64px; }

.footer-links {
  margin-top: 64px;
  display: flex;
  gap: 174px;
}
.footer-brand { width: 403px; }

.brand-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.brand-tagline {
  margin-top: 16px;  /* 6474 - 6427 - 31 = 16 */
  font-size: 16px;
  line-height: 21px;
  color: var(--muted);
}
.tg-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tg-link span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.tg-link:hover { opacity: .8; }

.footer-col { width: auto; }
.col-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--muted2);
}
.links-list {
  margin-top: 16px;   /* 6461 - 6427(h18) - 18 = 16 */
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.links-list a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 21px;
}
.links-list a:hover { opacity: .75; }

.footer-bottom {
  padding: 64px 0 67px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* ================= Mobile adaptation ================= */

/* --- Burger --- */
.header .burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.header .burger span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition: transform .2s, opacity .2s;
}
.header.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.open .burger span:nth-child(2) { opacity: 0; }
.header.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- ≤1560: fluid layout --- */
@media (max-width: 1560px) {
  .header-inner, .content { max-width: none; }
  .header-inner { padding: 0 24px; }
  .nav-links { left: auto; right: 280px; }
  .big-cards, .small-cards {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .big-cards { margin-bottom: 96px; }
  .big-card, .big-card.wide933, .big-card.narrow460 {
    width: auto;
    flex: 1 1 480px;
    max-width: 692px;
    min-width: 0;
  }
  .small-card, .small-card.narrow {
    width: auto;
    flex: 1 1 340px;
    max-width: 451px;
    min-width: 0;
  }
  .card-body { padding: 24px 32px 48px; }
  .platforms-section { align-items: flex-start; }
  .platforms-head { max-width: 640px; }
}

/* --- ≤1280: burger menu stays, links drop out of the row --- */
@media (max-width: 1280px) {
  .nav-links { display: none; }
  .header .burger { display: flex; }
  .header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--line);
    z-index: 999;
  }
  .header.open .nav-links a { font-size: 16px; }
  .header-btn { display: none; }
  .header.open { background: #0a0a0a; }
}

/* --- ≤900: typographic scale-down --- */
@media (max-width: 900px) {
  .platforms-section { flex-direction: column; align-items: flex-start; padding: 0 0 64px; margin-bottom: 64px; }
  .lcv-wrap { width: 100%; max-width: 560px; }

  .footer-cta { padding-bottom: 32px; }
  .footer-divider.top { margin-top: 0; }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-top: 48px;
  }
  .footer-brand { grid-column: 1 / -1; width: auto; }
  .footer-links .footer-col { width: auto; }
  .footer-divider.bottom { margin-top: 48px; }
  .footer-bottom { padding: 48px 0 48px; }
  .bottom-cards .big-card.narrow460 { container-type: inline-size; aspect-ratio: 4507/6035; }
  .bottom-cards .big-card.narrow460 .card-body.short { padding: 7.1% 14.2% 0; }
  .bottom-cards .big-card.narrow460 .card-icon-row { gap: 1.78cqw; }
  .bottom-cards .big-card.narrow460 .card-icon { width: 5.33cqw; height: auto; border-radius: 1.33cqw; }
  .bottom-cards .big-card.narrow460 .card-title { font-size: 4.44cqw; line-height: 6.2cqw; }
  .bottom-cards .big-card.narrow460 .badge { height: 5.33cqw; padding: 0 1.78cqw; font-size: 2.66cqw; border-radius: .9cqw; }
  .bottom-cards .big-card.narrow460 .card-desc { margin-top: 1.78cqw; font-size: 3.55cqw; line-height: 4.66cqw; }
  .hero { height: auto; padding: 150px 16px 110px; }
  .hero-inner .kicker { margin-top: 0; }
  .hero-title { font-size: clamp(19.5px, 6.2vw, 64px); line-height: 1.3; margin-top: 24px; }
  .hero-line-icon span { white-space: nowrap; }
  .hero-line-icon { gap: .16em; margin-top: 0; }
  .hero-coin { width: 1.625em; height: auto; margin-top: .125em; }
  .hero-inner .btn-primary { margin-top: 32px; }
  .ticker { margin-top: 32px; font-size: 11px; padding: 0 16px; text-align: center; }

  .hero-glow-wide, .hero-glow-core { display: none; }
  .hero {
    background:
      radial-gradient(120vw 60% at 50% 62%, rgba(255, 255, 255, .045), transparent 72%),
      radial-gradient(70vw 48% at 50% 70%, rgba(255, 255, 255, .055), transparent 70%);
  }

  .section-title { font-size: clamp(36px, 6vw, 64px); line-height: 1.15; }
  .section-subtitle { font-size: 18px; line-height: 1.4; }
  .section-paragraph { font-size: 15px; line-height: 1.45; }
  .kicker { font-size: 12px; }
  .footer-title { font-size: clamp(34px, 6vw, 64px); line-height: 1.15; }

  .card-title { font-size: 17px; line-height: 24px; }
  .card-desc { font-size: 14px; line-height: 1.45; }
}

/* --- ≤760: stacking --- */
@media (max-width: 760px) {
  .content { padding: 40px 16px; }
  .section, .section-head.center, .big-cards { margin-bottom: 64px; }
  .big-cards { margin-bottom: 64px; }
  .section > .kicker { margin-bottom: 20px; }
  .big-cards, .small-cards { gap: 32px; }
  .startup-cards.second-row { margin-top: 32px; }
  .big-card, .big-card.wide933, .big-card.narrow460 {
    flex: 1 1 100%;
    max-width: none;
  }
  .small-card, .small-card.narrow {
    flex: 1 1 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .card-body { padding: 20px 20px 40px; }
  .card-desc { line-height: 1.45; }
  .card-link-margin { margin-top: 12px; }

  .section-btn { width: 100%; max-width: 320px; }
  .btn-primary { padding: 0 18px; }

  .platforms-section {
    flex-direction: column;
    padding: 0 0 64px;
    margin-bottom: 64px;
  }
  .platforms-section .btn-primary { width: 100%; max-width: 320px; }
  .lcv-wrap { width: 100%; margin-top: 40px; }
  .platforms-row { max-width: 100%; height: auto; }
}
/* --- ≤520: fine tuning --- */
@media (max-width: 520px) {
  .hero { padding: 110px 16px 90px; }
  .links-list a { font-size: 15px; }
  .brand-tagline { font-size: 14px; }
  .links-list a { font-size: 14px; }
  .nav-links a { font-size: 13px; }
  .header-btn { padding: 0 12px; font-size: 13px; }
  .section-title { font-size: 30px; }
  .card-icon-row { flex-wrap: wrap; gap: 6px; }
}
