/* PayTicker — Premium Fintech Landing Page
   Typography: Instrument Serif (display) + Sora (body)
   Aesthetic: Luxury fintech meets editorial design */

:root {
    /* Brand Colors */
    --brand-blue: #60A5FA;
    --brand-blue-deep: #2563EB;
    --brand-blue-glow: rgba(96, 165, 250, 0.15);
    --success-green: #22C55E;
    --money-green: #22C55E;
    --money-glow: rgba(34, 197, 94, 0.2);
    --accent-gold: #FBBF24;

    /* Backgrounds */
    --bg-primary: #0A0F1A;
    --bg-secondary: #111827;
    --bg-tertiary: #1F2937;
    --bg-elevated: rgba(17, 24, 39, 0.8);

    /* Text */
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* Surfaces */
    --card-bg: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(255, 255, 255, 0.12);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 1000px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #FAFBFC;
        --bg-secondary: #FFFFFF;
        --bg-tertiary: #F3F4F6;
        --bg-elevated: rgba(255, 255, 255, 0.9);
        --text-primary: #111827;
        --text-secondary: #4B5563;
        --text-muted: #9CA3AF;
        --card-bg: rgba(255, 255, 255, 0.8);
        --card-border: rgba(0, 0, 0, 0.06);
        --card-border-hover: rgba(0, 0, 0, 0.1);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--success-green) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brand-blue-deep) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@media (prefers-color-scheme: light) {
    .gradient-orb { opacity: 0.15; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.4s var(--ease-out-expo);
}

nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease-out-expo);
    z-index: -1;
}

nav.scrolled::before {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--card-border);
}

nav.scrolled {
    padding: var(--space-sm) 0;
}

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

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.925rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md) !important;
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: all 0.3s var(--ease-out-expo) !important;
}

.btn-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-nav svg {
    width: 16px;
    height: 16px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue), var(--success-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

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

.btn-ghost:hover {
    border-color: var(--text-secondary);
    background: var(--card-bg);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.05rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--card-border);
}

/* Hero Visual - Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    transform: rotateY(-2deg) rotateX(2deg);
    transform-style: preserve-3d;
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    /* Titanium-like frame */
    background: linear-gradient(
        145deg,
        #2A2A2E 0%,
        #1C1C1E 20%,
        #3A3A3C 50%,
        #1C1C1E 80%,
        #2A2A2E 100%
    );
    border-radius: 52px;
    padding: 10px;
    /* Realistic shadows and highlights */
    box-shadow:
        /* Outer glow */
        0 0 0 1px rgba(255, 255, 255, 0.08),
        /* Inner highlight */
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3),
        /* Main shadow */
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 50px 100px -20px rgba(0, 0, 0, 0.4),
        /* Subtle ambient */
        0 0 80px rgba(96, 165, 250, 0.1);
}

/* Frame edge highlight */
.phone-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 52px;
    padding: 1px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 40%,
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Side Buttons */
.phone-button {
    position: absolute;
    background: linear-gradient(
        to right,
        #1C1C1E 0%,
        #3A3A3C 50%,
        #1C1C1E 100%
    );
    border-radius: 2px;
    z-index: 5;
}

.phone-button-silent {
    left: -3px;
    top: 120px;
    width: 3px;
    height: 28px;
    border-radius: 2px 0 0 2px;
    box-shadow:
        -1px 0 2px rgba(0, 0, 0, 0.3),
        inset 1px 0 1px rgba(255, 255, 255, 0.1);
}

.phone-button-volume-up {
    left: -3px;
    top: 170px;
    width: 3px;
    height: 44px;
    border-radius: 2px 0 0 2px;
    box-shadow:
        -1px 0 2px rgba(0, 0, 0, 0.3),
        inset 1px 0 1px rgba(255, 255, 255, 0.1);
}

.phone-button-volume-down {
    left: -3px;
    top: 224px;
    width: 3px;
    height: 44px;
    border-radius: 2px 0 0 2px;
    box-shadow:
        -1px 0 2px rgba(0, 0, 0, 0.3),
        inset 1px 0 1px rgba(255, 255, 255, 0.1);
}

.phone-button-power {
    right: -3px;
    top: 180px;
    width: 3px;
    height: 64px;
    border-radius: 0 2px 2px 0;
    box-shadow:
        1px 0 2px rgba(0, 0, 0, 0.3),
        inset -1px 0 1px rgba(255, 255, 255, 0.1);
}

