/* ============ DESIGN TOKENS ============ */
:root {
  --brand: #E20613;
  --brand-2: #ff2c3a;
  --brand-soft: rgba(226, 6, 19, 0.12);
  --brand-glow: rgba(226, 6, 19, 0.45);

  --bg: #0b0e11;
  --bg-2: #11151a;
  --bg-3: #181d24;
  --bg-card: #161a20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eaecef;
  --text-2: #b7bdc6;
  --text-3: #848e9c;

  --up: #0ecb81;
  --down: #f6465d;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 12px 40px rgba(226, 6, 19, 0.25);

  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.brand-text { color: var(--brand); }

/* ============ TOP BANNER ============ */
.top-banner {
  background: linear-gradient(90deg, rgba(226, 6, 19, 0.15), rgba(226, 6, 19, 0.05));
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
}
.top-banner strong { color: var(--brand-2); }
.top-banner .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}
.top-banner a {
  color: var(--brand-2);
  font-weight: 600;
  margin-left: 4px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(226, 6, 19, 0.4));
}
.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost,
.btn-primary,
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-ghost {
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: var(--bg-3); }
.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  box-shadow: 0 6px 20px rgba(226, 6, 19, 0.4);
}
.btn-download {
  width: 38px; height: 38px;
  padding: 0;
  background: var(--bg-3);
  color: var(--text-2);
}
.btn-download:hover { color: var(--brand); }
.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  background: radial-gradient(ellipse at top, rgba(226, 6, 19, 0.08), transparent 60%), var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.orb-1 {
  width: 480px; height: 480px;
  background: rgba(226, 6, 19, 0.55);
  top: -120px; right: -80px;
}
.orb-2 {
  width: 360px; height: 360px;
  background: rgba(120, 0, 200, 0.35);
  bottom: -120px; left: 10%;
}
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-2);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}
.hero-copy h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-h1-sub {
  font-size: 0.4em;
  font-weight: 600;
  color: var(--text-2);
  vertical-align: middle;
  margin-left: 6px;
}
.counter {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 60%, #ff8a93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  margin: 0 0 32px;
  max-width: 540px;
}
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin-bottom: 12px;
}
.signup-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 4px 4px 4px 16px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s;
}
.signup-input:focus-within { border-color: var(--brand); }
.signup-prefix {
  font-size: 13px;
  color: var(--text-3);
  margin-right: 12px;
  white-space: nowrap;
}
.signup-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 16px;
  padding: 14px 0;
}
.hero-fineprint {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}
.hero-fineprint a {
  color: var(--text-2);
  margin: 0 4px;
  border-bottom: 1px dashed transparent;
}
.hero-fineprint a:hover {
  color: var(--brand-2);
  border-color: var(--brand);
}

/* hero card */
.hero-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--brand-soft) inset;
  position: relative;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.card-tag {
  background: var(--brand-soft);
  color: var(--brand-2);
  font-weight: 600;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}
.card-pair { font-weight: 600; flex: 1; }
.card-change.up { color: var(--up); font-weight: 600; }
.card-change.down { color: var(--down); font-weight: 600; }
.card-price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.spark {
  width: 100%;
  height: 80px;
  display: block;
  margin-bottom: 16px;
}
.card-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 13px;
}
.card-foot div { display: flex; flex-direction: column; gap: 4px; }
.card-foot strong { font-size: 14px; font-weight: 600; }
.muted { color: var(--text-3); font-size: 12px; }

/* ============ MARKETS ============ */
.markets {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px 40px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.tab {
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--brand-soft);
  color: var(--brand-2);
}
.see-all {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-2);
  padding: 8px 4px;
}
.see-all:hover { color: var(--brand-2); }

