/* CSS Variables and Theme Design System */
:root {
    /* === Accent Colors (shared across themes) === */
    --primary: #1d4ed8;
    --primary-glow: rgba(29, 78, 216, 0.3);
    
    --mint: #00f5a0;
    --mint-glow: rgba(0, 245, 160, 0.3);
    --mint-dark: #059669;
    
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);
    
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.3);
    --gold-bright: #ffd700;
    
    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.3);

    /* === Dark Theme (default) === */
    --bg-dark: #030712;
    --bg-card: rgba(10, 17, 32, 0.65);
    --bg-card-solid: #0a1120;
    --bg-surface: rgba(255, 255, 255, 0.02);
    --bg-surface-hover: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --header-bg: rgba(3, 7, 18, 0.7);
    --header-bg-scrolled: rgba(3, 7, 18, 0.92);
    --footer-bg: #0a1128;
    --phone-body: #090d16;
    --phone-bezel: #1e293b;
    --panel-glass: rgba(10, 17, 32, 0.6);
    --panel-glass-border: rgba(255, 255, 255, 0.06);
    --scrollbar-thumb: rgba(255, 255, 255, 0.1);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.2);
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-phone: 0 35px 70px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 245, 160, 0.1);
    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    --btn-secondary-hover: rgba(255, 255, 255, 0.1);
    --grid-line: rgba(255, 255, 255, 0.015);
}

/* === Light Theme Override === */
html.light-mode {
    --bg-dark: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-solid: #ffffff;
    --bg-surface: rgba(0, 0, 0, 0.03);
    --bg-surface-hover: rgba(0, 0, 0, 0.06);
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-hover: rgba(0, 0, 0, 0.15);
    --border-subtle: rgba(0, 0, 0, 0.06);
    
    --text-white: #0f172a;
    --text-muted: #475569;
    --text-dark: #0f172a;
    
    --header-bg: rgba(241, 245, 249, 0.8);
    --header-bg-scrolled: rgba(255, 255, 255, 0.95);
    --footer-bg: #e2e8f0;
    --phone-body: #1e293b;
    --phone-bezel: #334155;
    --panel-glass: rgba(255, 255, 255, 0.7);
    --panel-glass-border: rgba(0, 0, 0, 0.08);
    --scrollbar-thumb: rgba(0, 0, 0, 0.12);
    --scrollbar-thumb-hover: rgba(0, 0, 0, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
    --shadow-phone: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --btn-secondary-bg: rgba(0, 0, 0, 0.04);
    --btn-secondary-hover: rgba(0, 0, 0, 0.08);
    --grid-line: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Header Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}

header.scrolled {
    background: var(--header-bg-scrolled);
    padding: 0.85rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: transparent;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--mint-glow));
}

.logo span {
    background: linear-gradient(135deg, #fff 40%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--text-white);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mint);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--mint-glow);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.header-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: var(--mint);
    color: var(--text-dark);
    border-color: var(--mint);
    box-shadow: 0 0 15px var(--mint-glow);
}

/* Glassmorphism utility card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
}

/* Scrollytelling Sections structure */
.scrollytelling-wrapper {
    position: relative;
    width: 100%;
    height: 750vh; /* Increased scroll depth for smoother, gentler transitions */
}

.scrolly-viewport {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background overlay transition */
.scrolly-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a1128 0%, #030712 100%);
    z-index: 1;
    transition: background 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.scrolly-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: 2;
    pointer-events: none;
}

.scrolly-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, rgba(3, 7, 18, 0) 70%);
    filter: blur(80px);
    z-index: 3;
    pointer-events: none;
    transition: all 1.5s ease;
}

.glow-left {
    top: -10%;
    left: -10%;
}

.glow-right {
    bottom: -10%;
    right: -10%;
}

/* Visual Arena (Phone and Graphics) */
.visual-arena {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.phone-wrapper {
    position: absolute;
    z-index: 10;
    transform-style: preserve-3d;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

/* CSS Smartphone Mockup */
.phone-mockup {
    width: 290px;
    height: 590px;
    background: var(--phone-body);
    border: 12px solid var(--phone-bezel);
    border-radius: 44px;
    position: relative;
    box-shadow: var(--shadow-phone);
    transition: box-shadow 0.5s ease;
}

/* Glow border on phone */
.phone-mockup::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 46px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 245, 160, 0.25), rgba(6, 182, 212, 0.15), rgba(255, 255, 255, 0.05));
    z-index: -1;
}

