/* ==========================================================================
   EXPENDIA STYLE SYSTEM (Vanilla CSS)
   ========================================================================== */

@font-face {
  font-family: 'Bisdak';
  src: url('assets/bisdak/Bisdak.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Variables & Theme Tokens --- */
:root {
  /* Color Palette - HSL based for harmonious variations */
  --bg-primary: #090E1A;
  --bg-surface: #111827;
  --bg-card: #1A2539;
  --bg-elevated: #243349;
  --border-divider: #2A3A52;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Brand Accent Gradients & Solid Colors */
  --cyan: #0891B2;
  --cyan-dark: #0E7490;
  --cyan-light: #06B6D4;
  --indigo: #6366F1;
  --indigo-dark: #4F46E5;
  --indigo-light: #818CF8;
  --accent-purple: #A855F7;
  --accent-purple-light: #C084FC;

  /* Status Colors */
  --color-income: #0DB87A;
  --color-expense: #EF3A56;
  --color-transfer: #3B82F6;
  --color-warn: #F59E0B;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  --grad-accent: linear-gradient(135deg, var(--indigo), var(--accent-purple));
  --grad-hero: linear-gradient(135deg, var(--cyan-light) 0%, var(--indigo-light) 50%, var(--accent-purple-light) 100%);
  --grad-dark-overlay: linear-gradient(180deg, rgba(9, 14, 26, 0) 0%, rgba(9, 14, 26, 0.8) 100%);

  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base & Reset Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
}

/* --- Accessibility & Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan-light);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Global Layout Utilities --- */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* --- Typography System --- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-cyan {
  color: var(--cyan-light);
}

.text-indigo {
  color: var(--indigo-light);
}

.text-purple {
  color: var(--accent-purple-light);
}

/* --- Glow Blobs Background --- */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.15;
  animation: floatBlob 15s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes floatBlob {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(40px, -30px) scale(1.1);
  }
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.1;
    transform: scale(0.8);
  }

  to {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

/* --- Buttons & Action Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-light), var(--indigo-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--indigo), var(--accent-purple));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--indigo-light), var(--accent-purple-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary span {
  position: relative;
  z-index: 2;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-divider);
}

.btn-ghost:hover {
  border-color: var(--cyan-light);
  color: var(--cyan-light);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

/* --- Download Coming Soon Modal --- */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.download-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(18px);
}

.download-modal-card {
  width: min(100%, 27rem);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.2), transparent 38%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.18), transparent 34%),
    rgba(17, 24, 39, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 50px rgba(8, 145, 178, 0.18);
  padding: 2rem;
  position: relative;
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: var(--transition-smooth);
}

.download-modal.open .download-modal-card {
  transform: translateY(0) scale(1);
}

.download-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-divider);
  border-radius: 50%;
  background: rgba(9, 14, 26, 0.72);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.download-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--cyan-light);
}

.download-modal-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.28), rgba(99, 102, 241, 0.28));
  color: var(--cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-modal-kicker {
  color: var(--cyan-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.download-modal-card h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.download-modal-card p:not(.download-modal-kicker) {
  color: var(--text-secondary);
  margin: 0 auto 1.5rem;
  max-width: 20rem;
}

.download-modal-action {
  width: 100%;
}

/* --- Glassmorphism --- */
.glass {
  background: rgba(26, 37, 57, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(9, 14, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Floating/Hover Borders --- */
.glow-border-cyan {
  border: 1px solid rgba(8, 145, 178, 0.3);
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.08);
}

.glow-border-cyan:hover {
  border-color: rgba(8, 145, 178, 0.5);
  box-shadow: 0 0 30px rgba(8, 145, 178, 0.15);
}

.glow-border-indigo {
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.08);
}

.glow-border-indigo:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.glow-border-purple {
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.08);
}

.glow-border-purple:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: var(--transition-smooth);
}

nav.scrolled {
  background: rgba(9, 14, 26, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: #ffffff;
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -0.35rem;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-letter {
  font-family: 'Bisdak', var(--font-family);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--cyan-light);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nav-links {
  display: none;
}

.nav-cta {
  display: none;
}

.hamburger {
  display: flex;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-fast);
  }

  .nav-link:hover {
    color: var(--cyan-light);
  }

  .nav-cta {
    display: block;
  }

  .hamburger {
    display: none;
  }
}

/* --- Mobile Menu Overlay --- */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 26, 0.98);
  backdrop-filter: blur(25px);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#mobile-menu.open {
  display: flex;
}

