/* UI/UX Pro Max + APEC Finance Brand Identity + OVA-Inspired Luxury Motion
 * Primary: #341670 (APEC Royal Violet) | Secondary: #254099 (APEC Royal Blue)
 * Accent: #FBB03B -> #F7931E -> #ED1C24 (APEC Flame) | Stage: #0B0714 (Obsidian Violet)
 * Typography: Be Vietnam Pro + Playfair Display (roman) + JetBrains Mono
 */

:root {
  /* Brand & Stage Surfaces */
  --color-obsidian: #0B0714;
  --color-violet-deep: #15092E;
  --color-violet: #341670;
  --color-violet-mid: #4B2396;
  --color-blue: #254099;

  /* Flame & Gold Accents */
  --color-flame-gold: #FBB03B;
  --color-flame-orange: #F7931E;
  --color-flame-red: #ED1C24;
  --color-accent-ink: #9A4E00;
  --gradient-flame: linear-gradient(135deg, #FBB03B 0%, #F7931E 55%, #ED1C24 100%);
  --gradient-brand: linear-gradient(135deg, #341670 0%, #254099 100%);

  /* Light Editorial Surfaces */
  --color-paper: #F4F6FB;
  --color-paper-alt: #EAEFF8;
  --color-surface: #FFFFFF;

  /* Ink */
  --color-ink: #161822;
  --color-ink-muted: #4B5563;
  --color-ink-subtle: #6B7280;
  --color-ink-on-dark: #F8FAFC;
  --color-ink-on-dark-muted: rgba(248, 250, 252, 0.72);

  /* Semantic */
  --color-success: #15803D;
  --color-success-soft: #DCFCE7;
  --color-error: #B91C1C;
  --color-error-soft: #FEE2E2;

  /* Borders & Glass */
  --color-border: rgba(52, 22, 112, 0.12);
  --color-border-strong: rgba(52, 22, 112, 0.24);
  --color-border-dark: rgba(255, 255, 255, 0.14);
  --glass-dark: rgba(16, 10, 32, 0.62);
  --glass-light: rgba(255, 255, 255, 0.82);

  --shadow-sm: 0 4px 16px rgba(17, 10, 36, 0.06);
  --shadow-md: 0 14px 36px rgba(17, 10, 36, 0.10);
  --shadow-lg: 0 28px 64px rgba(11, 7, 20, 0.24);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii & Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container-max: 1240px;

  /* Motion */
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Procedural Film Grain Overlay (OVA-style atmospheric depth) */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Eyebrow & Section Headers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-violet);
  background: rgba(52, 22, 112, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.eyebrow--dark {
  color: var(--color-flame-gold);
  background: rgba(251, 176, 59, 0.14);
  border: 1px solid rgba(251, 176, 59, 0.25);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--color-violet);
}

.section-head--dark h2 {
  color: var(--color-ink-on-dark);
}

.section-head p {
  font-size: 1.02rem;
  color: var(--color-ink-muted);
  max-width: 54ch;
}

.section-head--dark p {
  color: var(--color-ink-on-dark-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease-luxury),
              box-shadow 220ms var(--ease-luxury),
              background-color 220ms var(--ease-luxury),
              border-color 220ms var(--ease-luxury);
}

.btn:focus-visible {
  outline: 2px solid var(--color-flame-gold);
  outline-offset: 3px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-violet);
  color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-violet-mid);
  box-shadow: var(--shadow-md);
}

.btn--flame {
  background: var(--gradient-flame);
  color: var(--color-obsidian);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(247, 147, 30, 0.28);
}

.btn--flame:hover {
  box-shadow: 0 14px 36px rgba(247, 147, 30, 0.42);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-ink-on-dark);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Sticky Liquid-Glass Micro-Header (OVA-inspired live clock + section morph) */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 120;
  padding-inline: 20px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  max-width: var(--container-max);
  margin-inline: auto;
  height: 64px;
  padding-inline: 20px;
  border-radius: var(--radius-pill);
  background: var(--glass-dark);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 36px rgba(11, 7, 20, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-ink-on-dark);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-status-center {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-on-dark-muted);
}