/* Screen reflection overlay */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 245, 160, 0.02) 80%);
    pointer-events: none;
    z-index: 15;
    border-radius: 32px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.phone-screen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 5;
}

.phone-screen img.active {
    opacity: 1;
    transform: scale(1);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 26px;
    background: var(--phone-bezel);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 16;
}

.phone-notch::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--phone-body);
    border-radius: 99px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.phone-notch::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--phone-body);
    border-radius: 50%;
    top: 4px;
    right: 35px;
}

/* Floating Currency Symbols (Hero) */
.floating-coins-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.floating-coin {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-surface);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.coin-1 {
    top: 25%;
    left: 28%;
    color: var(--mint);
    border-color: rgba(0, 245, 160, 0.2);
    box-shadow: 0 0 15px rgba(0, 245, 160, 0.15);
    animation: float-slow-1 6s infinite ease-in-out;
}
.coin-2 {
    top: 35%;
    right: 25%;
    color: var(--cyan);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
    animation: float-slow-2 8s infinite ease-in-out 1s;
}
.coin-3 {
    bottom: 30%;
    left: 22%;
    color: var(--gold-bright);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
    animation: float-slow-1 7s infinite ease-in-out 0.5s;
}
.coin-4 {
    bottom: 25%;
    right: 28%;
    color: var(--mint);
    border-color: rgba(0, 245, 160, 0.2);
    animation: float-slow-2 5s infinite ease-in-out 1.5s;
}
.coin-5 {
    top: 15%;
    left: 45%;
    font-size: 1rem;
    color: var(--mint);
    animation: float-slow-1 9s infinite ease-in-out;
}
.coin-6 {
    bottom: 12%;
    right: 48%;
    font-size: 1.1rem;
    color: var(--cyan);
    animation: float-slow-2 10s infinite ease-in-out;
}

@keyframes float-slow-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}

@keyframes float-slow-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(18px) rotate(-8deg); }
}

/* Graphics Overlays container */
.graphics-overlay-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 12;
}

/* Feature 1 Graphic: Real-time Balance & Analytics */
.graphic-feature-1 {
    position: absolute;
    left: 28vw; /* Desktop: Sprouted in the middle-left, next to the phone on the left side */
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    opacity: 0;
    pointer-events: auto;
    z-index: 12;
}

.icon-mint {
    color: var(--mint);
    filter: drop-shadow(0 0 4px var(--mint-glow));
}

.icon-gold {
    color: var(--gold-bright);
    filter: drop-shadow(0 0 4px var(--gold-glow));
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-title {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.chart-flex {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pie-container {
    position: relative;
    width: 110px;
    height: 110px;
}

.circular-chart {
    width: 100%;
    height: 100%;
}

.circle {
    transition: stroke-dashoffset 1s ease-out;
}

.pie-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pie-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.pie-percent {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-white);
}

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

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.mint { background: var(--mint); box-shadow: 0 0 6px var(--mint-glow); }
.dot.cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan-glow); }
.dot.gray { background: var(--text-muted); }

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

.balance-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.balance-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

.trend-badge.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.sparkline-container {
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.sparkline-svg {
    width: 100%;
    height: 100%;
}

.sparkline-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

/* Feature 2 Graphic: High-Yield Deposits */
.graphic-feature-2 {
    position: absolute;
    right: 28vw; /* Desktop: Sprouted in the middle-right, next to the phone on the right side */
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 330px;
    min-height: 380px;
    opacity: 0;
    pointer-events: auto;
    z-index: 12;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style;
}

.vault-tree-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.vault-wheel-wrapper, .money-tree-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vault-label, .tree-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.vault-wheel {
    transform-origin: center;
    /* Removed CSS transition to avoid GSAP frame conflict */
}

.tree-stem {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.tree-leaf {
    transform: scale(0);
    transform-origin: center;
}

.slider-display-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.25rem;
    min-height: 165px;
    box-sizing: border-box;
}

.slider-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.deposit-month-label {
    min-width: 68px;
    text-align: right;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

.highlight {
    color: var(--gold-bright);
    font-weight: 700;
}

.deposit-slider-container {
    position: relative;
    padding: 0.5rem 0 1.25rem;
}

.deposit-slider-track {
    width: 100%;
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    position: relative;
}

.deposit-slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 8%; /* start value */
    background: linear-gradient(90deg, var(--mint), var(--gold));
    border-radius: 3px;
    /* Removed CSS transition to avoid conflict with GSAP scrub */
}

.deposit-slider-thumb {
    position: absolute;
    top: 50%;
    left: 8%; /* mapping with slider-thumb left in JS */
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-glow);
    cursor: pointer;
    /* Removed CSS transition to avoid conflict with GSAP scrub */
}

