/* ===========================================
   Copecount - Brand New Design
   Inspired by Alcove's sleek aesthetics
   =========================================== */

:root {
    /* Functional Colors - Data Indicators */
    --color-positive: #34C759;      /* Gains - macOS system green */
    --color-negative: #FF3B30;      /* Losses - macOS system red */
    --color-interactive: #007AFF;   /* Links, buttons - macOS system blue */

    /* Brand Accent */
    --electric-lime: #7CB800;       /* Primary brand color */
    --fire-coral: #FF5722;          /* Secondary accent */

    /* Light Theme */
    --bg-primary: #FAFBFC;
    --bg-secondary: #F0F2F5;
    --bg-tertiary: #E8EBF0;
    --card-surface: #FFFFFF;

    /* Text */
    --text-primary: #1A1F36;
    --text-secondary: rgba(26, 31, 54, 0.7);
    --text-tertiary: rgba(26, 31, 54, 0.5);

    /* Effects */
    --border-color: rgba(26, 31, 54, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glow-lime: rgba(124, 184, 0, 0.25);
    --glow-blue: rgba(0, 122, 255, 0.15);
}

/* Dark mode - respects system preference */
@media (prefers-color-scheme: dark) {
    :root {
        /* Adjusted for dark backgrounds */
        --color-positive: #32D74B;
        --color-negative: #FF453A;
        --color-interactive: #0A84FF;

        --electric-lime: #8FD014;

        --bg-primary: #0D0D0D;
        --bg-secondary: #1A1A1A;
        --bg-tertiary: #2A2A2A;
        --card-surface: #1C1C1E;

        --text-primary: #F5F5F7;
        --text-secondary: rgba(245, 245, 247, 0.7);
        --text-tertiary: rgba(245, 245, 247, 0.5);

        --border-color: rgba(255, 255, 255, 0.1);
        --glass-bg: rgba(28, 28, 30, 0.9);
        --glow-lime: rgba(143, 208, 20, 0.2);
        --glow-blue: rgba(10, 132, 255, 0.15);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Headings use Outfit - modern, rounded, premium feel */
h1, h2, h3, h4, h5, h6,
.logo-text,
.hero h1,
.feature-title,
.cta-section h2,
.download-container h1,
.btn,
.nav-link,
.footer-brand-text span,
.portfolio-value,
.price-tag {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===========================================
   Background Effects - Animated Gradient Orbs
   GPU-accelerated for smooth 60fps performance
   =========================================== */

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    will-change: auto;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--glow-lime), transparent 60%);
    animation: floatOrb1 25s ease-in-out infinite;
    filter: blur(100px);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--glow-blue), transparent 60%);
    animation: floatOrb2 30s ease-in-out infinite;
    filter: blur(100px);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(8%, 12%, 0) scale(1.05); }
    66% { transform: translate3d(-3%, 6%, 0) scale(0.98); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-10%, -8%, 0) scale(1.03); }
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(26, 31, 54, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 31, 54, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

/* ===========================================
   Header - Sleek Fixed Navigation
   =========================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    header.scrolled {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.logo-icon-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.logo:hover .logo-icon-img {
    transform: rotate(-8deg) scale(1.05);
    border-color: var(--electric-lime);
    box-shadow: 0 0 30px var(--glow-lime);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    background: rgba(160, 231, 0, 0.15);
    color: var(--electric-lime);
    border-radius: 8px;
    border: 1px solid rgba(160, 231, 0, 0.3);
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover .version-badge {
    background: rgba(160, 231, 0, 0.25);
    box-shadow: 0 0 15px rgba(160, 231, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.875rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(26, 31, 54, 0.05);
}

.nav-link.primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 700;
    padding: 0.75rem 1.5rem 0.75rem 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(26, 31, 54, 0.15);
}

.nav-link.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 31, 54, 0.2);
}

.nav-link.primary:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* Nav download button animation - Alcove style */
.nav-download {
    position: relative;
    overflow: hidden;
}

.nav-download .nav-icon-left {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
}

.nav-download:hover .nav-icon-left {
    transform: translateY(-50%) translateX(-100%) scale(0.5);
    opacity: 0;
}

.nav-download .nav-text {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-download:hover .nav-text {
    transform: translateX(-0.5rem);
}

.nav-download .nav-icon-right {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%) translateX(80%);
    width: 18px;
    height: 18px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.nav-download:hover .nav-icon-right {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* ===========================================
   Main Content
   =========================================== */

main {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* ===========================================
   Hero Section - Bold & Snappy Animations
   =========================================== */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
    text-align: center;
}

/* Smooth entrance animations - sleek & professional */
@keyframes heroEnter {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: heroEnter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero h1 .gradient-text {
    background: linear-gradient(
        135deg,
        var(--electric-lime) 0%,
        var(--color-interactive) 50%,
        var(--electric-lime) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: heroEnter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.08s both;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroEnter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.16s both;
}

/* ===========================================
   Buttons - Sleek & Professional
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
    transition: transform 0.08s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding-left: 3.5rem;
    box-shadow:
        0 4px 15px rgba(26, 31, 54, 0.2),
        0 1px 3px rgba(26, 31, 54, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(26, 31, 54, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.btn-primary .btn-icon-left {
    position: absolute;
    left: 1.25rem;
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
    opacity: 1;
}

.btn-primary:hover .btn-icon-left {
    transform: translateX(-100%);
    opacity: 0;
}

.btn-primary .btn-text {
    transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover .btn-text {
    transform: translateX(-0.5rem);
}

.btn-primary .btn-icon-right {
    position: absolute;
    right: 1.25rem;
    transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(80%);
    opacity: 0;
}

.btn-primary:hover .btn-icon-right {
    transform: translateX(0);
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(26, 31, 54, 0.2),
        0 2px 6px rgba(26, 31, 54, 0.08);
}

/* Purchase button - sleek style */
.btn-purchase {
    background: rgba(26, 31, 54, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(26, 31, 54, 0.1);
    padding-left: 3.5rem;
    backdrop-filter: blur(10px);
}

.btn-purchase:hover {
    background: rgba(26, 31, 54, 0.07);
    border-color: rgba(26, 31, 54, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-purchase .purchase-icon {
    position: absolute;
    left: 1.125rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-purchase .purchase-badge {
    width: 22px;
    height: 22px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Badge rotates on hover */
.btn-purchase:hover .purchase-badge {
    animation: rotateBadge 4s linear infinite;
}

/* Badge color - must use !important to override SVG defaults */
.btn-purchase .purchase-badge path {
    fill: rgba(26, 31, 54, 0.35) !important;
    transition: fill 0.3s ease;
}

.btn-purchase:hover .purchase-badge path {
    fill: #FF5722 !important;
}

@keyframes rotateBadge {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.price-tag {
    margin-left: 1rem;
    padding: 0.4rem 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ===========================================
   App Preview - Interactive Showcase
   =========================================== */

.app-preview {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    position: relative;
    animation: previewEnter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.24s both;
}

@keyframes previewEnter {
    0% {
        opacity: 0;
        transform: translateY(32px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-container {
    position: relative;
    background: var(--card-surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(26, 31, 54, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 16px 48px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.preview-container:hover {
    box-shadow:
        0 0 0 1px rgba(26, 31, 54, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 24px 64px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Menu bar mockup - macOS style */
.menu-bar {
    background: linear-gradient(180deg, #f5f5f7, #e8e8ed);
    padding: 0.6rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.85);
}


.menu-bar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: rgba(0, 0, 0, 0.7);
}

.apple-menu {
    font-size: 1.1rem;
}

.menu-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-bar-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(0, 0, 0, 0.6);
}

.copecount-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(52, 199, 89, 0.12);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.copecount-indicator:hover {
    opacity: 0.8;
}

.copecount-indicator:active {
    transform: scale(0.97);
}

.copecount-indicator svg {
    width: 12px;
    height: 12px;
    color: var(--color-positive);
}

.copecount-indicator span {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    color: var(--color-positive);
    font-weight: 600;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Total mode indicator - neutral color */
.copecount-indicator.total-mode {
    background: rgba(0, 0, 0, 0.06);
}

.copecount-indicator.total-mode svg,
.copecount-indicator.total-mode span {
    color: rgba(0, 0, 0, 0.85);
}

/* Watch mode menu bar indicator */
.copecount-watch-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.copecount-watch-indicator:hover {
    opacity: 0.8;
}

.copecount-watch-indicator:active {
    transform: scale(0.97);
}

.watch-coin {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.watch-coin img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.watch-coin .watch-price {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: rgba(0, 0, 0, 0.85);
}

.watch-coin .watch-price.up {
    color: var(--color-positive);
}

.watch-coin .watch-price.down {
    color: var(--color-negative);
}

/* Desktop area - wallpaper style */
.desktop-area {
    height: 420px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(124, 184, 0, 0.25), transparent 45%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 122, 255, 0.15), transparent 45%),
        radial-gradient(ellipse at 90% 30%, rgba(255, 87, 34, 0.1), transparent 40%),
        linear-gradient(135deg, #e8f4fc, #f0f7ff, #fef9f3);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.25rem;
    position: relative;
}


/* Dropdown mockup - native macOS style popup */
.dropdown-mockup {
    width: 340px;
    background: rgba(246, 246, 246, 0.92);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: dropdownSlide 0.4s cubic-bezier(0.32, 0.72, 0, 1) 0.6s both;
    color: var(--text-primary);
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}


@keyframes dropdownSlide {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    padding: 1rem 1rem 0.875rem;
    text-align: center;
    background: transparent;
}

/* Mode picker - native macOS segmented control */
.mode-picker {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 2px;
    margin-bottom: 0.875rem;
    gap: 2px;
    position: relative;
}

.mode-btn {
    flex: 1;
    padding: 0.3rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.mode-btn:hover {
    color: rgba(0, 0, 0, 0.75);
}

.mode-btn.active {
    background: white;
    color: rgba(0, 0, 0, 0.88);
    box-shadow:
        0 0.5px 1px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* Watch mode header */
.watch-header {
    margin-top: 0.25rem;
}

.watch-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.125rem;
    margin-bottom: 0.5rem;
}

.watch-header-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.watch-header-buttons {
    display: flex;
    gap: 3px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 5px;
    padding: 2px;
}

.watch-toggle-btn {
    padding: 0.2rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: all 0.15s ease;
}

.watch-toggle-btn:hover {
    color: rgba(0, 0, 0, 0.65);
}

.watch-toggle-btn.active {
    background: white;
    color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.watchlist-items {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Watchlist rows - native macOS style */
.watchlist-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 6px;
    transition: background 0.12s ease;
    cursor: pointer;
    margin: 0 -0.125rem;
}

.watchlist-row .watchlist-right {
    margin-left: auto;
}

.watchlist-row:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Coin icons */
.coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.position-row .coin-icon {
    width: 28px;
    height: 28px;
}

.watchlist-left {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.watchlist-symbol {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.88);
    letter-spacing: -0.01em;
}

.watchlist-name {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.38);
    font-weight: 400;
}

.watchlist-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.watchlist-price {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: rgba(0, 0, 0, 0.88);
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.watchlist-change {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
}

.watchlist-change.up {
    color: var(--color-positive);
}

.watchlist-change.down {
    color: var(--color-negative);
}

/* Watch mode footer */
.watch-footer {
    padding: 0.625rem 0.875rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
}

.add-watch-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.75rem;
    color: #007AFF;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.12s ease;
    padding: 0.375rem 0.5rem;
    border-radius: 5px;
    margin: -0.375rem -0.5rem;
}

.add-watch-btn:hover {
    opacity: 0.7;
}

.add-watch-btn svg {
    color: #007AFF;
    width: 13px;
    height: 13px;
}

.watch-footer .footer-icons {
    display: flex;
    gap: 0.25rem;
}

.watch-footer .footer-icon {
    width: 26px;
    height: 26px;
    padding: 0.375rem;
    border-radius: 5px;
    color: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.12s ease;
}

.watch-footer .footer-icon:hover {
    color: rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.05);
}

/* Flash animations for live price updates */
.flash-up {
    color: var(--color-positive) !important;
    animation: flashGreen 0.4s ease;
}

.flash-down {
    color: var(--color-negative) !important;
    animation: flashRed 0.4s ease;
}

@keyframes flashGreen {
    0%, 100% { background: transparent; }
    50% { background: rgba(52, 199, 89, 0.15); }
}

@keyframes flashRed {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 59, 48, 0.15); }
}

.portfolio-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.portfolio-value {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(0, 0, 0, 0.88);
    letter-spacing: -0.02em;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.stat {
    text-align: center;
}

.stat-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.6rem;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 0.125rem;
}

.stat-value {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(0, 0, 0, 0.8);
    letter-spacing: -0.01em;
}

.stat-value.positive {
    color: var(--color-positive);
}

.stat-value.negative {
    color: var(--color-negative);
}

/* Position rows - native macOS style */
.positions-list {
    padding: 0.25rem 0;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.position-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    transition: background 0.12s ease;
    cursor: pointer;
    margin: 0 0.125rem;
    border-radius: 6px;
}

.position-row .position-right {
    margin-left: auto;
}

.position-row:hover {
    background: rgba(0, 0, 0, 0.04);
}

.position-left {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.position-symbol {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.position-symbol span:first-child {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.88);
    letter-spacing: -0.01em;
}

.position-qty {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.35);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

.position-price {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.45);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

/* Price-only mode (Total view) - price moves to the right, larger */
.position-price.price-only {
    display: none;
}

.position-right.price-mode {
    justify-content: center;
}

.position-right.price-mode .position-value,
.position-right.price-mode .position-pl {
    display: none !important;
}

.position-right.price-mode::after {
    content: attr(data-price);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    color: rgba(0, 0, 0, 0.88);
}

.position-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.position-value {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: rgba(0, 0, 0, 0.88);
    letter-spacing: -0.01em;
}

.position-pl {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.65rem;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.position-pl.positive {
    color: var(--color-positive);
}

.position-pl.negative {
    color: var(--color-negative);
}

/* Ticker - native macOS style */
.ticker-container {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 0.875rem;
    background: rgba(0, 0, 0, 0.025);
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.ticker-change {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ticker-change.up {
    color: var(--color-positive);
}

.ticker-change.down {
    color: var(--color-negative);
}

.dropdown-footer {
    padding: 0.625rem 0.875rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
}

.add-position-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.75rem;
    color: #007AFF;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.12s ease;
    padding: 0.375rem 0.5rem;
    border-radius: 5px;
    margin: -0.375rem -0.5rem;
}

.add-position-btn:hover {
    opacity: 0.7;
}

.add-position-btn svg {
    width: 13px;
    height: 13px;
}

.footer-icons {
    display: flex;
    gap: 0.25rem;
}

.dropdown-mockup .footer-icon {
    width: 26px;
    height: 26px;
    padding: 0.375rem;
    border-radius: 5px;
    color: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.12s ease;
}

.dropdown-mockup .footer-icon:hover {
    color: rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.05);
}

/* Interactive hint */
.preview-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.preview-hint svg {
    width: 16px;
    height: 16px;
    animation: cursorBlink 1.5s ease-in-out infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

/* ===========================================
   Features Section - Card Grid
   =========================================== */

.features {
    max-width: 1200px;
    margin: 10rem auto;
    padding: 0 2rem;
    scroll-margin-top: 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    visibility: visible;
    opacity: 1 !important;
    transform: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(26, 31, 54, 0.12);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card:active {
    transform: translateY(-3px) !important;
    transition: transform 0.1s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--electric-lime), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(160, 231, 0, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(160, 231, 0, 0.15);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    background: rgba(160, 231, 0, 0.12);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--electric-lime);
    transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.05);
}

/* All feature cards use consistent brand color */

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===========================================
   CTA Section
   =========================================== */

.cta-section {
    max-width: 900px;
    margin: 10rem auto;
    padding: 5rem 2rem;
    text-align: center;
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 36px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(124, 184, 0, 0.06), transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(0, 153, 204, 0.05), transparent 40%);
    animation: ctaRotate 45s linear infinite;
    will-change: transform;
}

@keyframes ctaRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   Footer
   =========================================== */

footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

@media (prefers-color-scheme: dark) {
    footer {
        background: rgba(26, 26, 26, 0.8);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

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

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

    .footer-nav {
        justify-content: center;
    }
}

/* ===========================================
   Animations & Effects
   =========================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glow effect for interactive elements */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: inherit;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.glow-on-hover:hover::after {
    opacity: 0.5;
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(26, 31, 54, 0.05),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===========================================
   Download Page
   =========================================== */

.download-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 4rem;
}

.download-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* App icon with animation */
.app-icon-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 3rem;
    perspective: 1000px;
}

.app-icon-img {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    position: relative;
    animation: iconFloat 4s ease-in-out infinite;
    box-shadow:
        0 30px 80px rgba(124, 184, 0, 0.2),
        0 0 0 1px rgba(26, 31, 54, 0.05) inset;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-icon-wrapper:hover .app-icon-img {
    animation-play-state: paused;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    25% { transform: translateY(-12px) rotateX(2deg) rotateY(-2deg); }
    75% { transform: translateY(-8px) rotateX(-2deg) rotateY(2deg); }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--electric-lime);
    border-radius: 50%;
    animation: sparkle 2.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--electric-lime);
}

.sparkle:nth-child(1) { top: -15px; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 20%; right: -15px; animation-delay: 0.4s; }
.sparkle:nth-child(3) { bottom: -15px; right: 20%; animation-delay: 0.8s; }
.sparkle:nth-child(4) { top: 30%; left: -15px; animation-delay: 1.2s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1); }
}

.download-container h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Download card */
.download-card {
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    transition: all 0.4s ease;
}

.download-card:hover {
    border-color: rgba(124, 184, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.platform-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.platform-icon {
    width: 56px;
    height: 56px;
    background: rgba(26, 31, 54, 0.03);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.platform-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--text-primary);
}

.platform-details {
    text-align: left;
}

.platform-name {
    font-size: 1.35rem;
    font-weight: 700;
}

.platform-version {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Download button */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    width: 100%;
    padding: 1.35rem 2rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 50px rgba(26, 31, 54, 0.2),
        0 0 0 1px rgba(26, 31, 54, 0.05);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.7s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.4s ease;
}

.download-btn:hover svg {
    animation: downloadBounce 0.6s ease;
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(4px); }
    60% { transform: translateY(-4px); }
}

.download-size {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 1.25rem;
}

/* Requirements */
.requirements {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.requirements h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.requirement-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.requirement-item svg {
    width: 20px;
    height: 20px;
    color: #5A9400;
    flex-shrink: 0;
}

/* Alternative downloads */
.alt-downloads {
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.alt-downloads h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.alt-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.alt-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.alt-link:hover {
    color: var(--text-primary);
    background: rgba(26, 31, 54, 0.03);
    border-color: rgba(124, 184, 0, 0.4);
}

.alt-link svg {
    width: 18px;
    height: 18px;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 3.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.back-link:hover {
    color: var(--text-primary);
    background: rgba(26, 31, 54, 0.03);
}

.back-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Confetti animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0;
}

/* ===========================================
   Responsive Styles
   =========================================== */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.875rem 1rem;
    }

    .header-content {
        gap: 0.5rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon-img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .version-badge {
        display: none;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .nav-link.primary {
        padding: 0.5rem 0.75rem 0.5rem 2rem;
    }

    .nav-download .nav-icon-left {
        left: 0.5rem;
        width: 16px;
        height: 16px;
    }

    .nav-download .nav-icon-right {
        right: 0.5rem;
        width: 16px;
        height: 16px;
    }

    .hero {
        padding: 2rem 1.25rem 3rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        gap: 0.875rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .btn-primary {
        padding-left: 2.75rem;
    }

    .btn-primary .btn-icon-left {
        left: 0.875rem;
    }

    .btn-primary .btn-icon-right {
        right: 0.875rem;
    }

    .btn-purchase {
        padding-left: 2.75rem;
    }

    .btn-purchase .purchase-icon {
        left: 0.875rem;
    }

    .price-tag {
        margin-left: 0.625rem;
        padding: 0.3rem 0.625rem;
        font-size: 0.8rem;
    }

    /* App Preview - Mobile optimizations */
    .app-preview {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }

    .preview-container {
        border-radius: 20px;
    }

    /* Disable parallax on mobile for performance */
    .preview-container:hover {
        transform: none;
    }

    .menu-bar {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .menu-bar-left {
        gap: 0.5rem;
        overflow: hidden;
    }

    .menu-bar-left span:nth-child(n+3) {
        display: none;
    }

    .menu-bar-right {
        gap: 0.5rem;
    }

    .menu-bar-right > span:last-child {
        display: none;
    }

    .menu-bar-item {
        display: none;
    }

    .copecount-indicator {
        padding: 0.25rem 0.5rem;
        gap: 0.3rem;
    }

    .copecount-indicator svg {
        width: 12px;
        height: 12px;
    }

    .copecount-indicator span {
        font-size: 0.7rem;
    }

    .desktop-area {
        height: auto;
        min-height: 320px;
        padding: 1rem;
        justify-content: center;
        align-items: center;
    }

    .dropdown-mockup {
        width: 100%;
        max-width: 300px;
        border-radius: 14px;
    }

    .dropdown-header {
        padding: 1rem;
    }

    .portfolio-label {
        font-size: 0.65rem;
    }

    .portfolio-value {
        font-size: 1.75rem;
    }

    .portfolio-stats {
        gap: 1rem;
        margin-top: 0.75rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    .position-row {
        padding: 0.625rem 0.875rem;
    }

    .position-symbol span:first-child {
        font-size: 0.85rem;
    }

    .position-symbol span:last-child {
        font-size: 0.7rem;
    }

    .position-price {
        font-size: 0.7rem;
    }

    .position-value {
        font-size: 0.85rem;
    }

    .position-pl {
        font-size: 0.7rem;
    }

    .ticker-container {
        padding: 0.5rem 0.875rem;
        gap: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ticker-item {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .dropdown-footer,
    .watch-footer {
        padding: 0.625rem 0.875rem;
    }

    .add-position-btn,
    .add-watch-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }

    .dropdown-mockup .footer-icon,
    .watch-footer .footer-icon {
        width: 28px;
        height: 28px;
        padding: 0.375rem;
    }

    .preview-hint {
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    .preview-hint svg {
        width: 14px;
        height: 14px;
    }

    .features {
        margin: 4rem auto;
        padding: 0 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

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

    .feature-title {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .cta-section {
        margin: 4rem 1rem;
        padding: 2.5rem 1.25rem;
        border-radius: 20px;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .footer-content {
        padding: 2.5rem 1.25rem;
    }

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

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

    .footer-tagline {
        max-width: 100%;
    }

    .footer-nav {
        justify-content: center;
        gap: 2rem;
    }

    .footer-nav-group h4 {
        font-size: 0.7rem;
        margin-bottom: 0.875rem;
    }

    .footer-nav-group ul {
        gap: 0.625rem;
    }

    .footer-nav-group a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 1.75rem;
    }

    .footer-brand-text span {
        font-size: 3.5rem;
    }

    /* Download page */
    .download-main {
        padding: 90px 1.25rem 2.5rem;
    }

    .download-container h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .app-icon-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 2rem;
    }

    .app-icon-img {
        width: 120px;
        height: 120px;
        border-radius: 28px;
    }

    .sparkle {
        width: 8px;
        height: 8px;
    }

    .download-card {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .platform-info {
        gap: 1rem;
        margin-bottom: 1.75rem;
    }

    .platform-icon {
        width: 48px;
        height: 48px;
    }

    .platform-icon svg {
        width: 28px;
        height: 28px;
    }

    .platform-name {
        font-size: 1.15rem;
    }

    .platform-version {
        font-size: 0.8rem;
    }

    .download-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 14px;
    }

    .download-btn svg {
        width: 22px;
        height: 22px;
    }

    .download-size {
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    .requirements {
        margin-top: 1.75rem;
        padding-top: 1.75rem;
    }

    .requirements h3 {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .requirement-list {
        gap: 0.625rem;
    }

    .requirement-item {
        font-size: 0.85rem;
        gap: 0.625rem;
    }

    .requirement-item svg {
        width: 18px;
        height: 18px;
    }

    .back-link {
        margin-top: 2.5rem;
        font-size: 0.9rem;
    }

    /* Legal pages */
    .legal-main {
        padding: 6rem 1.25rem 3rem;
    }

    .legal-main h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .legal-content h2 {
        font-size: 1.1rem;
    }

    .legal-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 0.875rem;
    }

    .logo-icon-img {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .nav-link {
        padding: 0.45rem 0.625rem;
        font-size: 0.8rem;
    }

    .nav-link.primary {
        padding: 0.45rem 0.625rem 0.45rem 1.75rem;
    }

    .nav-download .nav-icon-left {
        left: 0.4rem;
        width: 14px;
        height: 14px;
    }

    .hero {
        padding: 1.5rem 1rem 2.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .btn-primary {
        padding-left: 2.5rem;
    }

    .btn-purchase {
        padding-left: 2.5rem;
    }

    .price-tag {
        margin-left: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .app-preview {
        padding: 0 0.75rem;
    }

    .preview-container {
        border-radius: 16px;
    }

    .menu-bar {
        padding: 0.4rem 0.625rem;
        font-size: 0.65rem;
    }

    .menu-bar-left span:nth-child(n+2) {
        display: none;
    }

    .desktop-area {
        min-height: 280px;
        padding: 0.75rem;
    }

    .dropdown-mockup {
        max-width: 100%;
        border-radius: 12px;
    }

    .dropdown-header {
        padding: 0.875rem;
    }

    .portfolio-value {
        font-size: 1.5rem;
    }

    .portfolio-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .stat {
        min-width: 60px;
    }

    .position-row {
        padding: 0.5rem 0.75rem;
    }

    .ticker-container {
        padding: 0.4rem 0.75rem;
    }

    .dropdown-footer,
    .watch-footer {
        padding: 0.5rem 0.75rem;
    }

    .preview-hint {
        font-size: 0.75rem;
    }

    /* Watch mode mobile adjustments */
    .watch-header-row {
        padding: 0 0.125rem;
    }

    .watch-header-label {
        font-size: 0.6rem;
    }

    .watch-toggle-btn {
        padding: 0.15rem 0.4rem;
        font-size: 0.55rem;
    }

    .watchlist-row {
        padding: 0.4rem 0.5rem;
    }

    .watchlist-symbol {
        font-size: 0.85rem;
    }

    .watchlist-name {
        font-size: 0.65rem;
    }

    .watchlist-price {
        font-size: 0.85rem;
    }

    .watchlist-change {
        font-size: 0.6rem;
    }

    .features {
        margin: 3rem auto;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.875rem;
    }

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

    .feature-title {
        font-size: 1.05rem;
    }

    .feature-description {
        font-size: 0.85rem;
    }

    .cta-section {
        margin: 3rem 0.75rem;
        padding: 2rem 1rem;
        border-radius: 16px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 2rem 1rem;
    }

    .footer-top {
        gap: 1.5rem;
    }

    .footer-logo .logo-icon-img {
        width: 36px;
        height: 36px;
    }

    .footer-logo .logo-text {
        font-size: 1.15rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-brand-text span {
        font-size: 2.5rem;
    }

    /* Download page - extra small */
    .download-main {
        padding: 85px 1rem 2rem;
    }

    .download-container h1 {
        font-size: 1.75rem;
    }

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

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

    .download-card {
        padding: 1.25rem;
    }

    .platform-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .platform-details {
        text-align: center;
    }

    .download-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Legal pages - extra small */
    .legal-main {
        padding: 5.5rem 1rem 2.5rem;
    }

    .legal-main h1 {
        font-size: 1.75rem;
    }

    .legal-content {
        padding: 1.25rem;
    }

    .legal-content h2 {
        font-size: 1rem;
    }

    .legal-content p,
    .legal-content li {
        font-size: 0.85rem;
    }
}

/* Legal pages (Privacy, Terms) */
.legal-main {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    justify-content: center;
}

.legal-container {
    max-width: 680px;
    width: 100%;
}

.legal-main h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.legal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content a {
    color: var(--electric-lime);
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}
