/* ============================================================
   iTaoBuy, Line by Line — main-site template DNA (cyber editorial)
   dark #0a0a14 · purple/pink/cyan/lime · Inter · § sections
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a14; --bg-2: #11111d; --bg-3: #161625; --line: #232336;
  --ink: #f4f4f8; --ink-2: #c4c4d1; --ink-3: #8a8aa3;
  --purple: #a855f7; --pink: #ec4899; --cyan: #06d6f0; --lime: #b6ff3a;
  --orange: #ff7a3b; --yellow: #ffd60a;
  --wa: #25D366; --tg: #26A5E4; --dc: #5865F2; --wx: #07C160;
  --grad-1: linear-gradient(135deg, var(--purple) 0%, var(--pink) 60%, var(--orange) 100%);
  --grad-2: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  --grad-3: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 100%);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
}

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle 600px at 12% -10%, rgba(168,85,247,.18), transparent 60%),
    radial-gradient(circle 600px at 92% 8%, rgba(236,72,153,.14), transparent 60%),
    radial-gradient(circle 800px at 50% 110%, rgba(6,214,240,.10), transparent 60%);
}

body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(10,10,20,.78); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.bn { font-weight: 900; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.bn span { color: var(--lime); }
.bn:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-solid { background: var(--ink); color: var(--bg); box-shadow: 0 6px 24px rgba(255,255,255,.08); }
.btn-solid:hover { background: var(--lime); color: var(--bg); box-shadow: 0 8px 30px rgba(182,255,58,.4); transform: translateY(-2px); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--ink-3); transform: translateY(-2px); text-decoration: none; }

/* ---- hero ---- */
.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); background: rgba(255,255,255,.02); }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(182,255,58,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(182,255,58,.7); } 70% { box-shadow: 0 0 0 10px rgba(182,255,58,0); } 100% { box-shadow: 0 0 0 0 rgba(182,255,58,0); } }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 5vw, 62px); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.hero h1 .grad { background: var(--grad-1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 580px; line-height: 1.6; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 580px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .m-num { font-size: 28px; font-weight: 800; background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.hero-meta .m-lab { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

.hero-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-card .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); border: 1px solid rgba(6,214,240,.4); border-radius: 999px; padding: 5px 12px; }
.hero-card h3 { margin-top: 16px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hero-card .sub { display: block; font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.rows { margin-top: 20px; display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.row span { color: var(--ink-3); }
.row b { color: var(--ink); text-align: right; font-weight: 600; }
.stamp-row { margin-top: 18px; }
.stamp { display: inline-block; padding: 8px 14px; border-radius: 10px; background: rgba(182,255,58,.1); border: 1px dashed var(--lime); color: var(--lime); font-weight: 800; font-size: 12px; letter-spacing: .12em; }

/* ---- sections ---- */
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 44px; max-width: 720px; }
.sec-num { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--ink-3); }
.sec-title { margin-top: 10px; font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.sec-title .grad { background: var(--grad-1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-sub { margin-top: 14px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }

/* ---- bento ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.b-card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; overflow: hidden; }
.b-card::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-2); opacity: 0; transition: opacity .2s; }
.b-card:hover::after { opacity: 1; }
.bnum { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); }
.bnum b { color: var(--lime); }
.b-card h4 { margin-top: 12px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.b-card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.bmeta { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---- ledger ---- */
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.lcol-head { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.lcol-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.lcol-head.settled { color: var(--lime); } .lcol-head.settled .dot { background: var(--lime); box-shadow: 0 0 12px rgba(182,255,58,.6); }
.lcol-head.ask { color: var(--yellow); } .lcol-head.ask .dot { background: var(--yellow); box-shadow: 0 0 12px rgba(255,214,10,.6); }
.lcol ul { margin-top: 16px; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.lcol li { padding: 10px 0 10px 26px; position: relative; font-size: 14px; color: var(--ink-2); line-height: 1.5; border-top: 1px solid rgba(255,255,255,.03); }
.lcol li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 12px; border-radius: 4px; }
.lcol:first-child li::before { background: var(--lime); }
.lcol:last-child li::before { background: var(--yellow); }

/* ---- calculator ---- */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.calc-c, .calc-r { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; }
.calc-c label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.calc-c label + label { margin-top: 16px; }
.calc-c input, .calc-c select { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; font-size: 15px; padding: 12px 14px; outline: none; }
.calc-c input:focus, .calc-c select:focus { border-color: var(--cyan); }
.calc-r .line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.calc-r .line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-r .line.total { border-bottom: none; font-size: 17px; font-weight: 800; color: var(--ink); }
.calc-r .line.total b { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-r .usd { font-size: 13px; }
.fine { margin-top: 14px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }

/* ---- timeline ---- */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tn { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.ring { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.5); color: #c99cfb; }
.td { margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); }
.tn h4 { margin-top: 6px; font-size: 17px; font-weight: 800; }
.tn p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ---- traps ---- */
.traps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tp { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.tp .lbl { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--pink); border: 1px solid rgba(236,72,153,.4); border-radius: 999px; padding: 4px 10px; }
.tp h4 { margin-top: 14px; font-size: 17px; font-weight: 800; }
.tp p { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.tp .fix { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(182,255,58,.06); border: 1px dashed rgba(182,255,58,.4); font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.tp .fix b { color: var(--lime); }

/* ---- faq ---- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.q { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 22px; }
.q summary { cursor: pointer; padding: 18px 0; font-size: 16px; font-weight: 700; list-style: none; position: relative; padding-right: 30px; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: '+'; position: absolute; right: 4px; top: 16px; color: var(--cyan); font-weight: 800; font-size: 18px; }
.q[open] summary::after { content: '–'; }
.q p { padding: 0 0 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; max-width: 720px; }

/* ---- cta band ---- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 40px; border-radius: var(--r-lg); background: var(--grad-1); box-shadow: 0 30px 80px rgba(168,85,247,.28); }
.cta-band h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.cta-band p { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.85); }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-on-light { background: #0c0c14; color: #fff; }
.btn-on-light:hover { background: #000; transform: translateY(-2px); text-decoration: none; }
.btn-on-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-on-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); text-decoration: none; }

/* ---- footer ---- */
.ftr { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.ftr-brand .bn { font-size: 22px; }
.ftr-brand p { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); max-width: 300px; }
.ftr-brand .addr { margin-top: 18px; font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); line-height: 1.8; }
.ftr-brand .addr b { color: var(--ink-2); letter-spacing: .14em; }
.ftr-col h6 { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 14px; }
.ftr-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ftr-col a { color: var(--ink-2); font-size: 13.5px; }
.ftr-col a:hover { color: var(--cyan); text-decoration: none; }
.ftr-col .note { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.ftr-bots { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-3); }
.ftr-bots a { color: var(--ink-3); } .ftr-bots a:hover { color: var(--cyan); text-decoration: none; }

/* ---- toast ---- */
#toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--bg-3); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 13px 22px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 99; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .bento, .tl { grid-template-columns: repeat(2, 1fr); }
  .traps { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .bento, .tl, .ledger-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
}