.nav-hairline {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.26);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-flame-gold);
  box-shadow: 0 0 10px var(--color-flame-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-ink-on-dark-muted);
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--color-flame-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-surface);
  cursor: pointer;
  place-items: center;
}

/* ==========================================================================
   HERO STAGE (OVA-inspired Panoramic Atmospheric + 3D Project Orbit)
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: 100vh;
  padding-top: 108px;
  padding-bottom: 56px;
  background:
    radial-gradient(ellipse 75% 55% at 50% 10%, rgba(247, 147, 30, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 85% 70% at 80% 35%, rgba(52, 22, 112, 0.55) 0%, transparent 70%),
    linear-gradient(180deg, var(--color-obsidian) 0%, var(--color-violet-deep) 60%, #0E091D 100%);
  color: var(--color-ink-on-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-glow-horizon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 52%, rgba(251, 176, 59, 0.10), transparent 55%);
}

.hero-top-copy {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 20px;
}

.hero-title {
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  font-weight: 700;
  color: var(--color-surface);
  margin-bottom: 10px;
}

@media (min-width: 1120px) {
  .hero-title--single {
    white-space: nowrap;
    font-size: clamp(1.25rem, 1.85vw, 1.78rem);
  }
}

.kinetic-word-wrap {
  display: inline-block;
  color: var(--color-flame-gold);
  position: relative;
  min-width: 120px;
}

.hero-lead {
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  color: var(--color-ink-on-dark-muted);
  max-width: 64ch;
  margin-inline: auto;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* 3D Cylindrical Project Orbit (Nationwide APEC Projects 01 - 06) */
.orbit-stage {
  position: relative;
  z-index: 3;
  margin-block: 24px 20px;
  perspective: 1850px;
  user-select: none;
  cursor: grab;
}

.orbit-stage:active {
  cursor: grabbing;
}

.orbit-header-bar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  margin-bottom: 58px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-ink-on-dark-muted);
}

.orbit-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orbit-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.orbit-btn:hover {
  background: rgba(251, 176, 59, 0.22);
  border-color: var(--color-flame-gold);
}

.orbit-viewport {
  position: relative;
  height: 360px;
  margin-block: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.orbit-ring {
  position: relative;
  width: 236px;
  height: 256px;
  transform-style: preserve-3d;
}

.project-card-3d {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #140A2B;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.proj-photo-wrap {
  position: relative;
  width: 100%;
  height: 136px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0D081B;
}

.proj-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 600ms var(--ease-luxury);
}

.project-card-3d.is-front .proj-bg-img {
  transform: scale(1.06);
}

.proj-card-body {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #1A0E38 0%, #100722 100%);
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-flame-gold);
  margin-bottom: 6px;
}

.proj-region {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-surface);
  font-size: 0.68rem;
}

.proj-body h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.25;
  color: var(--color-surface);
  margin-bottom: 4px;
}

.proj-body p {
  font-size: 0.78rem;
  color: var(--color-ink-on-dark-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj-meta {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.82);
}

.project-card-3d.is-front {
  border-color: var(--color-flame-gold);
  box-shadow: 0 24px 60px rgba(247, 147, 30, 0.24);
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-flame-gold);
}

.proj-region {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-surface);
  font-size: 0.7rem;
}

.proj-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-surface);
  margin-bottom: 8px;
}

.proj-body p {
  font-size: 0.84rem;
  color: var(--color-ink-on-dark-muted);
  line-height: 1.5;
}

.proj-meta {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Active Project Spotlight Pill */
.project-spotlight {
  position: relative;
  z-index: 20;
  max-width: 780px;
  margin: 44px auto 0;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(16, 10, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.86rem;
}

.project-spotlight strong {
  color: var(--color-flame-gold);
}

/* Ecosystem Trust Marquee Bar */
.ecosystem-bar {
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 22px;
}

.ecosystem-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.ecosystem-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ecosystem-list span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-flame-orange);
}

/* ==========================================================================
   RATES & CALCULATOR (APEC Violet + Flame)
   ========================================================================== */
.section-rates {
  padding-block: 88px;
  background: linear-gradient(180deg, var(--color-violet-deep) 0%, var(--color-violet) 100%);
  color: var(--color-ink-on-dark);
}

.rates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}

