/* Homepage only. Builds on app.css tokens. */
main.home { max-width: none; padding: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- hero ---------- */
.hero2 { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero2::before { content: ""; position: absolute; inset: -30% -10% auto; height: 820px; background:
  radial-gradient(closest-side at 72% 40%, var(--glow), transparent 70%),
  radial-gradient(closest-side at 18% 18%, color-mix(in srgb, var(--glow) 55%, transparent), transparent 70%); pointer-events: none; }
.hero2 .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; color: var(--text-2); }
.eyebrow b { background: var(--brand); color: var(--ink); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 650; }
.hero2 h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.08; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 700; }
.hero2 h1 .hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--brand) 70%, transparent) 62%); padding: 0 .06em; }
.hero2 .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 560px; margin: 0 0 30px; line-height: 1.7; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .meta { width: 100%; font-size: 13px; color: var(--text-3); margin-top: 6px; }
.cta .meta a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.others { display: none; margin-top: 14px; gap: 8px; flex-wrap: wrap; }
.others.open { display: flex; }

/* ---------- hero visual: logo + live-looking exchange ---------- */
.visual { position: relative; min-height: 440px; }
.visual .logo { position: absolute; right: 2%; top: -6px; width: min(300px, 62%); filter: drop-shadow(0 22px 40px rgba(180, 130, 20, .22)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.chatcard { position: absolute; left: 0; right: 10%; bottom: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-pop); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chatcard .bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.chatcard .bar .dots { display: flex; gap: 5px; }
.chatcard .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.bub { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; animation: rise .5s ease both; }
.bub.me { align-self: flex-end; flex-direction: row-reverse; }
.bub .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.bub .tx { background: var(--surface-2); border-radius: 14px; padding: 9px 13px; font-size: 13px; line-height: 1.6; }
.bub.me .tx { background: color-mix(in srgb, var(--brand) 38%, var(--surface)); }
.bub .who { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.bub code { font-size: 12px; background: color-mix(in srgb, currentColor 8%, transparent); padding: 1px 5px; border-radius: 5px; }
.approve { align-self: center; display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px; padding: 5px 6px 5px 14px; animation: rise .5s ease both; }
.approve span.ok { background: var(--primary); color: var(--primary-text); border-radius: 999px; padding: 2px 12px; font-weight: 600; }
.d1 { animation-delay: .25s !important; } .d2 { animation-delay: 1s !important; } .d3 { animation-delay: 1.8s !important; }
/* the hidden state lives only in the keyframes: without animation (reduced motion, paused tabs) the content just shows */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section h2.big { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }
.section .sub { color: var(--text-2); font-size: 16px; max-width: 620px; margin-bottom: 36px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 32%, var(--surface)); color: var(--ink); display: grid; place-items: center; margin-bottom: 16px; }
:root[data-theme="dark"] .feature .ic { color: var(--brand); background: var(--accent-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feature .ic { color: var(--brand); background: var(--accent-soft); } }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 14px; margin: 0; }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: f; }
.flow li { list-style: none; counter-increment: f; position: relative; padding: 26px 24px 24px; border-radius: 20px; background: var(--surface-2); }
.flow li::before { content: "0" counter(f); font: 700 34px/1 var(--font-display); color: color-mix(in srgb, var(--accent) 70%, transparent); display: block; margin-bottom: 14px; letter-spacing: -.02em; }
.flow h3 { font-size: 16px; margin-bottom: 6px; }
.flow p { color: var(--text-2); margin: 0; font-size: 14px; }
.flow { padding: 0; margin: 0; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--ink); color: #f4f4f5; border-radius: 28px; padding: 48px; position: relative; overflow: hidden; }
.trust::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(253, 217, 127, .28), transparent); }
.trust h2 { color: #fff; }
.trust .sub { color: #b6b6bf; margin-bottom: 0; }
.trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.trust li { display: flex; gap: 12px; align-items: flex-start; color: #d9d9de; font-size: 14px; }
.trust li b { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }
.trust li i { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); flex: none; display: grid; place-items: center; margin-top: 2px; }
.trust li i svg { width: 13px; height: 13px; color: var(--ink); }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.dl:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 70%, var(--line)); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.dl.mine { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.dl svg { width: 30px; height: 30px; flex: none; }
.dl b { display: block; font-size: 15px; }
.dl span { font-size: 12px; color: var(--text-3); }
.dl .tag { margin-left: auto; font-size: 11px; background: var(--brand); color: var(--ink); border-radius: 999px; padding: 2px 9px; font-weight: 650; }

@media (max-width: 960px) {
  .hero2 .wrap { grid-template-columns: 1fr; gap: 28px; }
  .visual { min-height: 400px; }
  .features, .flow, .dl-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .hero2 { padding: 40px 0 24px; }
  .visual { min-height: 380px; }
  .visual .logo { width: 46%; }
  .chatcard { right: 0; }
  .features, .flow, .dl-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .trust { padding: 28px 22px; border-radius: 22px; }
  .cta .btn-lg { width: 100%; }
}