.market-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mt-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.2fr 1.2fr 1fr;
  align-items: center;
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.mt-row:last-child { border-bottom: 0; }
.mt-row:not(.mt-head):hover { background: var(--bg-3); }
.mt-head {
  color: var(--text-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mt-row .mt-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.mt-coin {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7a0309);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.mt-name small {
  font-weight: 400;
  color: var(--text-3);
  font-size: 12px;
  display: block;
}
.mt-change.up { color: var(--up); font-weight: 600; }
.mt-change.down { color: var(--down); font-weight: 600; }
.mt-trade {
  text-align: right;
  color: var(--brand-2);
  font-weight: 600;
}
.mt-trade:hover { text-decoration: underline; }

/* ============ FEATURES ============ */
.features {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 60px 24px;
}
.features-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  text-align: left;
  padding: 4px;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ============ PRODUCTS ============ */
.products {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 24px;
}
.product-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}
.product-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.product-card.big {
  grid-row: span 2;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(226, 6, 19, 0.12) 100%);
  border-color: rgba(226, 6, 19, 0.3);
  position: relative;
}
.pc-content { position: relative; z-index: 2; }
.pc-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.product-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.product-card p {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 14px;
}
.pc-link {
  color: var(--brand-2);
  font-size: 14px;
  font-weight: 600;
}
.pc-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.art-spot {
  background:
    radial-gradient(circle at 80% 30%, rgba(226, 6, 19, 0.35), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(226, 6, 19, 0.2), transparent 60%);
}

/* ============ STEPS ============ */
.steps {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.step-num {
  font-size: 56px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

/* ============ DOWNLOAD ============ */
.download {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  padding: 100px 24px;
  overflow: hidden;
}
.download-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.download-copy h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.download-copy p {
  color: var(--text-2);
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 460px;
}
.download-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.qr-inner {
  width: 120px; height: 120px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  position: relative;
}
.qr-pattern {
  width: 100%; height: 100%;
  background-image:
    linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%),
    linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 20px;
  color: var(--text);
  transition: all 0.2s;
  min-width: 200px;
}
.store-btn:hover { border-color: var(--brand); }
.store-btn small { display: block; font-size: 11px; color: var(--text-3); }
.store-btn strong { font-size: 15px; font-weight: 600; }

.phone-mock { display: flex; justify-content: center; }
.phone-frame {
  width: 280px; height: 560px;
  background: #050708;
  border-radius: 36px;
  border: 8px solid #1a1f27;
  padding: 14px;
  position: relative;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(226, 6, 19, 0.2),
    0 0 0 1px var(--line-strong) inset;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 6px;
  background: #1a1f27;
  border-radius: 4px;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, #06090c 100%);
  border-radius: 24px;
  padding: 50px 24px 24px;
  position: relative;
  overflow: hidden;
}
.phone-pair { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.phone-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.phone-change {
  color: var(--up);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}
.phone-chart {
  width: 100%;
  height: 120px;
  display: block;
  margin-bottom: 32px;
}
.phone-actions {
  display: flex;
  gap: 12px;
  position: absolute;
  bottom: 28px;
  left: 24px;
  right: 24px;
}
.phone-buy, .phone-sell {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}
.phone-buy { background: var(--up); color: #003020; }
.phone-sell { background: var(--down); color: #350010; }

/* ============ CTA ============ */
.cta {
  padding: 80px 24px;
  background: radial-gradient(ellipse at center, rgba(226, 6, 19, 0.15), transparent 60%), var(--bg);
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #7a0309 100%);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  box-shadow: var(--shadow-glow);
}
.cta-inner h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.01em;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin: 0 0 28px;
}
.cta-inner .btn-primary {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}
.cta-inner .btn-primary:hover {
  background: #fff;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.4);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 60px 24px 24px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 3fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.foot-logo { height: 30px; margin-bottom: 14px; }
.foot-tag { color: var(--text-2); margin: 0 0 20px; max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.2s;
}
.socials a:hover { color: var(--brand); background: var(--brand-soft); }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.foot-cols h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.foot-cols a {
  display: block;
  color: var(--text-3);
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.2s;
}
.foot-cols a:hover { color: var(--brand-2); }
.foot-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 480px; margin: 0 auto; width: 100%; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .product-card.big { grid-row: span 1; grid-column: span 2; }
  .download-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .download-copy p { margin-left: auto; margin-right: auto; }
  .download-cta { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
  .top-banner span:nth-child(2) { display: none; }
  .hero { padding: 60px 20px 80px; }
  .signup-form { flex-direction: column; }
  .signup-input { width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card.big { grid-column: span 1; }
  .mt-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 14px 16px; }
  .mt-row .hide-sm { display: none; }
  .mt-row > span:nth-child(5) { display: none; }
  .features-inner { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .markets, .products, .steps { padding-left: 20px; padding-right: 20px; }
}