.tier-stack {
  display: grid;
  gap: 16px;
}

.tier-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: transform 220ms var(--ease-luxury),
              border-color 220ms var(--ease-luxury),
              background-color 220ms var(--ease-luxury);
}

.tier-card:hover,
.tier-card.is-selected {
  border-color: var(--color-flame-gold);
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.tier-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-obsidian);
  background: var(--gradient-flame);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.tier-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-surface);
}

.tier-card p {
  font-size: 0.88rem;
  color: var(--color-ink-on-dark-muted);
  margin-top: 4px;
}

.tier-rate { text-align: right; }

.tier-rate strong {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-flame-gold);
  display: block;
  line-height: 1;
}

.tier-rate span {
  font-size: 0.8rem;
  color: var(--color-ink-on-dark-muted);
}

.calc-panel {
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.calc-panel h3 {
  font-size: 1.5rem;
  color: var(--color-violet);
  margin-bottom: 6px;
}

.calc-sub {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  margin-bottom: 24px;
}

.calc-group { margin-bottom: 20px; }

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.calc-amount-display {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  color: var(--color-violet);
  font-weight: 700;
}

.calc-range {
  width: 100%;
  accent-color: var(--color-violet);
  cursor: pointer;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.preset-btn {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.preset-btn.is-active {
  background: var(--color-violet);
  color: var(--color-surface);
  border-color: var(--color-violet);
}

.calc-results {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.calc-res-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

.calc-res-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.18rem;
  color: var(--color-violet);
  margin-top: 4px;
}

.calc-note {
  font-size: 0.78rem;
  color: var(--color-ink-subtle);
  margin-bottom: 18px;
}

/* ==========================================================================
   COMPARISON & PILLARS
   ========================================================================== */
.section-compare {
  padding-block: 88px;
  background: var(--color-paper);
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 40px;
  align-items: center;
}

.chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.chart-bars {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.bar-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 68px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink);
}

.bar-label--highlight {
  font-weight: 700;
  color: var(--color-violet);
}

.bar-track {
  height: 14px;
  background: var(--color-paper-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: #94A3B8;
}

.bar-fill--asavings {
  background: linear-gradient(90deg, var(--color-violet) 0%, var(--color-blue) 55%, var(--color-flame-orange) 100%);
}

.bar-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
  color: var(--color-ink-muted);
}

.bar-val--highlight {
  color: var(--color-violet);
}

.pillars-list {
  display: grid;
  gap: 16px;
}

.pillar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: transform 220ms var(--ease-luxury), box-shadow 220ms var(--ease-luxury);
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-card h3 {
  font-family: var(--font-sans);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--color-violet);
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 0.91rem;
  color: var(--color-ink-muted);
}

/* ==========================================================================
   REAL ASSETS SECTION (Official APEC Finance Banner + Experience Info)
   ========================================================================== */
.section-assets {
  padding-block: 52px;
  background: var(--color-surface);
}

.asset-showcase {
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.asset-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.asset-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.asset-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.asset-copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 0 18px;
}

.trust-item {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.trust-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--color-violet);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.84rem;
  color: var(--color-ink-muted);
}

/* ==========================================================================
   4-STEP GUIDE & FAQ
   ========================================================================== */
.section-guide {
  padding-block: 88px;
  background: var(--color-paper);
}

.stepper-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.step-tab {
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: all 200ms var(--ease-luxury);
}

.step-tab.is-active {
  background: var(--color-violet);
  color: var(--color-surface);
  border-color: var(--color-violet);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 4px;
}

.step-tab.is-active .step-num {
  color: var(--color-flame-gold);
}

.step-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
}

.step-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.step-panel h3 {
  font-size: 1.55rem;
  color: var(--color-violet);
  margin-bottom: 12px;
}

.step-panel p {
  color: var(--color-ink-muted);
  margin-bottom: 16px;
}

.step-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.step-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
}

.step-checklist li::before {
  content: "✓";
  color: var(--color-flame-orange);
  font-weight: 700;
  flex-shrink: 0;
}

.bank-box {
  background: var(--color-paper);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 10px;
  border-bottom: 1px solid var(--color-border);
  gap: 12px;
  font-size: 0.9rem;
}

