:root {
    /* Electric Horizon Branding */
    --color-bg: #FFFFFF;
    --color-bg-warm: #FFF5DA;
    --color-text: #26141C;
    --color-text-muted: rgba(38, 20, 28, 0.5);
    --color-primary: #5B73ED;
    --color-secondary: #F5A1C5;
    --color-lavender: rgba(91, 115, 237, 0.1);

    --font-heading: 'Sora', sans-serif;
    --font-body: 'Sora', sans-serif;

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(91, 115, 237, 0.12);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

/* ══════════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.section-header p { color: var(--color-text-muted); margin-top: 0.5rem; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: none; font-family: var(--font-body); transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(180deg, #7B8FF5 0%, #5B73ED 40%, #4A5FD4 100%);
    color: #fff;
    box-shadow:
        0 4px 14px rgba(91,115,237,0.4),
        0 1px 3px rgba(91,115,237,0.25),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.08);
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #8B9DF7 0%, #4A62D6 40%, #3F53C4 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(91, 115, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Text gradient underline ── */
.text-gradient {
    position: relative;
    display: inline-block;
}
.text-gradient::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 6px;
    background: var(--color-primary);
    opacity: 0.35;
    border-radius: 3px;
    z-index: -1;
}
.text-gradient--green::after {
    background: #10b981;
    opacity: 0.55;
}

/* ══════════════════════════════════════════
   Navbar
   ══════════════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91,115,237,0.06);
}
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { width: 32px; height: 32px; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; }
.nav-right .btn { padding: 12px 20px; font-size: 0.85rem; }

/* ══════════════════════════════════════════
   Section 1: Hero
   ══════════════════════════════════════════ */
.hero {
    padding: 120px 0 60px;
    min-height: 80vh;
    display: flex; align-items: center;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    max-width: 540px;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-form {
    display: flex; gap: 0.5rem; max-width: 440px;
}
.hero-form input {
    flex: 1;
    padding: 14px 18px; border: 1px solid rgba(91,115,237,0.2);
    border-radius: 100px; font-size: 1rem; font-family: var(--font-body);
    outline: none; background: var(--color-bg); color: var(--color-text);
}
.hero-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-lavender);
}
.hero-visual { display: flex; justify-content: center; }

/* ── iPhone Mockup (from live site) ── */
.iphone-mockup {
    position: relative;
    width: 290px;
    height: 630px;
}
.iphone-mockup__screen-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #fff;
}
.iphone-mockup__screen {
    width: 100%; height: 100%;
    display: block;
}
.iphone-mockup__frame {
    position: absolute;
    width: 325px; height: 663px;
    top: -17px; left: -17px;
    max-width: none;
    pointer-events: none;
    z-index: 3;
}
.iphone-mockup__ui {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    display: flex; flex-direction: column;
    pointer-events: none;
    border-radius: 36px;
    overflow: hidden;
}
.mockup-panel-top {
    position: relative; z-index: 1;
    background: white; padding-bottom: 8px;
}
.mockup-panel-bottom {
    position: relative; z-index: 1;
    background: white; padding-top: 8px;
}
.mockup-safe-top { height: 52px; flex-shrink: 0; }
.mockup-safe-bottom { height: 18px; flex-shrink: 0; }
.mockup-spacer { flex: 1; }
.mockup-cards { padding: 0 9px; }

.mockup-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.1);
    border: 0.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.06),
        0 8px 24px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(255,255,255,0.15);
    overflow: hidden;
    padding: 5px 10px;
    text-align: center;
}
.mockup-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 40%, transparent 100%);
    border-radius: 14px 14px 0 0;
    pointer-events: none;
}
.mockup-glass::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.4);
    pointer-events: none;
}
.mockup-glass .mockup-footnote,
.mockup-glass .mockup-value,
.mockup-glass .mockup-sub {
    position: relative; z-index: 1;
}