.menu-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-link {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--cyan-light);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* --- Section Labels & Badges --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.2);
  color: var(--cyan-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.ticker-line {
  width: 1.5rem;
  height: 3px;
  background: var(--grad-hero);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 2rem auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: 0.25rem;
}

.divider-y {
  width: 1px;
  background-color: var(--border-divider);
  height: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
    gap: 4rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-content h1 {
    font-size: 3.75rem;
  }

  .hero-content p {
    margin-left: 0;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* --- CSS Phone Mockup Component --- */
.phone-frame {
  width: 250px;
  height: 490px;
  border-radius: 40px;
  background: #090E1A;
  border: 3px solid var(--border-divider);
  box-shadow:
    0 0 0 1px rgba(8, 145, 178, 0.15),
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(8, 145, 178, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 12px;
  background: #111827;
  border-radius: 6px;
  z-index: 10;
}

.phone-screen {
  padding: 2.25rem 1rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #090e1a;
}

.phone-screenshot {
  width: calc(100% + 2rem);
  height: calc(100% + 3.25rem);
  margin: -2.25rem -1rem -1rem;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.status-battery {
  width: 1rem;
  height: 0.5rem;
  border: 1px solid var(--text-muted);
  border-radius: 2px;
  position: relative;
  padding: 1px;
}

.status-battery::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  right: 4px;
  background-color: var(--color-income);
  border-radius: 1px;
}

.phone-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.phone-subtitle {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.phone-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.phone-change {
  font-size: 0.65rem;
  color: var(--color-income);
  font-weight: 700;
  margin-top: 0.25rem;
}

.ring-chart-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.ring-chart svg {
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: var(--bg-elevated);
}

.ring-fill {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.phone-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-name {
  color: var(--text-secondary);
  flex: 1;
}

.legend-val {
  font-weight: 700;
}

/* --- Floating animations --- */
.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.15);
  }

  50% {
    box-shadow: 0 0 35px rgba(8, 145, 178, 0.3);
  }
}

/* Offset Small Mockup */
.phone-offset {
  position: absolute;
  right: -3rem;
  top: 6rem;
  opacity: 0.6;
  transform: scale(0.75) rotate(6deg);
  z-index: -1;
  display: none;
}

@media (min-width: 480px) {
  .phone-offset {
    display: block;
  }
}

.mini-transactions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mini-tx-item {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  border: 1px solid var(--border-divider);
}

.mini-tx-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mini-tx-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.5rem;
}

.tx-up {
  background: rgba(13, 184, 122, 0.15);
  color: var(--color-income);
}

.tx-down {
  background: rgba(239, 58, 86, 0.15);
  color: var(--color-expense);
}

.tx-arr {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-transfer);
}

/* --- Narrative / User Story Section --- */
.narrative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.narrative-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

@media (min-width: 1024px) {
  .narrative-grid {
    grid-template-columns: 1fr 1fr;
  }

  .narrative-grid.reverse {
    direction: rtl;
  }

  .narrative-grid.reverse .narrative-text {
    direction: ltr;
  }
}

/* User Story Cards */
.story-card-wrapper {
  width: 100%;
  max-width: 28rem;
  perspective: 1000px;
}

.story-card {
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.story-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.story-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.story-user-details h3 {
  font-size: 1.15rem;
}

.story-user-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.story-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--cyan-light);
  padding-left: 1rem;
  margin: 0.5rem 0;
}

.story-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-divider);
}

.breakdown-row.danger {
  color: var(--color-expense);
  font-weight: 700;
}

.breakdown-row.warning {
  color: var(--color-warn);
}

.breakdown-row.success {
  color: var(--color-income);
  font-weight: 700;
  border-bottom: none;
}

/* --- Steps Section --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  border-radius: 1.5rem;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.step-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- Simulator Section --- */
.sim-container {
  border-radius: 2rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .sim-container {
    padding: 3rem;
  }
}

.sim-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .sim-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Toggle Pill */
.toggle-pill-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toggle-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.toggle-pill {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-divider);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.toggle-opt {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.toggle-opt.active {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.sim-assets-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sim-assets-value {
  font-size: 2.25rem;
  font-weight: 900;
}

/* Range Slider */
.slider-container {
  margin-bottom: 3rem;
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.sim-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  outline: none;
  border: none;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-light), var(--indigo-light));
  cursor: pointer;
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.5);
  transition: transform 0.15s ease;
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sim-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-light), var(--indigo-light));
  cursor: pointer;
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.5);
  transition: transform 0.15s ease;
}

.sim-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Progress Bars */
.sim-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-bar-item {
  display: flex;
  flex-direction: column;
}

.sim-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sim-bar-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sim-bar-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.sim-bar-priority-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.sim-bar-values {
  font-size: 0.875rem;
}

.sim-bar-val {
  font-weight: 700;
}

.sim-bar-target {
  color: var(--text-muted);
}

.prog-track {
  height: 8px;
  background-color: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sim-bar-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sim-unallocated {
  padding-top: 1rem;
  border-top: 1px solid var(--border-divider);
}

.unallocated-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
}

.unallocated-label-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.unallocated-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.unallocated-label {
  color: var(--text-secondary);
}

.unallocated-value {
  color: var(--text-primary);
}