.bank-row:last-child { border-bottom: 0; }

.copy-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.section-faq {
  padding-block: 88px;
  background: var(--color-surface);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-violet);
  cursor: pointer;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--color-flame-orange);
  flex-shrink: 0;
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.is-open .faq-body { display: block; }

/* ==========================================================================
   CONSULTATION & FOOTER
   ========================================================================== */
.section-consult {
  padding-block: 88px;
  background: linear-gradient(135deg, var(--color-obsidian) 0%, var(--color-violet) 100%);
  color: var(--color-ink-on-dark);
}

.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.consult-form {
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.consult-form h3 {
  font-size: 1.48rem;
  color: var(--color-violet);
  margin-bottom: 6px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--color-violet);
  border-color: transparent;
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

.form-feedback.is-success {
  display: block;
  background: var(--color-success-soft);
  color: var(--color-success);
}

.form-feedback.is-error {
  display: block;
  background: var(--color-error-soft);
  color: var(--color-error);
}

.site-footer {
  background: var(--color-obsidian);
  color: var(--color-ink-on-dark-muted);
  padding-block: 56px 96px;
  border-top: 1px solid var(--color-border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 36px;
  margin-bottom: 36px;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-surface);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-list a:hover { color: var(--color-flame-gold); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
}

.floating-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: flex;
  gap: 10px;
}

.dock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-violet);
  color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.dock-pill--flame {
  background: var(--gradient-flame);
  color: var(--color-obsidian);
  font-weight: 700;
  border-color: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-status-center,
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    background: var(--color-violet-deep);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.16);
    align-items: flex-start;
    gap: 16px;
  }
  .section-head,
  .rates-layout,
  .compare-grid,
  .asset-info-grid,
  .step-panel,
  .consult-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stepper-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .nav-actions .btn { display: none; }
  .trust-points,
  .calc-results,
  .stepper-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
  .orbit-viewport { height: 290px; }
  .orbit-ring { width: 240px; height: 260px; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 56px; }
  .bar-track { grid-column: 1 / -1; order: 3; }
  .floating-dock {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
  }
}

/* ==========================================================================
   SUB-HERO: PRODUCT SOLUTION & INTERACTIVE 3D INTEREST RATE POP-OUT
   ========================================================================== */
.sub-hero {
  padding-block: 84px;
  background: linear-gradient(180deg, #0E091D 0%, #190C36 100%);
  color: var(--color-ink-on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.sub-hero-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 24px 28px;
}

.sub-term-pill {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-surface);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 220ms var(--ease-luxury);
}

.sub-term-pill.is-active,
.sub-term-pill:hover {
  background: var(--gradient-flame);
  color: var(--color-obsidian);
  border-color: transparent;
  transform: translateY(-2px);
}

.rate-hero-stage {
  perspective: 1100px;
  display: flex;
  justify-content: center;
}

.rate-hero-card {
  width: 100%;
  max-width: 500px;
  padding: 40px 34px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 25% 20%, rgba(251, 176, 59, 0.22), rgba(52, 22, 112, 0.85) 60%, rgba(11, 7, 20, 0.95) 100%);
  border: 1px solid rgba(251, 176, 59, 0.4);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55), 0 0 60px rgba(247, 147, 30, 0.18);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 350ms var(--ease-luxury), box-shadow 350ms var(--ease-luxury);
  cursor: pointer;
}

.rate-hero-card:hover {
  transform: rotateX(4deg) rotateY(-4deg) scale(1.04) translateZ(20px);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.65), 0 0 85px rgba(251, 176, 59, 0.32);
}

.rate-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-flame-gold);
  margin-bottom: 10px;
  transform: translateZ(20px);
}

.rate-big-num {
  font-family: var(--font-mono);
  font-size: clamp(4.2rem, 8.5vw, 6.4rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #FBB03B 55%, #F7931E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 28px rgba(247, 147, 30, 0.35));
  transform: translateZ(50px);
  transition: transform 320ms var(--ease-luxury);
}

.rate-hero-card:hover .rate-big-num {
  transform: translateZ(72px) scale(1.06);
}

.rate-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink-on-dark-muted);
  margin-top: 8px;
  transform: translateZ(25px);
}

