/* ========================================
   1. RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   2. CSS CUSTOM PROPERTIES (THEME)
   ======================================== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 255, 255, 0.25);
    --blur-amount: 28px;
    --blur-amount-heavy: 48px;
    --text-primary: rgba(255, 255, 255, 0.98);
    --text-secondary: rgba(255, 255, 255, 0.62);
    --text-tertiary: rgba(255, 255, 255, 0.42);
    --accent-blue: #7EC8F0;
    --accent-purple: #B08DFA;
    --accent-pink: #F682C0;
    --accent-cyan: #6EEAF8;
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --spring: cubic-bezier(0.32, 1.4, 0.6, 1);
    --smooth: cubic-bezier(0.45, 0, 0.15, 1);
    --bg-base: #060612;
    --bg-liquid-1: #080820;
    --bg-liquid-2: #0a0924;
    --bg-liquid-3: #140c34;
    --bg-liquid-4: #0c0a20;
    --blob-opacity: 0.55;
    --modal-bg: rgba(16, 14, 42, 0.88);
    --modal-overlay: rgba(0, 0, 0, 0.55);
    --glass-card-shine: rgba(255, 255, 255, 0.08);
    --glass-card-border-1: rgba(255, 255, 255, 0.18);
    --glass-card-border-2: rgba(167, 139, 250, 0.08);
    --glass-card-border-3: rgba(244, 114, 182, 0.08);
    --glass-card-border-4: rgba(103, 232, 249, 0.08);
    --glass-card-border-5: rgba(255, 255, 255, 0.12);
    --device-pill-bg: rgba(255, 255, 255, 0.04);
    --device-pill-border: rgba(255, 255, 255, 0.08);
    --icon-glow-opacity: 0.4;
    --feature-icon-blue-bg: rgba(108, 180, 238, 0.1);
    --feature-icon-blue-border: rgba(108, 180, 238, 0.12);
    --feature-icon-purple-bg: rgba(167, 139, 250, 0.1);
    --feature-icon-purple-border: rgba(167, 139, 250, 0.12);
    --feature-icon-pink-bg: rgba(244, 114, 182, 0.1);
    --feature-icon-pink-border: rgba(244, 114, 182, 0.12);
    --feature-icon-cyan-bg: rgba(103, 232, 249, 0.1);
    --feature-icon-cyan-border: rgba(103, 232, 249, 0.12);
    --step-dot-bg: rgba(255, 255, 255, 0.1);
    --step-line-bg: rgba(255, 255, 255, 0.06);
    --step-visual-bg: rgba(255, 255, 255, 0.03);
    --step-visual-border: rgba(255, 255, 255, 0.06);
    --step-path-bg: rgba(108, 180, 238, 0.08);
    --step-path-border: rgba(108, 180, 238, 0.12);
    --step-tip-bg: rgba(103, 232, 249, 0.05);
    --step-tip-border: rgba(103, 232, 249, 0.08);
    --modal-handle-bg: rgba(255, 255, 255, 0.18);
    --modal-close-bg: rgba(255, 255, 255, 0.06);
    --modal-close-bg-hover: rgba(255, 255, 255, 0.12);
    --modal-secondary-bg: rgba(255, 255, 255, 0.05);
    --modal-secondary-border: rgba(255, 255, 255, 0.08);
    --modal-secondary-bg-hover: rgba(255, 255, 255, 0.08);
    --modal-primary-bg-1: rgba(108, 180, 238, 0.25);
    --modal-primary-bg-2: rgba(167, 139, 250, 0.25);
    --modal-primary-bg-1-hover: rgba(108, 180, 238, 0.35);
    --modal-primary-bg-2-hover: rgba(167, 139, 250, 0.35);
    --modal-primary-border: rgba(255, 255, 255, 0.18);
    --scrollbar-thumb: rgba(255, 255, 255, 0.08);
    --noise-opacity: 0.025;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow-blue: 0 0 20px rgba(108, 180, 238, 0.15);
    --shadow-glow-cyan: 0 0 20px rgba(103, 232, 249, 0.15);
}

[data-theme="light"] {
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-border-hover: rgba(255, 255, 255, 0.8);
    --text-primary: rgba(15, 15, 35, 0.92);
    --text-secondary: rgba(30, 30, 60, 0.6);
    --text-tertiary: rgba(50, 50, 80, 0.45);
    --accent-blue: #3B82F6;
    --accent-purple: #7C3AED;
    --accent-pink: #EC4899;
    --accent-cyan: #06B6D4;
    --bg-base: #eef1fa;
    --bg-liquid-1: #dde4f8;
    --bg-liquid-2: #e0dff5;
    --bg-liquid-3: #e8ddf5;
    --bg-liquid-4: #e5e8f8;
    --blob-opacity: 0.5;
    --modal-bg: rgba(240, 242, 250, 0.88);
    --modal-overlay: rgba(200, 205, 225, 0.45);
    --glass-card-shine: rgba(255, 255, 255, 0.5);
    --glass-card-border-1: rgba(255, 255, 255, 0.6);
    --glass-card-border-2: rgba(167, 139, 250, 0.2);
    --glass-card-border-3: rgba(244, 114, 182, 0.2);
    --glass-card-border-4: rgba(103, 232, 249, 0.2);
    --glass-card-border-5: rgba(255, 255, 255, 0.5);
    --device-pill-bg: rgba(255, 255, 255, 0.45);
    --device-pill-border: rgba(255, 255, 255, 0.5);
    --icon-glow-opacity: 0.35;
    --feature-icon-blue-bg: rgba(59, 130, 246, 0.1);
    --feature-icon-blue-border: rgba(59, 130, 246, 0.15);
    --feature-icon-purple-bg: rgba(124, 58, 237, 0.1);
    --feature-icon-purple-border: rgba(124, 58, 237, 0.15);
    --feature-icon-pink-bg: rgba(236, 72, 153, 0.1);
    --feature-icon-pink-border: rgba(236, 72, 153, 0.15);
    --feature-icon-cyan-bg: rgba(6, 182, 212, 0.1);
    --feature-icon-cyan-border: rgba(6, 182, 212, 0.15);
    --step-dot-bg: rgba(30, 27, 75, 0.1);
    --step-line-bg: rgba(30, 27, 75, 0.08);
    --step-visual-bg: rgba(255, 255, 255, 0.4);
    --step-visual-border: rgba(255, 255, 255, 0.5);
    --step-path-bg: rgba(59, 130, 246, 0.1);
    --step-path-border: rgba(59, 130, 246, 0.2);
    --step-tip-bg: rgba(6, 182, 212, 0.06);
    --step-tip-border: rgba(6, 182, 212, 0.15);
    --modal-handle-bg: rgba(30, 27, 75, 0.15);
    --modal-close-bg: rgba(30, 27, 75, 0.06);
    --modal-close-bg-hover: rgba(30, 27, 75, 0.1);
    --modal-secondary-bg: rgba(30, 27, 75, 0.05);
    --modal-secondary-border: rgba(30, 27, 75, 0.1);
    --modal-secondary-bg-hover: rgba(30, 27, 75, 0.08);
    --modal-primary-bg-1: rgba(59, 130, 246, 0.5);
    --modal-primary-bg-2: rgba(124, 58, 237, 0.5);
    --modal-primary-bg-1-hover: rgba(59, 130, 246, 0.65);
    --modal-primary-bg-2-hover: rgba(124, 58, 237, 0.65);
    --modal-primary-border: rgba(255, 255, 255, 0.3);
    --scrollbar-thumb: rgba(30, 27, 75, 0.1);
    --noise-opacity: 0.015;
}

/* ========================================
   3. LIQUID BACKGROUND
   ======================================== */