.mockup-footnote {
    display: block;
    font-family: 'Sora', var(--font-body), sans-serif;
    font-size: 7.5px; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(38,20,28,0.4);
}
.mockup-value {
    font-family: 'Sora', var(--font-heading), sans-serif;
    font-size: 38px; font-weight: 800;
    color: #26141C; letter-spacing: -0.03em;
    margin-top: 1px;
}
/* ── Railway clock odometer ── */
.odometer { display: inline-flex; align-items: baseline; }
.odo-digit { display: inline-block; overflow: hidden; }
.odo-strip { display: block; }
.odo-static { display: inline-block; }
/* Main value odometer (38px) */
.mockup-value .odo-digit { height: 38px; }
.mockup-value .odo-digit .odo-strip span { display: block; height: 38px; line-height: 38px; }
.mockup-value .odo-digit.odo-decimal { height: 22px; }
.mockup-value .odo-digit.odo-decimal .odo-strip span { height: 22px; line-height: 22px; font-size: 22px; font-weight: 700; }
.mockup-value .odo-digit.odo-subcent { height: 16px; }
.mockup-value .odo-digit.odo-subcent .odo-strip span { height: 16px; line-height: 16px; font-size: 16px; font-weight: 500; opacity: 0.22; }
.mockup-value .odo-static.odo-decimal { font-size: 22px; font-weight: 700; line-height: 38px; }
/* Small value odometer (28px) */
.mockup-value--sm .odo-digit { height: 28px; }
.mockup-value--sm .odo-digit .odo-strip span { height: 28px; line-height: 28px; }
.mockup-value--sm .odo-digit.odo-decimal { height: 16px; }
.mockup-value--sm .odo-digit.odo-decimal .odo-strip span { height: 16px; line-height: 16px; font-size: 16px; font-weight: 700; }
.mockup-value--sm .odo-digit.odo-subcent { height: 13px; }
.mockup-value--sm .odo-digit.odo-subcent .odo-strip span { height: 13px; line-height: 13px; font-size: 13px; font-weight: 500; opacity: 0.22; }
.mockup-value--sm .odo-static.odo-decimal { font-size: 16px; font-weight: 700; line-height: 28px; }
.mockup-value small { font-size: 22px; font-weight: 500; opacity: 0.35; }
.mockup-value--sm { font-size: 28px; }
.mockup-value--sm small { font-size: 16px; }
.mockup-sub {
    font-family: 'Sora', var(--font-body), sans-serif;
    font-size: 9px; font-weight: 600;
    color: #5B73ED; margin-top: 1px;
}
.mockup-sub--rose { color: #F5A1C5; }
.mockup-sub--green { color: #22c55e; }
.mockup-impact-row {
    display: flex; justify-content: center; gap: 16px; margin-top: 2px;
    padding: 0 9px;
}
.mockup-impact-stat {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'Sora', var(--font-body), sans-serif;
    font-size: 11px; font-weight: 700;
    color: #22c55e; letter-spacing: 0.01em;
    text-align: left;
    flex: 1;
}
.mockup-impact-stat .emoji {
    font-size: 18px; line-height: 1; flex-shrink: 0;
}

/* Earned pill */
@keyframes earned-pill-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(74,222,128,0.2), 0 2px 8px rgba(74,222,128,0.1); }
    50% { box-shadow: 0 0 22px rgba(74,222,128,0.5), 0 2px 12px rgba(74,222,128,0.25); }
}
@keyframes earned-pill-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes earned-pill-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.earned-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: #22c55e; border: 1px solid #4ade80;
    border-radius: 100px; padding: 3px 10px;
    animation: earned-pill-glow 2s ease-in-out infinite, earned-pill-breathe 3s ease-in-out infinite;
    position: relative; overflow: hidden; z-index: 1;
    margin-top: 2px;
}
.earned-pill::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(74,222,128,0.18), transparent);
    background-size: 200% auto;
    animation: earned-pill-shimmer 3s linear infinite;
    pointer-events: none; border-radius: 100px;
}
.earned-pill__label {
    font-family: 'Sora', var(--font-body), sans-serif;
    font-size: 6px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #fff; position: relative; z-index: 1; white-space: nowrap;
}
.earned-pill__value {
    font-family: 'Sora', var(--font-heading), sans-serif;
    font-size: 12px; font-weight: 800;
    color: #fff; letter-spacing: -0.2px; line-height: 1;
    text-shadow: 0 0 8px rgba(74,222,128,0.3);
    position: relative; z-index: 1; white-space: nowrap;
}
@media (min-width: 901px) {
    .earned-pill { gap: 6px; padding: 4px 14px; border-width: 1.5px; }
    .earned-pill__label { font-size: 7px; letter-spacing: 1px; }
    .earned-pill__value { font-size: 16px; }
}