/* Dynamic Island */
.phone-dynamic-island {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 30px;
    background: #000;
    border-radius: 18px;
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    border-radius: 44px;
    overflow: hidden;
    /* Screen bezel effect */
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.8),
        inset 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Screen glass reflection */
.phone-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 44px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    z-index: 100;
}

.phone-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(
        ellipse at 50% 30%,
        var(--brand-blue-glow) 0%,
        rgba(96, 165, 250, 0.05) 40%,
        transparent 70%
    );
    z-index: -1;
    animation: phone-glow 4s ease-in-out infinite;
}

@keyframes phone-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

/* Home indicator */
.phone-screen::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    z-index: 50;
}

/* App UI Inside Phone */

/* Status bar - flanks Dynamic Island like iPhone 16 Pro */
.app-status-bar {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 32px;
    z-index: 15;
}

.app-status-bar-center {
    width: 110px;
    flex-shrink: 0;
}

.app-time {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.app-indicators {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary);
}

.app-content {
    padding: 0 16px;
    padding-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hero Card - Main dashboard component */
.app-hero-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Location Header */
.app-location-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-building-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.05));
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
}

.app-location-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-location-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.app-location-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

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

.status-dot.active {
    background: var(--success-green);
    box-shadow: 0 0 8px var(--money-glow);
    animation: pulse 2s ease-in-out infinite;
}

/* Today's Pay */
.app-today-pay {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-pay-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.app-pay-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* Clock Button */
.app-clock-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--brand-blue), #3B82F6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.25);
}

.app-clock-button.active {
    background: linear-gradient(135deg, var(--brand-blue), #2563EB);
}

.app-clock-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(96, 165, 250, 0.35);
}

.app-clock-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-clock-text {
    flex: 1;
    text-align: left;
}

.app-clock-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.app-clock-chevron {
    opacity: 0.9;
}

/* Status Badges */
.app-status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

.app-badge svg {
    color: var(--brand-blue);
    flex-shrink: 0;
}

/* AI Assistant Card */
.app-ai-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px;
}

.app-ai-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
}

.app-ai-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.app-ai-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.app-ai-tip {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: animate-in 0.8s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes animate-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marquee Section */
.marquee-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-dot {
    color: var(--brand-blue);
    font-size: 0.5rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--brand-blue-glow);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-header h2 em {
    font-style: normal;
}

/* Features Section */
.features {
    padding: var(--space-4xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-blue-glow), transparent);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Feature Visuals */
.feature-visual {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.tick-demo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-green);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px var(--money-glow);
}

.tick-dollar {
    opacity: 0.5;
}

.building-demo {
    position: relative;
    width: 100px;
    height: 80px;
}

.building-outline {
    width: 100%;
    height: 100%;
}

.building-footprint {
    stroke: var(--brand-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: rgba(96, 165, 250, 0.1);
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-footprint 2s var(--ease-out-expo) forwards;
    animation-play-state: paused;
}

.feature-card.visible .building-footprint {
    animation-play-state: running;
}

@keyframes draw-footprint {
    0% {
        stroke-dashoffset: 300;
        fill: rgba(96, 165, 250, 0);
    }
    70% {
        stroke-dashoffset: 0;
        fill: rgba(96, 165, 250, 0);
    }
    100% {
        stroke-dashoffset: 0;
        fill: rgba(96, 165, 250, 0.15);
    }
}

.building-trace {
    stroke: var(--brand-blue);
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 10 230;
    animation: trace-building 10s linear 2s infinite;
    animation-play-state: paused;
}

.feature-card.visible .building-trace {
    animation-play-state: running;
}

/* Head - brightest */
.building-trace.t1 {
    stroke-width: 3;
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--brand-blue));
}

/* Tail segments - progressively fading, offset behind */
.building-trace.t2 {
    stroke-width: 3;
    opacity: 0.7;
    animation-delay: 2.1s;
}

.building-trace.t3 {
    stroke-width: 2.5;
    opacity: 0.45;
    animation-delay: 2.2s;
}

.building-trace.t4 {
    stroke-width: 2;
    opacity: 0.25;
    animation-delay: 2.3s;
}

.building-trace.t5 {
    stroke-width: 1.5;
    opacity: 0.1;
    animation-delay: 2.4s;
}

@keyframes trace-building {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -240; }
}

.forecast-demo {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    width: 100%;
}