.liquid-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-liquid-1) 0%, var(--bg-liquid-2) 30%, var(--bg-liquid-3) 60%, var(--bg-liquid-4) 100%);
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: var(--blob-opacity);
    will-change: transform;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 180, 238, 0.5) 0%, rgba(108, 180, 238, 0) 70%);
    top: -10%;
    left: -10%;
    animation: float-1 12s ease-in-out infinite;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.5) 0%, rgba(167, 139, 250, 0) 70%);
    top: 30%;
    right: -15%;
    animation: float-2 15s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0) 70%);
    bottom: 10%;
    left: 10%;
    animation: float-3 18s ease-in-out infinite;
}

.blob-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.35) 0%, rgba(103, 232, 249, 0) 70%);
    top: 60%;
    left: 50%;
    animation: float-4 14s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
    33% { transform: translate(80px, 60px) scale(1.1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    66% { transform: translate(30px, 100px) scale(0.95); border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    33% { transform: translate(-60px, 80px) scale(1.05); border-radius: 40% 60% 60% 40% / 30% 60% 70% 40%; }
    66% { transform: translate(-100px, 30px) scale(0.9); border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; }
    33% { transform: translate(60px, -40px) scale(1.15); border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
    66% { transform: translate(100px, -80px) scale(0.95); border-radius: 60% 40% 30% 70% / 50% 60% 30% 60%; }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0) scale(1); border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { transform: translate(-80px, -60px) scale(1.1); border-radius: 60% 40% 30% 70% / 40% 60% 50% 50%; }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: var(--noise-opacity);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ========================================
   4. LAYOUT & PAGE
   ======================================== */
.page-container {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 auto;
    padding: 70px 20px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   5. NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    padding: 10px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: calc(100vw - 28px);
    background: rgba(12, 12, 32, 0.5);
    backdrop-filter: blur(36px) saturate(180%);
    -webkit-backdrop-filter: blur(36px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: all 0.35s var(--smooth);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    right: 10%;
    height: 6px;
    background: inherit;
    filter: blur(12px);
    opacity: 0.3;
    pointer-events: none;
}

[data-theme="light"] .navbar {
    background: rgba(242, 244, 252, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-logo {
    position: relative;
    width: 90px;
    height: 90px;
}

.navbar-logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-logo-dark { display: block; }
.nav-logo-light { display: none; }

html[data-theme="dark"] .nav-logo-dark { display: block; }
html[data-theme="dark"] .nav-logo-light { display: none; }
html[data-theme="light"] .nav-logo-dark { display: none; }
html[data-theme="light"] .nav-logo-light { display: block; }

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--smooth);
    text-decoration: none;
}

.navbar-link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .navbar-link:hover {
    background: rgba(30, 27, 75, 0.06);
}

.navbar-link.active {
    background: rgba(108, 180, 238, 0.15);
    color: var(--accent-blue);
    border-radius: 100px;
}

[data-theme="light"] .navbar-link.active {
    background: rgba(59, 130, 246, 0.1);
}

.navbar-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.navbar-spacer {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 4px;
}

[data-theme="light"] .navbar-spacer {
    background: rgba(30, 27, 75, 0.1);
}

/* ========================================
   6. THEME TOGGLE SWITCH
   ======================================== */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    --background: #20262c;
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--background);
    transition: 0.5s;
    border-radius: 30px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 10%;
    bottom: 15%;
    box-shadow: inset 8px -4px 0px 0px #ececd9, -4px 1px 4px 0px #dadada;
    background: var(--background);
    transition: 0.5s;
}

.decoration {
    position: absolute;
    content: "";
    height: 2px;
    width: 2px;
    border-radius: 50%;
    right: 20%;
    top: 15%;
    background: #e5f041e6;
    backdrop-filter: blur(10px);
    transition: all 0.5s;
    box-shadow: -7px 10px 0 #e5f041e6, -4px 1px 4px 0px transparent, 8px 15px 0 #e5f041e6, -17px 1px 0 #e5f041e6, -20px 10px 0 #e5f041e6, -7px 23px 0 #e5f041e6, -15px 25px 0 #e5f041e6;
}

.switch input:checked ~ .decoration {
    transform: translateX(-20px);
    width: 10px;
    height: 10px;
    background: white;
    box-shadow: -12px 0 0 white, -6px 0 0 1.6px white, 5px 15px 0 1px white, 1px 17px 0 white, 10px 17px 0 white;
}

.switch input:checked + .slider {
    background-color: #5494de;
}

.switch input:checked + .slider::before {
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0px 15px #efdf2b, 0 0 10px 0px #efdf2b;
}

/* ========================================
   7. HERO SECTION
   ======================================== */
.hero-section {
    text-align: center;
    padding-top: 110px;
    padding-bottom: 36px;
    animation: fade-up 0.9s var(--smooth) both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(32px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-icon-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 26px;
}

.app-icon-glow {
    position: absolute;
    inset: -16px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    filter: blur(24px);
    opacity: var(--icon-glow-opacity);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.04); }
}

.app-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    border-radius: 0;
    display: block;
    object-fit: contain;
    box-shadow: none;
}