.thumb-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gold);
    border-radius: 50%;
    z-index: -1;
    animation: thumb-pulse-key 2s infinite;
}

@keyframes thumb-pulse-key {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
}

.slider-ticks span {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.yield-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.75rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
}

.yield-stat-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.stat-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
}

.rate-counter, .yield-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.highlight-green {
    color: var(--mint);
}

/* Feature 3 Graphic: Smart Transaction History */
.graphic-feature-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 12;
}

.tx-floating-card {
    position: absolute;
    width: 290px;
    padding: 0.85rem 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    opacity: 0;
    pointer-events: auto;
    z-index: 14;
    transition: box-shadow 0.3s ease;
}

.tx-card-1 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85); /* Animated in JS relative to the phone */
}

.tx-card-2 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
}

.tx-card-3 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
}

.tx-icon-bg {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tx-icon-bg.expense {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.tx-icon-bg.income {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.tx-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tx-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

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

.tx-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.tx-value.negative { color: #f87171; }
.tx-value.positive { color: #34d399; }

.tag-sorting {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.bg-red-glow { background: rgba(239, 68, 68, 0.9); box-shadow: 0 0 10px var(--red-glow); }
.bg-green-glow { background: rgba(16, 185, 129, 0.9); box-shadow: 0 0 10px var(--mint-glow); }
.bg-purple-glow { background: rgba(139, 92, 246, 0.9); box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }

.folders-container {
    position: absolute;
    width: 330px; /* Kept narrow on desktop to stay on the phone's side */
    left: 28vw; /* Placed exactly next to the left-docked phone, away from right-side text panel */
    bottom: 15%;
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(30px);
    z-index: 14;
}

.sorting-folder {
    flex: 1;
    padding: 1rem 1.25rem !important;
    text-align: center;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.folder-icon.expense-glow {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.folder-icon.income-glow {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.folder-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
}

.folder-details {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Scroll Content Steps */
.scroll-triggers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: none;
}

.scroll-trigger {
    width: 100%;
    height: 150vh; /* Match the timeline spacing */
}

/* Glassmorphic panels overlay in viewport */
.panels-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 15;
    pointer-events: none;
}

.text-panel {
    position: absolute;
    width: 38%;
    max-width: 520px;
    top: 22%;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    background: var(--panel-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-glass-border);
    border-radius: 24px;
    padding: 2rem 2.25rem;
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* Alignment rules for text panels */
.panel-left {
    left: 8%;
}

.panel-right {
    right: 8%;
}

.panel-center {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 50%;
    max-width: 700px;
}

/* Panel Content Styling */
.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.panel-badge.gold {
    color: var(--gold-bright);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    position: relative;
}

.panel-badge.gold .badge-pulse {
    background: var(--gold);
}

.badge-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: thumb-pulse-key 2s infinite;
}

.text-panel h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 50%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-panel h1 span.mint-text {
    background: linear-gradient(135deg, var(--mint) 20%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-panel h1 span.gold-text {
    background: linear-gradient(135deg, var(--gold-bright) 20%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-panel p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.panel-btn-group {
    display: flex;
    gap: 1.25rem;
}

.panel-btn-group.center {
    justify-content: center;
}

.btn-primary {
    padding: 0.85rem 2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mint) 0%, #00d68f 100%);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 25px var(--mint-glow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--mint-glow);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-secondary {
    padding: 0.85rem 2rem;
    border-radius: 14px;
    background: var(--btn-secondary-bg);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.97);
}

/* Scroll indicator on landing screen */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 15;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--mint);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.8s infinite;
}

@keyframes scroll-wheel-anim {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

/* Feature 5: CTA & Download Section layout overlay */
.panel-cta {
    position: absolute;
    left: 8%;
    width: 38%;
    top: 22%;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    background: var(--panel-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-glass-border);
    border-radius: 24px;
    padding: 2rem 2.25rem;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.cta-store-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-store-badge img {
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-store-badge:hover img {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.radar-pulse-bg {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 245, 160, 0.06) 0%, rgba(3, 7, 18, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.radar-pulse-ring {
    position: absolute;
    border: 1px solid rgba(0, 245, 160, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 8;
}

.phone-wrapper.active-radar .radar-pulse-bg {
    opacity: 1;
}

.phone-wrapper.active-radar .radar-pulse-ring-1 {
    animation: radar-ripple 3s infinite linear;
}

.phone-wrapper.active-radar .radar-pulse-ring-2 {
    animation: radar-ripple 3s infinite linear 1.5s;
}

@keyframes radar-ripple {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Footer style */
footer {
    position: relative;
    width: 100%;
    padding: 3.5rem 5% 2.5rem;
    border-top: 1px solid var(--border-glass);
    z-index: 30;
    background: var(--footer-bg);
    transition: background 0.4s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 420px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.footer-logo img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--mint-glow));
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo-text .brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-white) 40%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo-text .brand-version {
    font-size: 0.725rem;
    color: #60a5fa;
    font-weight: 500;
    margin-top: 0.15rem;
}

.footer-description {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-legal-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1.3;
    max-width: 680px;
}

.footer-legal-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.footer-legal-card:hover {
    border-color: rgba(0, 245, 160, 0.3);
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.footer-legal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 245, 160, 0.08);
    color: var(--mint);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-legal-icon i {
    width: 20px;
    height: 20px;
}

.footer-legal-content {
    display: flex;
    flex-direction: column;
}

.footer-legal-content p {
    font-size: 0.865rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

.footer-legal-content a {
    color: var(--mint);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-legal-content a:hover {
    color: #00d087;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 2.5rem 0 1.75rem;
    width: 100%;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-bottom-row p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-main-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.25rem;
    }
    
    .footer-brand-col {
        align-items: center;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ---------------------------------------------------- */
/* LIGHT MODE COMPONENT OVERRIDES                       */
/* ---------------------------------------------------- */

html.light-mode .text-panel h1 {
    background: linear-gradient(135deg, #0f172a 50%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.light-mode .logo span {
    background: linear-gradient(135deg, #0f172a 40%, var(--mint-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.light-mode .footer-logo-text .brand-name {
    background: linear-gradient(135deg, #0f172a 40%, var(--mint-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.light-mode .scrolly-bg {
    background: radial-gradient(circle at center, #e2e8f0 0%, #f1f5f9 100%) !important;
}

html.light-mode .scrolly-glow {
    opacity: 0.5;
}

html.light-mode .scrolly-grid {
    opacity: 0.3;
}

html.light-mode .phone-mockup::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 245, 160, 0.2), rgba(6, 182, 212, 0.1), rgba(0, 0, 0, 0.04));
}

html.light-mode .phone-mockup::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
}

html.light-mode .floating-coin {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html.light-mode .balance-amount,
html.light-mode .pie-percent,
html.light-mode .stat-val,
html.light-mode .tx-name,
html.light-mode .folder-title {
    color: var(--text-white);
}

html.light-mode .vault-wheel circle[fill="#0d1527"] {
    fill: var(--phone-body);
}

html.light-mode .header-btn:hover {
    color: #0f172a;
}

html.light-mode .radar-pulse-bg {
    opacity: 0.3;
}

/* ---------------------------------------------------- */
/* THEME TOGGLE BUTTON                                  */
/* ---------------------------------------------------- */

.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--border-glass-hover);
    transform: scale(1.08);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Dark mode: show moon, hide sun */
.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light mode: show sun, hide moon */
html.light-mode .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

html.light-mode .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

html.light-mode .theme-toggle {
    color: #f59e0b;
}

/* ---------------------------------------------------- */
/* RESPONSIVE DESIGN & MOBILE LAYOUT OVERRIDES          */
/* ---------------------------------------------------- */

@media (max-width: 1023px) {
    /* Navbar tweaks */
    header {
        padding: 1rem 5%;
    }
    
    nav ul {
        display: none; /* Hide standard nav on mobile for clean screen spacing */
    }

    .scrollytelling-wrapper {
        height: 800vh; /* Added height for slower scrolls on touch/mobile devices */
    }

    .scrolly-viewport {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
    }

    /* Hide decorative sprout graphics on mobile to prevent overlapping */
    .graphic-feature-1,
    .graphic-feature-2,
    .tx-floating-card,
    .folders-container {
        display: none !important;
    }

    .text-panel,
    .panel-cta {
        width: 92% !important;
        max-width: 440px !important;
        position: absolute;
        top: auto;
        bottom: 5vh !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 1.25rem !important;
        border-radius: 18px;
        text-align: center !important;
        background: var(--panel-glass) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid var(--border-glass) !important;
    }

    .panel-badge {
        display: none !important; /* Hide badge on mobile to save vertical space */
    }

    .text-panel h1,
    .panel-cta h1 {
        font-size: 1.55rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }

    .text-panel p,
    .panel-cta p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }

    .panel-btn-group {
        justify-content: center;
        gap: 0.75rem !important;
    }

    .btn-primary, .btn-secondary {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }

    .visual-arena {
        top: 0;
        height: 52vh;
    }

    .phone-wrapper {
        top: 13vh !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .phone-mockup {
        width: 155px !important;
        height: 310px !important;
        border-width: 6px !important;
        border-radius: 22px !important;
    }

    .phone-screen {
        border-radius: 16px !important;
    }

    .phone-notch {
        width: 70px !important;
        height: 14px !important;
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
    }

    .phone-notch::after {
        width: 20px !important;
        height: 2px !important;
        top: 2px !important;
    }

    .phone-notch::before {
        display: none;
    }

    .cta-store-badges {
        justify-content: center;
        gap: 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }

    .cta-store-badge img {
        height: 36px !important;
    }

    footer {
        padding: 2.5rem 5% 1.5rem;
    }

    .footer-main-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand-col {
        align-items: center;
    }

    .footer-legal-col {
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .footer-legal-card {
        width: 100%;
        text-align: left;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-bottom-row p {
        font-size: 0.775rem;
    }

    .floating-coin {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .coin-1 { left: 15%; top: 22%; }
    .coin-2 { right: 15%; top: 28%; }
    .coin-3 { left: 10%; bottom: 42%; }
    .coin-4 { right: 10%; bottom: 38%; }
    .coin-5 { left: 35%; top: 12%; }
    .coin-6 { right: 35%; bottom: 46%; }
}

@media (max-width: 480px) {
    .text-panel h1 {
        font-size: 1.85rem !important;
    }

    .text-panel p {
        font-size: 0.85rem !important;
    }

    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.3rem !important;
        font-size: 0.85rem !important;
    }
}

/* ==================================================== */
/* NEW UI/UX ENHANCEMENTS: Trust Badges, Interactive UI, FAQ, QR, Back to top */
/* ==================================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--border-glass-hover);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem 5%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
}

.mobile-nav-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.mobile-nav-overlay a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-overlay a:last-child {
    border-bottom: none;
}

@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Hero Trust & Security Pill Ribbon */
.hero-trust-ribbon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    transition: all 0.3s ease;
}

.trust-badge-pill i {
    width: 14px;
    height: 14px;
    color: var(--mint);
}

.trust-badge-pill:hover {
    color: var(--text-white);
    border-color: rgba(0, 245, 160, 0.3);
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
}

/* Interactive Tenor Selector Buttons in Feature 2 */
.tenor-select-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.tenor-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.4rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.tenor-btn:hover {
    color: var(--text-white);
    border-color: var(--border-glass-hover);
    background: var(--bg-surface-hover);
}

.tenor-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Interactive Transaction Filter Tabs in Feature 3 */
.tx-filter-bar {
    position: absolute;
    top: -48px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    pointer-events: auto;
    z-index: 15;
}

.tx-filter-btn {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 99px;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tx-filter-btn:hover {
    color: var(--text-white);
    border-color: var(--border-glass-hover);
}

.tx-filter-btn.active {
    background: var(--mint);
    color: var(--text-dark);
    border-color: var(--mint);
    box-shadow: 0 0 12px var(--mint-glow);
}

/* QR Code Download Popover Card in CTA Panel */
.qr-code-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.qr-code-box {
    width: 76px;
    height: 76px;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.qr-code-box svg {
    width: 100%;
    height: 100%;
}

.qr-code-info {
    display: flex;
    flex-direction: column;
}

.qr-code-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.qr-code-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* FAQ Accordion Section (Integrated inside document stream) */
.faq-section {
    position: relative;
    width: 100%;
    padding: 6rem 5% 4rem;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-glass);
    z-index: 30;
}

.faq-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

.faq-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-white) 40%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: var(--border-glass-hover);
}

.faq-question {
    width: 100%;
    padding: 1.35rem 1.75rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s ease, background-color 0.35s ease;
    color: var(--mint);
}

.faq-card.active .faq-icon {
    transform: rotate(180deg);
    background: var(--mint);
    color: var(--text-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 1.75rem;
}

.faq-card.active .faq-answer {
    max-height: 500px;
    padding: 0 1.75rem 1.5rem;
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 90;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--mint);
    color: var(--text-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 20px var(--mint-glow);
}

/* Accessible focus visible outlines */
/* Accessible focus visible outlines */
:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

/* ==========================================================================
   15-Year Senior Frontend UI/UX Enhancements & New Sections
   ========================================================================== */

/* Global Lucide SVG Icon Normalization */
svg.lucide,
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.metric-icon svg,
.metric-icon [data-lucide] {
    width: 20px !important;
    height: 20px !important;
}

.feature-icon-wrapper svg,
.feature-icon-wrapper [data-lucide] {
    width: 28px !important;
    height: 28px !important;
}

.security-icon svg,
.security-icon [data-lucide] {
    width: 26px !important;
    height: 26px !important;
}

.feature-tag svg,
.feature-tag [data-lucide],
.verified-badge svg,
.verified-badge [data-lucide] {
    width: 14px !important;
    height: 14px !important;
}

/* Shimmer Button Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.75s ease;
}

.btn-primary:hover::before {
    left: 140%;
}

/* Trust Metric Pills Bar */
.trust-metrics-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    padding: 1.25rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(0, 245, 160, 0.12);
    border: 1px solid rgba(0, 245, 160, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    flex-shrink: 0;
}

.metric-text {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-divider {
    width: 1px;
    height: 36px;
    background: var(--border-glass);
}

/* Features Grid Section */
.features-grid-section {
    position: relative;
    width: 100%;
    padding: 5rem 5% 5rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-glass);
    z-index: 30;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    background: rgba(0, 245, 160, 0.08);
    border: 1px solid rgba(0, 245, 160, 0.2);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 245, 160, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 160, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 245, 160, 0.15);
}

.feature-glass-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(0, 245, 160, 0.1);
    border: 1px solid rgba(0, 245, 160, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.feature-glass-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(3deg);
}

.feature-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.feature-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mint);
}

/* Security Trust Section */
.security-section {
    position: relative;
    width: 100%;
    padding: 5rem 5% 5rem;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-glass);
    z-index: 30;
}

.security-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.security-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.35s ease;
}

.security-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.security-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    flex-shrink: 0;
}

.security-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.4rem;
}

.security-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    width: 100%;
    padding: 5rem 5% 5rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-glass);
    z-index: 30;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s ease;
}

.testimonial-card:hover {
    border-color: rgba(0, 245, 160, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.testimonial-stars {
    display: flex;
    gap: 0.3rem;
    color: var(--gold-bright);
    margin-bottom: 1.25rem;
}

.testimonial-quote {
    font-size: 0.98rem;
    color: var(--text-white);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 1.75rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mint) 0%, var(--cyan) 100%);
    color: #0f172a;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 245, 160, 0.25);
    flex-shrink: 0;
}

.author-details h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

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

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: var(--mint);
    margin-top: 0.2rem;
    font-weight: 600;
}

/* ==========================================================================
   Light Mode Specific Overrides (High-Contrast for Crisp Rendering)
   ========================================================================== */
html.light-mode .trust-metrics-bar,
html.light-mode .feature-glass-card,
html.light-mode .security-card,
html.light-mode .testimonial-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

html.light-mode .section-title {
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

html.light-mode .section-subtitle {
    color: #475569 !important;
}

html.light-mode .section-badge {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #059669 !important;
}

html.light-mode .metric-icon,
html.light-mode .feature-icon-wrapper {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #059669 !important;
}

html.light-mode .metric-value,
html.light-mode .feature-card-title,
html.light-mode .security-info h4,
html.light-mode .testimonial-quote,
html.light-mode .author-details h5 {
    color: #0f172a !important;
}

html.light-mode .metric-label,
html.light-mode .feature-card-desc,
html.light-mode .security-info p,
html.light-mode .author-details p {
    color: #475569 !important;
}

html.light-mode .feature-tag,
html.light-mode .verified-badge {
    color: #059669 !important;
}

html.light-mode .metric-divider {
    background: #e2e8f0 !important;
}

html.light-mode .feature-glass-card:hover,
html.light-mode .testimonial-card:hover {
    border-color: #10b981 !important;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12) !important;
}

html.light-mode .security-card:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.12) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trust-metrics-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .metric-divider {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid-section,
    .security-section,
    .testimonials-section {
        padding: 3.5rem 5% 3rem;
    }
}