.forecast-bar {
    flex: 1;
    background: var(--brand-blue);
    border-radius: 4px;
    opacity: 0.6;
    height: var(--height);
    transform: scaleY(0);
    transform-origin: bottom;
}

.feature-card.visible .forecast-bar {
    animation: bar-rise 1.5s var(--ease-out-expo) forwards, bar-pulse 3s ease-in-out 1.5s infinite;
}

.feature-card.visible .forecast-bar:nth-child(1) { animation-delay: 0s, 1.5s; }
.feature-card.visible .forecast-bar:nth-child(2) { animation-delay: 0.15s, 1.9s; }
.feature-card.visible .forecast-bar:nth-child(3) { animation-delay: 0.3s, 2.3s; }
.feature-card.visible .forecast-bar:nth-child(4) { animation-delay: 0.45s, 2.7s; }
.feature-card.visible .forecast-bar:nth-child(5) { animation-delay: 0.6s, 3.1s; }

.forecast-bar.predicted {
    background: linear-gradient(180deg, var(--success-green), var(--brand-blue));
    opacity: 1;
}

.feature-card.visible .forecast-bar.predicted {
    animation: bar-rise 1.5s var(--ease-out-expo) forwards, bar-pulse-glow 2.5s ease-in-out 2.1s infinite;
}

@keyframes bar-rise {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

@keyframes bar-pulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1.15);
        opacity: 0.9;
    }
}

@keyframes bar-pulse-glow {
    0%, 100% {
        transform: scaleY(1);
        box-shadow: 0 0 15px var(--money-glow);
        filter: brightness(1);
    }
    50% {
        transform: scaleY(1.2);
        box-shadow: 0 0 30px var(--money-glow);
        filter: brightness(1.2);
    }
}

/* How It Works Section */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.step {
    padding: var(--space-xl);
    opacity: 0;
    transform: translateY(40px);
}

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

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--card-border);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: var(--space-md);
    font-variant-numeric: tabular-nums;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: var(--space-4xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    opacity: 0;
    transform: translateY(40px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand-blue), var(--success-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* CTA Section */
.cta-section {
    padding: var(--space-4xl) 0;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(34, 197, 94, 0.1));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl);
    text-align: center;
    overflow: hidden;
}

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

.cta-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.cta-note {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-earnings {
    position: absolute;
    inset: 0;
}

.floating-earnings span {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success-green);
    opacity: 0;
    animation: float-up 3s ease-out infinite;
}

.floating-earnings span:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-earnings span:nth-child(2) { left: 25%; animation-delay: 0.6s; }
.floating-earnings span:nth-child(3) { left: 50%; animation-delay: 1.2s; }
.floating-earnings span:nth-child(4) { left: 70%; animation-delay: 1.8s; }
.floating-earnings span:nth-child(5) { left: 85%; animation-delay: 2.4s; }

@keyframes float-up {
    0% {
        bottom: 0;
        opacity: 0;
        transform: translateY(0);
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Footer */
footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-links-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--card-border);
}

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

.footer-social {
    display: flex;
    gap: var(--space-md);
}

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

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

/* Scroll Animations */
[data-scroll] {
    transition: all 0.8s var(--ease-out-expo);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        backdrop-filter: blur(20px);
        padding: var(--space-lg);
        flex-direction: column;
        gap: var(--space-md);
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .stat-divider {
        display: none;
    }

    .phone-mockup {
        transform: none;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
        border-radius: 44px;
        padding: 8px;
    }

    .phone-screen {
        border-radius: 38px;
    }

    .phone-dynamic-island {
        width: 80px;
        height: 26px;
        top: 12px;
    }

    .app-status-bar {
        top: 10px;
        padding: 0 18px;
        height: 28px;
    }

    .app-status-bar-center {
        width: 92px;
    }

    .app-time {
        font-size: 14px;
    }

    .app-content {
        padding-top: 48px;
    }

    .phone-button-silent { top: 100px; height: 24px; }
    .phone-button-volume-up { top: 140px; height: 36px; }
    .phone-button-volume-down { top: 186px; height: 36px; }
    .phone-button-power { top: 150px; height: 52px; }

    .app-pay-amount {
        font-size: 24px;
    }

    .app-hero-card {
        padding: 12px;
        gap: 12px;
    }

    .app-building-badge {
        width: 36px;
        height: 36px;
    }

    .app-clock-button {
        padding: 10px 14px;
    }

    .app-ai-card {
        padding: 10px;
    }

    .cta-card {
        padding: var(--space-2xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