html[data-theme="dark"] .app-icon-dark { display: block; }
html[data-theme="dark"] .app-icon-light { display: none; }
html[data-theme="light"] .app-icon-dark { display: none; }
html[data-theme="light"] .app-icon-light { display: block; }

.app-version {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* ========================================
   8. DOWNLOAD SECTION
   ======================================== */
.download-section {
    margin-bottom: 24px;
    animation: fade-up 0.8s var(--smooth) 0.15s both;
}

.device-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 100px;
    background: var(--device-pill-bg);
    border: 1px solid var(--device-pill-border);
    font-size: 13px;
    color: var(--text-secondary);
    width: fit-content;
    margin: 0 auto 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .device-indicator {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.device-indicator svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.device-indicator .device-name {
    font-weight: 500;
    color: var(--accent-cyan);
}

.download-card {
    padding: 32px 24px 28px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.store-btn {
    display: inline-flex;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    padding: 0;
    transition: transform 0.35s var(--smooth), box-shadow 0.35s var(--smooth);
    width: 100%;
    max-width: 240px;
}

.store-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.store-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.12s;
}

.store-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.35s var(--smooth);
    position: relative;
    overflow: hidden;
}

.store-btn-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.store-btn:hover .store-btn-inner {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-glow-blue);
}

[data-theme="light"] .store-btn-inner {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--text-primary);
    box-shadow: 0 2px 12px rgba(30, 27, 75, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .store-btn-inner::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
}

