:root {
    --color-red: #c41e3a;
    --color-red-bright: #e63950;
    --color-blue: #1e3a8a;
    --color-blue-bright: #3b5bdb;
    --color-purple: #5c3d99;
    --color-bg: #030308;
    --color-bg-elevated: #0a0a12;
    --color-text: #ffffff;
    --color-text-dim: rgba(255, 255, 255, 0.6);
    --color-text-muted: rgba(255, 255, 255, 0.4);
    --gradient-brand: linear-gradient(135deg, var(--color-red) 0%, var(--color-purple) 50%, var(--color-blue) 100%);
    --gradient-brand-vibrant: linear-gradient(135deg, var(--color-red-bright) 0%, var(--color-blue-bright) 100%);
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated mesh gradient background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(196, 30, 58, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(92, 61, 153, 0.2) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    33% { 
        background-position: 30% 20%, 70% 80%, 40% 60%;
    }
    66% { 
        background-position: 10% 40%, 90% 60%, 60% 40%;
    }
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: -0.05em;
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.03em;
}

.nav-download {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.nav-download:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    position: relative;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gradient-brand-vibrant);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .gradient-text {
    background: var(--gradient-brand-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .outline-text {
    -webkit-text-stroke: 1.5px var(--color-text);
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-dim);
    max-width: 440px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-brand-vibrant);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(196, 30, 58, 0.4);
}

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

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

.btn-ghost {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.btn-ghost:hover {
    color: var(--color-text);
}

.btn-ghost svg {
    width: 16px;
    height: 16px;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Phone Display */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-container {
    position: relative;
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.phone-container:hover {
    transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

.phone {
    width: 280px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 14px;
    position: relative;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.1),
        0 60px 100px -30px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.phone::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9/19.5;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating elements around phone */
.float-element {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.float-1 {
    top: 10%;
    right: -20%;
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    bottom: 20%;
    left: -30%;
    animation: float 6s ease-in-out infinite 2s;
}

.float-3 {
    top: 50%;
    right: -40%;
    animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-10px) rotate(2deg); opacity: 0.7; }
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gradient-brand-vibrant);
    border-radius: 50%;
}

.spark-1 { top: 5%; left: 10%; animation: sparkle 3s ease-in-out infinite; }
.spark-2 { top: 30%; right: 5%; animation: sparkle 3s ease-in-out infinite 1s; }
.spark-3 { bottom: 15%; left: 5%; animation: sparkle 3s ease-in-out infinite 2s; }

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

/* Stats strip */
.stats-strip {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 4rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-brand-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

/* How it works */
.how-section {
    padding: 10rem 2rem;
    position: relative;
}

.how-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 6rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

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

.step-card {
    position: relative;
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-brand-vibrant);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-8px);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-dim);
}

/* Features section */
.features-section {
    padding: 10rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(92, 61, 153, 0.05) 50%, transparent 100%);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.features-visual {
    position: relative;
}

.feature-image-stack {
    position: relative;
}

.feature-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
}

.feature-img img {
    width: 100%;
    display: block;
}

.feature-img-1 {
    position: relative;
    z-index: 2;
    transform: rotate(-15deg) scale(0.7, 0.6);
}

.feature-img-2 {
    position: absolute;
    top: -7%;
    right: 0%;
    width: 60%;
    z-index: 1;
    transform: rotate(5deg);
    opacity: 0.8;
}

.features-content {
    padding: 2rem 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.feature-marker {
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.feature-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.feature-text p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-dim);
}

/* CTA Section */
.cta-section {
    padding: 12rem 2rem;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15) 0%, rgba(30, 58, 138, 0.1) 50%, transparent 70%);
    z-index: -1;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.app-store-btn {
    transition: transform 0.3s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img {
    height: 56px;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer-copyright a {
    color: var(--color-text-dim);
    text-decoration: none;
}

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

    .hero-title {
        text-align: center;
        width: 100%;
    }

    .hero-title .line {
        display: block;
        text-align: center;
    }

    .hero-title .outline-text {
        -webkit-text-stroke: 1px var(--color-text);  /* Thinner stroke on mobile */
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 2rem;
    }

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

    .hero-eyebrow::before {
        display: none;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;  /* Stack vertically */
        align-items: center;
    }

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

    .phone-container {
        transform: perspective(1000px) rotateY(0) rotateX(0);
    }

    .phone-container:hover {
        transform: perspective(1000px) rotateY(0) rotateX(0);
    }

    .float-element {
        display: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .features-visual {
        order: 0;
    }

    .features-content {
        order: 1;
    }
    .feature-img-1 {
        transform: rotate(-10deg) scale(0.7, 0.5);
    }
    .feature-img-2 {
        top: -2%;
        right: 15%;
        transform: rotate(5deg) scale(0.8, 0.8);
    }
}

@media (max-width: 640px) {
    nav {
        padding: 1rem;
    }

    .logo-text {
        display: none;
    }

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

    .phone {
        width: 240px;
    }

    .stats-strip {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .how-section,
    .features-section,
    .cta-section {
        padding: 6rem 1.25rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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