.sim-info-msg {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Simulator Output Summary */
.sim-summary {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .sim-summary {
    flex-direction: row;
  }
}

.sim-donut-wrapper {
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.sim-legend-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .sim-legend-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sim-legend-card {
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-legend-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sim-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sim-legend-right {
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- Bento Grid Section --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.bento-card {
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-5px);
}

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Bento Cell Spans */
.span-12 {
  grid-column: span 12;
}

.span-7 {
  grid-column: span 12;
}

.span-5 {
  grid-column: span 12;
}

.span-4 {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .span-7 {
    grid-column: span 7;
  }

  .span-5 {
    grid-column: span 5;
  }

  .span-4 {
    grid-column: span 4;
  }
}

/* Specific bento item elements */
.bento-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.bento-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bento-list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
}

.bento-list-label {
  flex: 1;
  font-weight: 600;
}

.bento-list-bar {
  width: 4rem;
}

.bento-list-val {
  font-weight: 700;
}

/* Fake search box */
.fake-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-divider);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.fake-search svg {
  flex-shrink: 0;
}

/* Chips container */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-divider);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip:hover {
  border-color: rgba(8, 145, 178, 0.4);
  color: var(--cyan-light);
}

.chip.active {
  background: rgba(8, 145, 178, 0.15);
  border-color: var(--cyan-light);
  color: var(--cyan-light);
}

/* Smart Grid accounts */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .account-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.account-mini-card {
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-divider);
  text-align: center;
}

.acct-mini-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.acct-mini-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.col-span-2 {
  grid-column: span 2;
}

/* Offline bullet check */
.bullet-check-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-income);
  margin-top: 1rem;
}

/* Action row for JSON export */
.json-action-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.json-badge {
  flex: 1;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-divider);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.json-badge:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Mobile Showcase Section --- */
.showcase-wrapper {
  margin-top: 3rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  justify-items: center;
}

@media (min-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 20rem;
}

/* Premium Device Frame Mockup */
.device-mockup {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  background: #000000;
  border-radius: 2.25rem;
  border: 4px solid var(--border-divider);
  box-shadow:
    0 0 0 1px rgba(8, 145, 178, 0.2),
    0 30px 60px -15px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}

.device-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-caption {
  text-align: center;
}

.showcase-caption h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.showcase-caption p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- Themes Preview Section --- */
.theme-selector-group {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

/* Preview Card Component */
.theme-preview-card {
  border-radius: 2rem;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.theme-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.theme-preview-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.theme-preview-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.theme-preview-val {
  font-size: 2rem;
  font-weight: 900;
}

.theme-preview-change {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-income);
  margin-top: 0.25rem;
}

.theme-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .theme-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.theme-mini-card {
  border-radius: 1rem;
  padding: 1rem;
  transition: var(--transition-smooth);
}

.theme-mini-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.theme-mini-val {
  font-size: 1.15rem;
  font-weight: 800;
}

.theme-mini-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.theme-preview-tx {
  margin-top: 1.5rem;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.theme-tx-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.theme-tx-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theme-tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-tx-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-tx-icon-circle {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.theme-tx-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.theme-tx-date {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.theme-tx-amt {
  font-size: 0.875rem;
  font-weight: 700;
}

/* Light Mode Preview Overrides */
.theme-preview-card.mode-light {
  background-color: #F4F7FA;
  color: #1E293B;
  border: 1px solid #D1DAE8;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.theme-preview-card.mode-light .theme-preview-title {
  color: #1E293B;
}

.theme-preview-card.mode-light .theme-mini-card {
  background-color: #FFFFFF;
  border: 1px solid #D1DAE8;
}

.theme-preview-card.mode-light .theme-preview-tx {
  background-color: #FFFFFF;
  border: 1px solid #D1DAE8;
}

.theme-preview-card.mode-light .theme-tx-name {
  color: #1E293B;
}

/* Dark Mode Preview Overrides */
.theme-preview-card.mode-dark {
  background-color: #090E1A;
  color: #F8FAFC;
  border: 1px solid var(--border-divider);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.theme-preview-card.mode-dark .theme-mini-card {
  background-color: #1A2539;
  border: 1px solid var(--border-divider);
}

.theme-preview-card.mode-dark .theme-preview-tx {
  background-color: #1A2539;
  border: 1px solid var(--border-divider);
}

/* --- Security Banner --- */
.security-banner {
  border-radius: 2rem;
  padding: 3rem;
  text-align: center;
}

.security-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.security-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.security-banner p {
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 2rem auto;
  font-size: 0.95rem;
}

.security-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.sec-bullet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-income);
}

/* --- Footer --- */
footer {
  background-color: #060912;
  border-top: 1px solid var(--border-divider);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-cta-block {
  text-align: center;
  margin-bottom: 4rem;
}

.footer-cta-block h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.footer-cta-block p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.footer-store-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-info-col p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--cyan-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-divider);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-income);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-divider);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-dark);
}

/* --- Policy & Legal Content --- */
.legal-section {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-divider);
  padding-bottom: 1rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-body h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: -0.5rem;
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.legal-body ul,
.legal-body ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-body li {
  font-size: 1rem;
  line-height: 1.6;
}

.legal-body strong {
  color: var(--text-primary);
}
