html {
  scroll-behavior: smooth;
}

:root {
  --pionex-orange: #ff7a1a;
  --pionex-orange-2: #ff8a00;
  --pionex-deep-orange: #f05a00;
  --pionex-bg: #070707;
  --pionex-card: #151515;
  --pionex-muted: #b8b8b8;
}

body {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--pionex-bg);
}

button,
a,
input,
textarea {
  letter-spacing: 0;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.24), transparent 36%),
    radial-gradient(circle at 85% 22%, rgba(240, 90, 0, 0.14), transparent 28%),
    linear-gradient(135deg, #09090b 0%, #15110b 48%, #070708 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.hero-title-accent {
  background: linear-gradient(90deg, var(--pionex-orange), var(--pionex-deep-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-primary {
  background: linear-gradient(135deg, var(--pionex-orange), var(--pionex-deep-orange));
  box-shadow: 0 16px 42px rgba(255, 122, 26, 0.22);
}

.cta-primary:hover {
  box-shadow: 0 18px 52px rgba(255, 122, 26, 0.34);
  filter: brightness(1.05);
}

.cta-primary:disabled {
  cursor: not-allowed;
  filter: saturate(0.75) brightness(0.88);
  opacity: 0.76;
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 122, 26, 0.42);
}

.cta-secondary:hover {
  background: rgba(255, 122, 26, 0.12);
  border-color: rgba(255, 122, 26, 0.75);
  box-shadow: 0 14px 38px rgba(255, 122, 26, 0.18);
}

.text-amber-100,
.text-amber-200,
.text-amber-300,
.text-amber-400 {
  color: #ffb36a !important;
}

.bg-amber-500,
.bg-amber-400 {
  background-color: var(--pionex-orange) !important;
}

.border-amber-300\/20,
.border-amber-300\/25,
.border-amber-300\/30,
.border-amber-300\/35,
.border-amber-400\/35 {
  border-color: rgba(255, 122, 26, 0.32) !important;
}

.bg-amber-300\/10,
.bg-amber-400\/10 {
  background-color: rgba(255, 122, 26, 0.1) !important;
}

.shadow-amber-500\/10,
.shadow-amber-500\/25 {
  --tw-shadow-color: rgba(255, 122, 26, 0.18) !important;
}

.anchor-offset {
  scroll-margin-top: 92px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-flow-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-flow-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.profit-banner {
  background:
    linear-gradient(115deg, rgba(255, 116, 27, 0.98) 0%, rgba(249, 91, 10, 0.98) 48%, rgba(187, 58, 0, 0.98) 100%),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  box-shadow:
    0 22px 70px rgba(249, 91, 10, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.profit-icon {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.grid-compare-card,
.grid-compare-card-featured {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(12, 12, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.grid-compare-card-featured {
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(15, 15, 18, 0.9);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow:
    0 22px 70px rgba(245, 158, 11, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.uid-card {
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(8, 8, 10, 0.58);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.uid-input {
  background: #ffffff;
  border: 1px solid rgba(255, 122, 26, 0.22);
  color: #111111;
}

.uid-input::placeholder {
  color: #737373;
}

.form-message-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.form-message-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #fca5a5;
}

.tutorial-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(12, 12, 15, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.26);
}

.visual-placeholder {
  background:
    radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.visual-placeholder .guide-placeholder {
  aspect-ratio: 16 / 9;
}

.guide-image-stack {
  display: grid;
  gap: 18px;
}

.guide-asset {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(7, 7, 7, 0.62);
}

.visual-placeholder-banner {
  background:
    linear-gradient(110deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.035) 42%, rgba(15, 15, 18, 0.8)),
    rgba(255, 255, 255, 0.04);
}

.visual-placeholder-banner .guide-placeholder {
  aspect-ratio: 3 / 1;
}

.visual-placeholder-phone .guide-placeholder {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  min-height: 520px;
}

.dark-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(10, 10, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stock-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.2), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(234, 179, 8, 0.13), transparent 24%),
    linear-gradient(180deg, #111114 0%, #09090b 100%);
}

.table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #f59e0b #18181b;
}

.stock-row {
  background: rgba(255, 255, 255, 0.015);
}

.stock-row:hover {
  background: rgba(255, 122, 26, 0.045);
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ff9f45;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.32);
  font-weight: 800;
}

.rank-chip {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.stock-symbol {
  font-size: 1.12rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.category-semiconductor {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

.category-tech {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

.category-crypto {
  background: rgba(255, 122, 26, 0.14);
  border: 1px solid rgba(255, 122, 26, 0.45);
  color: #ff9f45;
}

.category-commodity {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
}

.claim-button {
  border-color: rgba(255, 122, 26, 0.5);
  color: #ff9f45;
}

.claim-button:hover {
  background: rgba(255, 122, 26, 0.12);
  border-color: rgba(255, 122, 26, 0.86);
  color: #ffffff;
}

.guide-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.focus-ring:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.42);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .table-scroll {
    margin-left: -1rem;
    margin-right: -1rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .visual-placeholder .guide-placeholder,
  .visual-placeholder-banner .guide-placeholder {
    aspect-ratio: auto;
  }

  .visual-placeholder-phone .guide-placeholder {
    aspect-ratio: 9 / 16;
    min-height: 480px;
  }
}