.rate-highlights {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  font-size: 0.82rem;
}

.rate-highlights strong {
  display: block;
  color: var(--color-flame-gold);
  font-family: var(--font-mono);
  font-size: 0.96rem;
}

/* ==========================================================================
   TIER DETAIL & RESALE RATE PANEL
   ========================================================================== */
.tier-detail-panel {
  margin-top: 18px;
  background: rgba(11, 7, 20, 0.65);
  border: 1px solid rgba(251, 176, 59, 0.35);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  color: var(--color-ink-on-dark);
}

.tier-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tier-detail-head h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-flame-gold);
}

.resale-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-block: 12px 16px;
}

.resale-table th,
.resale-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-align: left;
}

.resale-table th {
  color: var(--color-ink-on-dark-muted);
  font-weight: 500;
}

.resale-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-flame-gold);
}

/* ==========================================================================
   DYNAMIC BAR CHART RACE (2017 - 2026)
   ========================================================================== */
.race-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.race-year-badge {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-violet);
  line-height: 1;
}

.race-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.race-play-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-violet);
  color: var(--color-surface);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.race-years-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.race-year-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.race-year-btn.is-active {
  background: var(--color-violet);
  color: var(--color-surface);
  border-color: var(--color-violet);
}

.race-track-list {
  position: relative;
  height: 276px;
}

.race-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 38px;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 68px;
  gap: 12px;
  align-items: center;
  transition: transform 650ms var(--ease-luxury);
}

.race-row .bar-fill {
  transition: width 650ms var(--ease-luxury);
}

/* ==========================================================================
   STEP GUIDE ILLUSTRATIONS
   ========================================================================== */
.step-visual-wrap {
  display: grid;
  gap: 16px;
}

.step-visual-img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-paper);
  padding: 12px;
  border: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .sub-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .race-track-list {
    height: 360px;
  }
  .race-row {
    height: 52px;
    grid-template-columns: minmax(0, 1fr) 56px;
  }
  .race-row .bar-track {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* ==========================================================================
   FULL-PAGE SECTION SNAP & RIGHT-SIDE DOT NAVIGATION
   ========================================================================== */
@media (min-width: 1024px) {
  main > section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.section-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 105;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(11, 7, 20, 0.35);
  cursor: pointer;
  transition: transform 220ms var(--ease-luxury), background-color 220ms ease, border-color 220ms ease;
}

.section-dot:hover {
  transform: scale(1.3);
  border-color: var(--color-flame-gold);
}

.section-dot.is-active {
  background: var(--color-flame-gold);
  border-color: var(--color-flame-gold);
  transform: scale(1.35);
  box-shadow: 0 0 10px rgba(251, 176, 59, 0.65);
}

@media (max-width: 1023px) {
  .section-dots {
    display: none;
  }
}

/* Sub-Hero 4-USP Grid (inspired by APEC Finance App Launch Banner) */
.sub-usp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 22px 24px;
}

.sub-usp-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 200ms ease, transform 200ms var(--ease-luxury);
}

.sub-usp-card:hover {
  border-color: var(--color-flame-gold);
  transform: translateY(-2px);
}

.sub-usp-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(251, 176, 59, 0.25), rgba(247, 147, 30, 0.12));
  color: var(--color-flame-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sub-usp-card strong {
  display: block;
  font-size: 0.94rem;
  color: var(--color-surface);
  margin-bottom: 2px;
}

.sub-usp-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-ink-on-dark-muted);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .sub-usp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Panoramic Continuous App Screenshot Strip (All 4 visible; blurred -> crisp on active step) */
.app-strip-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #140A2B;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.app-strip-track {
  display: flex;
  gap: 0;
  width: 100%;
}

.app-strip-slide {
  flex: 0 0 25%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0.36;
  filter: blur(3.5px);
  transform: scale(0.98);
  transition: opacity 480ms var(--ease-luxury),
              filter 480ms var(--ease-luxury),
              transform 480ms var(--ease-luxury);
}

.app-strip-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.app-strip-slide.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  z-index: 2;
  box-shadow: 0 0 0 2px var(--color-flame-gold) inset;
}

@media (max-width: 560px) {
  .app-strip-track {
    width: 100%;
  }
}