[data-theme="light"] .store-btn:hover .store-btn-inner {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 20px rgba(30, 27, 75, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.store-btn-icon {
    width: 20px;
    flex-shrink: 0;
}

.store-btn-icon path {
    fill: var(--text-primary);
}

.store-btn-icon path[fill]:not([fill="currentColor"]) {
    fill: initial;
}

.store-btn-text {
    text-align: left;
}

.store-btn-title {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    color: var(--text-primary);
}

/* ========================================
   9. GLASS CARD
   ======================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--glass-card-shine) 0%, transparent 50%);
    pointer-events: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--glass-card-border-1) 0%, var(--glass-card-border-2) 25%, var(--glass-card-border-3) 50%, var(--glass-card-border-4) 75%, var(--glass-card-border-5) 100%);
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
    pointer-events: none;
}

[data-theme="light"] .glass-card {
    background-clip: padding-box;
}

/* ========================================
   10. FEATURES SECTION
   ======================================== */
.features-section {
    margin-bottom: 32px;
    animation: fade-up 0.8s var(--smooth) 0.3s both;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-card {
    padding: 22px 16px;
    text-align: center;
    transition: all 0.4s var(--smooth);
}

.feature-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: var(--feature-icon-blue-bg);
    border: 1px solid var(--feature-icon-blue-border);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
}

.feature-icon.purple {
    background: var(--feature-icon-purple-bg);
    border-color: var(--feature-icon-purple-border);
}

.feature-icon.purple svg {
    color: var(--accent-purple);
}

.feature-icon.pink {
    background: var(--feature-icon-pink-bg);
    border-color: var(--feature-icon-pink-border);
}

.feature-icon.pink svg {
    color: var(--accent-pink);
}

.feature-icon.cyan {
    background: var(--feature-icon-cyan-bg);
    border-color: var(--feature-icon-cyan-border);
}

.feature-icon.cyan svg {
    color: var(--accent-cyan);
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* ========================================
   11. FOOTER
   ======================================== */
.footer {
    text-align: center;
    padding: 24px 0 40px;
    font-size: 12px;
    color: var(--text-tertiary);
    animation: fade-up 0.8s var(--smooth) 0.45s both;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--accent-blue);
}

/* ========================================
   12. TOAST NOTIFICATION
   ======================================== */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 180;
    max-width: 420px;
    width: calc(100% - 32px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--spring);
    pointer-events: none;
}

.toast-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.toast-container.active .toast {
    transform: translateY(0) scale(1);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(24, 22, 52, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(244, 114, 182, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    transform: translateY(-16px) scale(0.96);
    transition: all 0.4s var(--spring);
}

[data-theme="light"] .toast {
    background: rgba(242, 244, 252, 0.96);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 48px rgba(30, 27, 75, 0.1), 0 0 60px rgba(236, 72, 153, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--smooth);
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.toast-close svg {
    width: 14px;
    height: 14px;
}

[data-theme="light"] .toast-close {
    background: rgba(30, 27, 75, 0.06);
}

[data-theme="light"] .toast-close:hover {
    background: rgba(30, 27, 75, 0.1);
}

@media (max-width: 360px) {
    .toast {
        padding: 14px 14px 14px 16px;
        gap: 10px;
    }

    .toast-icon {
        width: 36px;
        height: 36px;
    }

    .toast-icon svg {
        width: 20px;
        height: 20px;
    }

    .toast-title {
        font-size: 14px;
    }

    .toast-desc {
        font-size: 12px;
    }

    .toast-container {
        top: 72px;
    }
}

/* ========================================
   13. BROWSER TIP OVERLAY
   ======================================== */
.browser-tip-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px 14px 0 14px;
}

.browser-tip-overlay.active {
    display: flex;
}

.browser-tip-card {
    position: relative;
    background: rgba(24, 22, 52, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 26px 22px 22px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(108, 180, 238, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: tip-bounce 0.6s var(--spring) both;
}

@keyframes tip-bounce {
    from { opacity: 0; transform: translateY(-24px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

[data-theme="light"] .browser-tip-card {
    background: rgba(242, 244, 252, 0.96);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 48px rgba(30, 27, 75, 0.12), 0 0 60px rgba(59, 130, 246, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.browser-tip-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.browser-tip-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.browser-tip-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.browser-tip-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.browser-tip-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.browser-tip-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.browser-tip-step .step-badge {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.browser-tip-step strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.browser-tip-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--smooth);
    width: 100%;
    max-width: 240px;
    position: relative;
    overflow: hidden;
}

.browser-tip-copy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

.browser-tip-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm), var(--shadow-glow-blue);
}

.browser-tip-copy-btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.browser-tip-copy-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.browser-tip-copy-btn span {
    position: relative;
    z-index: 1;
}

.browser-tip-copy-btn.copied {
    background: rgba(103, 232, 249, 0.12);
    border-color: rgba(103, 232, 249, 0.25);
    color: var(--accent-cyan);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(103, 232, 249, 0.1);
}

[data-theme="light"] .browser-tip-copy-btn {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .browser-tip-copy-btn::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

[data-theme="light"] .browser-tip-copy-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 12px rgba(30, 27, 75, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .browser-tip-copy-btn.copied {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

.browser-tip-arrow {
    position: absolute;
    top: -40px;
    right: 20px;
    width: 60px;
    height: 40px;
    color: rgba(255, 255, 255, 0.3);
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

[data-theme="light"] .browser-tip-arrow {
    color: rgba(30, 27, 75, 0.2);
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   13. MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--modal-overlay);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--modal-bg);
    backdrop-filter: blur(var(--blur-amount-heavy)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--blur-amount-heavy)) saturate(200%);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.5s var(--spring);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(108, 180, 238, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-handle {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--modal-handle-bg);
    margin: 12px auto 0;
    flex-shrink: 0;
}

.modal-header {
    padding: 22px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .modal-header {
    border-bottom-color: rgba(30, 27, 75, 0.06);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--modal-close-bg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--modal-close-bg-hover);
    color: var(--text-primary);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-body {
    padding: 0 24px 24px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 2px;
}

/* ========================================
   14. STEP INDICATOR & CARDS
   ======================================== */
.step-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 0 4px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--step-dot-bg);
    transition: all 0.4s var(--spring);
    flex-shrink: 0;
}

.step-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(103, 232, 249, 0.45);
    width: 26px;
    border-radius: 5px;
}

.step-dot.completed {
    background: var(--accent-blue);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--step-line-bg);
    position: relative;
    overflow: hidden;
}

.step-line-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--smooth);
}

.step-line-fill.filled {
    transform: scaleX(1);
}

.step-card {
    display: none;
    animation: step-in 0.4s var(--spring);
}

.step-card.active {
    display: block;
}

@keyframes step-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(108, 180, 238, 0.25);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-visual {
    background: var(--step-visual-bg);
    border: 1px solid var(--step-visual-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.step-visual-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.step-visual-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.step-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.step-path-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--step-path-bg);
    border: 1px solid var(--step-path-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-blue);
}

.step-path-arrow {
    color: var(--text-tertiary);
    font-size: 12px;
}

.step-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--step-tip-bg);
    border: 1px solid var(--step-tip-border);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-tip svg {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 1px;
}

.modal-footer {
    padding: 16px 24px 28px;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.modal-btn {
    flex: 1;
    padding: 15px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.modal-btn:active {
    transform: scale(0.97);
}

.modal-btn-secondary {
    background: var(--modal-secondary-bg);
    border: 1px solid var(--modal-secondary-border);
    color: var(--text-secondary);
}

.modal-btn-secondary:hover {
    background: var(--modal-secondary-bg-hover);
    color: var(--text-primary);
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--modal-primary-bg-1), var(--modal-primary-bg-2));
    border: 1px solid var(--modal-primary-border);
    color: #fff;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, var(--modal-primary-bg-1-hover), var(--modal-primary-bg-2-hover));
}

/* ========================================
   15. RESPONSIVE BREAKPOINTS
   ======================================== */

/* ---- Extra small screens (<=360px) ---- */
@media (max-width: 360px) {
    .browser-tip-card {
        max-width: 280px;
        padding: 20px 16px 16px;
    }

    .browser-tip-title {
        font-size: 16px;
    }

    .browser-tip-desc {
        font-size: 13px;
    }

    .browser-tip-icon {
        width: 48px;
        height: 48px;
    }

    .browser-tip-icon svg {
        width: 24px;
        height: 24px;
    }

    .browser-tip-step {
        font-size: 12px;
        gap: 8px;
    }

    .browser-tip-step .step-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .browser-tip-copy-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .navbar {
        padding: 10px 24px;
    }

    .navbar-link {
        padding: 7px 10px;
        font-size: 12px;
    }

    .navbar-logo {
        width: 52px;
        height: 52px;
    }

    .page-container {
        padding: 0 16px;
    }

    .hero-section {
        padding-top: 80px;
    }

    .app-icon-wrapper {
        width: 110px;
        height: 110px;
    }

    .app-icon {
        width: 110px;
        height: 110px;
        border-radius: 18px;
    }

    .app-version {
        font-size: 12px;
    }

    .store-btn {
        max-width: 180px;
    }

    .store-btn-inner {
        padding: 8px 16px;
        min-height: 42px;
    }

    .store-btn-icon {
        width: 18px;
    }

    .store-btn-title {
        font-size: 0.85rem;
    }

    .features-grid {
        gap: 8px;
    }

    .feature-card {
        padding: 14px 10px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
    }

    .feature-icon svg {
        width: 17px;
        height: 17px;
    }

    .feature-title {
        font-size: 13px;
    }

    .feature-desc {
        font-size: 11px;
    }

    .section-title {
        font-size: 16px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 0 18px 18px;
    }

    .modal-header {
        padding: 16px 18px 12px;
    }

    .modal-footer {
        padding: 12px 18px 20px;
    }

    .modal-title {
        font-size: 17px;
    }

    .step-title {
        font-size: 16px;
    }

    .step-desc {
        font-size: 13px;
    }

    .step-path-item {
        padding: 4px 8px;
        font-size: 11px;
    }

    .step-tip {
        padding: 10px 12px;
        font-size: 12px;
    }

    .modal-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .switch {
        font-size: 14px;
        width: 3em;
        height: 1.8em;
    }

    .slider::before {
        height: 1.2em;
        width: 1.2em;
    }
}

/* ---- Small screens (361px - 480px) ---- */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 20px;
        gap: 4px;
    }

    .navbar-link .link-text {
        display: none;
    }

    .navbar-link {
        padding: 8px 10px;
    }

    .navbar-spacer {
        display: none;
    }

    .switch {
        font-size: 14px;
        width: 2.8em;
        height: 1.6em;
    }

    .slider::before {
        height: 1.1em;
        width: 1.1em;
    }
}

/* ---- Small screens (361px - 767px) ---- */
@media (min-width: 361px) and (max-width: 767px) {
    .page-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .store-btn {
        max-width: 200px;
    }

    .store-btn-inner {
        padding: 9px 20px;
        min-height: 46px;
    }

    .store-btn-icon {
        width: 19px;
    }

    .store-btn-title {
        font-size: 0.9rem;
    }
}

/* ---- Medium screens (>=768px) ---- */
@media (min-width: 768px) {
    .page-container {
        padding: 0 32px;
    }

    .hero-section {
        padding-top: 120px;
    }

    .modal-overlay {
        align-items: center;
    }

    .modal-content {
        border-radius: var(--radius-xl);
        border-bottom: 1px solid var(--glass-border);
        max-height: 80vh;
        transform: translateY(40px) scale(0.95);
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0) scale(1);
    }
}