/* Earn More button */
.mockup-earn-float { display: flex; padding: 0 14px; }
.mockup-btn-earn {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; width: 100%; height: 36px;
    border-radius: 50px;
    font-family: 'Sora', var(--font-body), sans-serif;
    font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
    background: linear-gradient(180deg, #7B8FF5 0%, #5B73ED 40%, #4A5FD4 100%);
    color: #fff;
    box-shadow:
        0 6px 20px rgba(91,115,237,0.45),
        0 2px 6px rgba(91,115,237,0.3),
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    position: relative; overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.mockup-btn-earn svg { width: 12px; height: 12px; flex-shrink: 0; }
.mockup-btn-earn::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
    border-radius: 50px 50px 0 0; pointer-events: none;
}

/* Tab bar */
.mockup-tab-bar {
    display: flex; align-items: center; gap: 4px;
    margin: 0 auto; padding: 5px 6px;
    width: fit-content; border-radius: 50px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px) saturate(200%) brightness(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.15);
    border: 0.5px solid rgba(255,255,255,0.6);
    box-shadow:
        0 2px 10px rgba(0,0,0,0.1),
        0 0.5px 2px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -0.5px 0 rgba(255,255,255,0.15);
}
.mockup-tab {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; padding: 5px 10px; border-radius: 50px;
    font-family: 'Sora', var(--font-body), sans-serif;
}
.mockup-tab ion-icon { font-size: 16px; }
.mockup-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.mockup-tab span { font-size: 7.5px; font-weight: 600; letter-spacing: 0.01em; }
.mockup-tab--active {
    background: rgba(91,115,237,0.2);
    box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.4);
}
.mockup-tab--active svg { color: #5B73ED; stroke: #5B73ED; fill: none; }
.mockup-tab--active ion-icon { color: #5B73ED; }
.mockup-tab--active span { color: #5B73ED; }
.mockup-tab--inactive { color: rgba(38, 20, 28, 0.3); }

/* Hero responsive */
@media (max-width: 768px) {
    .hero { padding: 100px 0 40px; min-height: auto; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { max-width: 100%; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-form { flex-direction: column; max-width: 100%; }
    .hero-form input { text-align: center; }
    .iphone-mockup { width: 220px; height: 478px; }
    .iphone-mockup__frame { width: 247px; height: 503px; top: -13px; left: -13px; }
    .iphone-mockup__screen { border-radius: 28px; }
    .iphone-mockup__ui { border-radius: 28px; }
    .mockup-safe-top { height: 38px; }
    .mockup-value { font-size: 28px; }
    .mockup-value small { font-size: 17px; }
    .mockup-value--sm { font-size: 22px; }
    .mockup-value--sm small { font-size: 13px; }
}

/* ══════════════════════════════════════════
   Section 2: Community Mosaic
   ══════════════════════════════════════════ */
.mosaic-section {
    padding: 80px 0;
    background: var(--color-bg);
}
.mosaic-controls {
    display: flex; justify-content: center; gap: 6px; margin-bottom: 10px;
}
.mosaic-yr-btn {
    padding: 13px 16px; border-radius: 100px;
    border: 1px solid rgba(91, 115, 237, 0.15);
    background: transparent; cursor: pointer;
    font-family: var(--font-body); font-size: 0.85rem; color: var(--color-text);
    transition: all 0.2s;
}
.mosaic-yr-btn:hover:not(.active) {
    background: rgba(91, 115, 237, 0.06);
    border-color: rgba(91, 115, 237, 0.3);
}
.mosaic-yr-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.mosaic-year-label {
    text-align: center; font-size: 0.85rem;
    color: var(--color-text-muted); margin-bottom: 1.5rem;
}
.mosaic-year-label strong { color: var(--color-text); }

.mosaic-row { display: flex; gap: 16px; margin-bottom: 16px; }
.mosaic-card {
    flex: 1;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s, transform 0.3s;
}
.mosaic-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Photo hero with overlay */
.mosaic-hero {
    position: relative; width: 100%; height: 200px; overflow: hidden;
}
.mosaic-hero__picture {
    display: block;
    width: 100%;
    height: 100%;
}
.mosaic-hero__img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.mosaic-card:hover .mosaic-hero__img {
    transform: scale(1.03);
}
.mosaic-hero__img--top {
    object-position: center 40%;
}
.mosaic-hero__overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 32px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    text-align: left;
}
.mosaic-name { font-weight: 700; font-size: 1rem; color: #fff; }
.mosaic-deposit { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 2px; }
.mosaic-body { padding: 16px; }

.mosaic-stats { display: flex; gap: 8px; margin-bottom: 10px; }
.mosaic-stat {
    flex: 1; background: var(--color-bg);
    border-radius: var(--radius-sm); padding: 10px 6px;
}
.mosaic-stat-label { font-size: 0.7rem; color: var(--color-text-muted); }
.mosaic-stat-value { font-size: 1.35rem; font-weight: 700; color: var(--color-primary); }
.mosaic-stat-value--green { font-size: 1.35rem; font-weight: 700; color: #10b981; }
.mosaic-balance {
    font-size: 0.75rem; color: var(--color-text-muted);
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(91, 115, 237, 0.08);
}
.mosaic-balance strong { color: var(--color-text); }
.mosaic-impact {
    font-size: 0.8rem; line-height: 1.7; text-align: left;
    background: var(--color-bg); border-radius: var(--radius-sm);
    padding: 10px 12px; min-height: 68px;
}
.mosaic-impact strong { color: #10b981; }
.mosaic-bank {
    margin-top: 10px; font-size: 0.7rem;
    color: var(--color-text-muted); opacity: 0.6; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.mosaic-bank ion-icon { font-size: 14px; }
.mosaic-bank .strikethrough { text-decoration: line-through; }

.mosaic-total {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px; text-align: center;
    font-size: 0.9rem;
}
.mosaic-total strong { color: var(--color-primary); }
.mosaic-total .green { color: #10b981; }
.mosaic-total .strikethrough { text-decoration: line-through; opacity: 0.5; }

@media (max-width: 768px) {
    .mosaic-row { flex-direction: column; }
}

/* ══════════════════════════════════════════
   Section 3: Calculator
   ══════════════════════════════════════════ */
.calculator-section {
    padding: 80px 0;
    background: var(--color-bg);
}
.calc-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 24px rgba(91, 115, 237, 0.06);
}
.calc-input-row {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap; margin-bottom: 24px;
}
.calc-label { font-size: 0.95rem; color: var(--color-text-muted); }
.calc-input-wrap {
    display: flex; align-items: center;
    border: 1px solid rgba(91, 115, 237, 0.2);
    border-radius: 100px; padding: 0 16px; background: var(--color-bg);
}
.calc-currency { font-weight: 700; color: var(--color-text-muted); margin-right: 4px; }
.calc-input-wrap input {
    border: none; outline: none; font-size: 1.1rem; font-weight: 700;
    font-family: var(--font-body); width: 80px; padding: 12px 0;
    background: transparent; color: var(--color-text);
}
.calc-time-btns { display: flex; gap: 4px; }
.calc-time-btn {
    padding: 13px 16px; border-radius: 100px;
    border: 1px solid rgba(91, 115, 237, 0.15);
    background: transparent; cursor: pointer;
    font-family: var(--font-body); font-size: 0.85rem; color: var(--color-text);
    transition: all 0.2s;
}
.calc-time-btn:hover:not(.active) {
    background: rgba(91, 115, 237, 0.06);
    border-color: rgba(91, 115, 237, 0.3);
}
.calc-time-btn.active {
    background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}
.calc-input-wrap:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-lavender);
}

.calc-compare { display: flex; gap: 16px; margin-bottom: 24px; }
.calc-side {
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.calc-nammu { flex: 7; }
.calc-bank { flex: 3; }
.calc-side-tag {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 14px;
    color: var(--color-text-muted);
}
.calc-side-tag--nammu {
    display: flex; align-items: center; gap: 8px;
    text-transform: none; letter-spacing: 0; font-size: 1rem;
}
.calc-brand-logo { height: 31px; width: auto; }
.calc-brand-name {
    font-family: var(--font-heading); font-weight: 800;
    font-size: 1.2rem; color: var(--color-text); letter-spacing: -0.03em;
}
.calc-side-tag--bank {
    display: flex; align-items: center; gap: 6px;
}
.calc-bank-icon { font-size: 20px; }
.calc-line {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; font-size: 0.9rem;
}
.calc-line span { color: var(--color-text-muted); }
.calc-line--total { border-top: 1px solid rgba(91, 115, 237, 0.1); padding-top: 10px; margin-top: 4px; }
.calc-divider { height: 1px; background: rgba(91, 115, 237, 0.06); margin: 4px 0; }
.calc-accent { color: var(--color-primary); font-weight: 700; }
.calc-green { color: #10b981; font-weight: 700; }
.calc-dim { color: var(--color-text-muted); font-weight: 600; opacity: 0.6; }

/* Yield split slider */
.yield-split {
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
}
.yield-split__header {
    display: flex; justify-content: space-between; margin-bottom: 8px;
}
.yield-split__side {
    display: flex; align-items: center; gap: 8px;
}
.yield-split__side--earn { color: var(--color-primary); }
.yield-split__side--donate { color: #10b981; }
.yield-split__side ion-icon { font-size: 20px; }
.yield-split__label { font-size: 0.75rem; display: block; opacity: 0.7; }
.yield-split__pct { font-size: 1.1rem; font-weight: 700; }
.yield-split__bar {
    position: relative; height: 8px;
    background: #10b981; border-radius: 4px;
    cursor: pointer;
}
.yield-split__fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--color-primary); border-radius: 4px;
    width: 50%;
}
.yield-split__knob {
    position: absolute; top: 50%;
    width: 24px; height: 24px;
    background: #fff; border: 3px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}
.yield-split__knob:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 2px 12px rgba(91, 115, 237, 0.3);
}
.yield-split__ends {
    display: flex; justify-content: space-between;
    font-size: 0.7rem; color: var(--color-text-muted); margin-top: 4px;
}

.calc-footer { color: #10b981; font-size: 0.85rem; text-align: center; padding-top: 8px; }

@media (max-width: 768px) {
    .calc-compare { flex-direction: column; }
    .calc-input-row { justify-content: center; }
}

/* ══════════════════════════════════════════
   Section 4: Impact Carousel
   ══════════════════════════════════════════ */
.impact {
    padding: 80px 0;
    background: var(--color-bg);
    overflow: hidden;
}
.impact-header {
    text-align: center; max-width: 600px;
    margin: 0 auto 2rem; padding: 0 24px;
}
.impact-label {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--color-primary); margin-bottom: 8px;
}
.impact-header h2 { margin-bottom: 0.5rem; font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.impact-header p { color: var(--color-text-muted); }

.impact-carousel-wrapper {
    width: 100%; overflow: hidden; padding: 0 0 20px;
}
.impact-carousel {
    display: flex; gap: 20px;
    animation: scroll-left 60s linear infinite;
    width: max-content;
    will-change: transform;
}
.impact-carousel:hover { animation-play-state: paused; }
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.impact-card {
    flex: 0 0 300px; border-radius: var(--radius-md);
    overflow: hidden; background: var(--glass-bg);
    border: var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.impact-card img { width: 100%; height: 180px; object-fit: cover; }
.impact-card__content { padding: 16px; }
.impact-card__tag {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 6px;
}
.impact-card__title { font-weight: 700; margin-bottom: 6px; }
.impact-card__desc { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 8px; }
.impact-card__stat { font-size: 0.75rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }
.impact-card__stat .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10b981; display: inline-block;
}

@media (max-width: 768px) {
    .impact-carousel-wrapper { padding-left: 20px; }
    .impact-card { flex: 0 0 260px; }
    .impact-card img { height: 150px; }
}

.impact-partners {
    display: flex; justify-content: center; align-items: center;
    gap: 16px; padding: 24px; font-size: 0.8rem;
    color: var(--color-text-muted);
}
.partner-name { font-weight: 600; color: var(--color-text); padding: 12px 4px; display: inline-block; }
.partner-name:hover { color: var(--color-primary); }

/* ══════════════════════════════════════════
   Section 5: How It Works
   ══════════════════════════════════════════ */
.how-section {
    padding: 80px 0;
    background: var(--color-bg);
}

/* How layout: steps left, phone right */
.how-layout {
    display: flex; align-items: center; gap: 64px;
    max-width: 900px; margin: 48px auto 0;
}

.how-steps {
    flex: 1; display: flex; flex-direction: column; gap: 0;
    position: relative;
}

.how-step {
    display: flex; gap: 20px; padding: 24px 0;
    position: relative; cursor: pointer;
}
.how-step__number {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(91, 115, 237, 0.15); color: var(--color-primary);
    font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; z-index: 1;
    box-shadow: 0 0 0 6px var(--color-bg);
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.how-step--active .how-step__number {
    background: var(--color-primary); color: #fff;
    box-shadow: 0 0 0 6px var(--color-bg), 0 0 16px rgba(91, 115, 237, 0.3);
}

.how-step__body {
    flex: 1; opacity: 0.5; transition: opacity 0.4s ease;
}
.how-step--active .how-step__body { opacity: 1; }
.how-step__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.how-step__body p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.6; }

.how-phone {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
}

@media (max-width: 768px) {
    .how-layout { flex-direction: column-reverse; gap: 32px; }
    .how-step { padding: 16px 0; }
}

/* ══════════════════════════════════════════
   Section 6: CTA
   ══════════════════════════════════════════ */
.cta-section {
    padding: 80px 0;
    background: var(--color-bg);
}
.cta-box {
    max-width: 720px; margin: 0 auto; text-align: center;
    background: var(--glass-bg); border: var(--glass-border);
    border-radius: var(--radius-lg); padding: 56px 56px;
    box-shadow: 0 4px 24px rgba(91, 115, 237, 0.06);
}
.cta-box h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.5rem; }
.cta-box p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.cta-form {
    display: flex; gap: 0.5rem; max-width: 460px; margin: 0 auto;
}
.cta-form input {
    flex: 1; padding: 14px 18px;
    border: 1px solid rgba(91, 115, 237, 0.2);
    border-radius: 100px; font-size: 1rem; font-family: var(--font-body);
    outline: none; background: var(--color-bg); color: var(--color-text);
}
.cta-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-lavender);
}

@media (max-width: 768px) {
    .cta-box { padding: 32px 20px; }
    .cta-form { flex-direction: column; max-width: 100%; }
}

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(91, 115, 237, 0.08);
}
.footer-content {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.footer-logo {
    font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--color-text-muted); padding: 12px 4px; display: inline-block; }
.footer-links a:hover { color: var(--color-primary); }
.footer-copy { font-size: 0.75rem; color: var(--color-text-muted); }

@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════
   Modal
   ══════════════════════════════════════════ */
.modal {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.modal-content {
    background: var(--color-bg); border-radius: var(--radius-lg);
    padding: 40px; max-width: 480px; width: 90%; text-align: center;
    position: relative;
    animation: modal-pop 0.3s ease;
}
@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.close-modal {
    position: absolute; top: 16px; right: 16px;
    font-size: 24px; cursor: pointer; color: var(--color-text-muted);
}
.success-icon { font-size: 48px; color: #10b981; margin-bottom: 16px; }

.profile-content {
    text-align: center;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.profile-icon { font-size: 32px; margin-bottom: 8px; }
.profile-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 4px 0 20px;
}

.profile-field {
    margin-bottom: 14px;
    text-align: left;
}
.profile-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}
.profile-field input[type="text"] {
    width: 100%;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(91, 115, 237, 0.15);
    background: #f5f4f7;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
}
.profile-field input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91, 115, 237, 0.12);
}
.profile-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.country-select { position: relative; }
.country-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}
.country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: 1px solid rgba(91, 115, 237, 0.15);
    border-radius: var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.country-dropdown.open { display: block; }
.country-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text);
}
.country-option:hover, .country-option.highlighted { background: var(--color-lavender); }

.deposit-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.deposit-pill {
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(91, 115, 237, 0.15);
    background: #f5f4f7;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.15s ease;
}
.deposit-pill:hover { border-color: var(--color-primary); }
.deposit-pill.active {
    background: rgba(91, 115, 237, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.profile-submit {
    width: 100%;
    margin-top: 6px;
}
.profile-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* ══════════════════════════════════════════
   Scroll Reveal
   ══════════════════════════════════════════ */
.section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
noscript ~ .section-reveal,
.no-js .section-reveal {
    opacity: 1;
    transform: none;
}

@media (max-width: 480px) {
    .profile-name-row { grid-template-columns: 1fr; }
    .deposit-pills { grid-template-columns: 1fr; }
    .profile-submit {
        position: sticky;
        bottom: 0;
        z-index: 1;
    }
}