/* ---- Medium-large screens (768px - 1023px) ---- */
@media (min-width: 768px) and (max-width: 1023px) {
    .page-container {
        max-width: 700px;
    }

    .store-btn {
        max-width: 220px;
    }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 36px;
    }

    .app-icon-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 26px;
    }

    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    .download-section {
        margin-bottom: 28px;
    }

    .features-section {
        margin-bottom: 36px;
    }

    .features-grid {
        gap: 14px;
    }

    .feature-card {
        padding: 22px 16px;
    }

    .section-title {
        font-size: 19px;
    }

    .blob-1 { width: 500px; height: 500px; }
    .blob-2 { width: 450px; height: 450px; }
    .blob-3 { width: 380px; height: 380px; }
    .blob-4 { width: 320px; height: 320px; }
}

/* ---- Large screens (>=1024px) ---- */
@media (min-width: 1024px) {
    .page-container {
        max-width: 480px;
        padding-top: 80px;
    }

    .navbar {
        top: 16px;
        padding: 12px 28px;
    }

    .store-btn {
        max-width: 240px;
    }

    .store-btn-inner {
        padding: 12px 24px;
        min-height: 52px;
    }

    .store-btn-icon {
        width: 22px;
    }

    .store-btn-title {
        font-size: 1.05rem;
    }

    .hero-section {
        padding-top: 130px;
        padding-bottom: 40px;
    }

    .app-icon-wrapper {
        width: 110px;
        height: 110px;
        margin-bottom: 28px;
    }

    .app-icon {
        width: 110px;
        height: 110px;
        border-radius: 26px;
    }

    .download-section {
        margin-bottom: 32px;
    }

    .features-section {
        margin-bottom: 40px;
    }

    .features-grid {
        gap: 14px;
    }

    .feature-card {
        padding: 24px 18px;
    }

    .blob-1 { width: 600px; height: 600px; }
    .blob-2 { width: 500px; height: 500px; }
    .blob-3 { width: 450px; height: 450px; }
    .blob-4 { width: 400px; height: 400px; }
}

/* ---- Extra large screens (>=1440px) ---- */
@media (min-width: 1440px) {
    .page-container {
        max-width: 520px;
    }

    .app-icon-wrapper {
        width: 116px;
        height: 116px;
    }

    .app-icon {
        width: 116px;
        height: 116px;
    }

    .feature-card {
        padding: 28px 20px;
    }
}

/* ---- Landscape (short height) ---- */
@media (orientation: landscape) and (max-height: 500px) {
    .navbar {
        padding: 4px 10px;
        top: 8px;
    }

    .navbar-logo {
        width: 46px;
        height: 46px;
    }

    .navbar-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .page-container {
        padding: 10px 20px;
        min-height: auto;
    }

    .hero-section {
        padding-top: 10px;
        padding-bottom: 16px;
    }

    .app-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .app-version {
        font-size: 12px;
    }

    .download-section {
        margin-bottom: 16px;
    }

    .download-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .store-btn {
        max-width: 180px;
    }

    .store-btn-inner {
        padding: 8px 16px;
        min-height: 40px;
    }

    .store-btn-icon {
        width: 16px;
    }

    .store-btn-title {
        font-size: 0.8rem;
    }

    .features-section {
        margin-bottom: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .feature-card {
        padding: 12px 8px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }

    .feature-title {
        font-size: 11px;
    }

    .feature-desc {
        display: none;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .modal-content {
        max-height: 90vh;
    }

    .modal-header {
        padding: 12px 24px 8px;
    }

    .modal-title {
        font-size: 16px;
    }

    .blob-1, .blob-2, .blob-3, .blob-4 {
        width: 300px;
        height: 300px;
    }
}

@media (orientation: landscape) and (min-height: 501px) and (max-width: 767px) {
    .page-container {
        max-width: 600px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   16. ACCESSIBILITY & EDGE CASES
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .liquid-blob {
        filter: blur(80px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .liquid-blob,
    .app-icon-glow {
        animation: none !important;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .liquid-background,
    .noise-overlay,
    .switch,
    .browser-tip-overlay,
    .toast-container {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        border: 1px solid #ccc;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@supports not (backdrop-filter: blur(24px)) {
    .glass-card,
    .store-btn-inner {
        background: rgba(30, 28, 60, 0.9);
    }
}

@media (hover: none) and (pointer: coarse) {
    .store-btn:active {
        transform: scale(0.97);
    }

    .feature-card:active {
        transform: scale(0.98);
    }
}

@media (forced-colors: active) {
    .glass-card {
        border: 1px solid CanvasText;
        background: Canvas;
    }

    .store-btn {
        border: 1px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }
}
