/* Skylight-Inspired Premium Design */
:root {
    --bg-main: #000000;
    /* Deepest Black */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    --accent-orange: #f97316;
    /* Sunset Orange for accent */

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1400px;
    --gutter: 24px;
}

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

html,
body {
    height: 100%;
    width: 100%;
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% -20%, #1c1c1e, #000000 70%);
    /* Subtle premium spotlight */
    color: var(--text-primary);
    font-family: var(--font-heading);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    overflow-y: auto;
    /* Allow vertical scroll if needed */
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Main Stage */
.stage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5vh var(--gutter);
    /* Reduced from 2vh */
    position: relative;
}

/* Header */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5vh 0;
    /* Reduced from 2vh */
    z-index: 10;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 8px;
    /* Simple Icon Placeholder */
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 24px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}


/* Hero Content (Split Layout) */
.hero-split {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread text and phone */
    gap: 2vw;
    /* Reduced from 4vw */
    width: 100%;
    /* Inherits alignment from .stage - no extra max-width or padding */
}

/* Text Side */
.hero-text {
    flex: 1;
    /* Equal flex */
    max-width: 500px;
    /* Limit text width for readability */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 3vh;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-h1 span {
    color: var(--accent-orange);
    -webkit-text-fill-color: initial;
    /* Highlight specific words if needed */
}

/* App Store Button - Large & Bordered */
.btn-app-store {
    margin-top: 4vh;
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    width: fit-content;
    gap: 12px;
    transition: all 0.2s;
}

.btn-app-store:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.icon-apple {
    width: 28px;
    height: 34px;
    fill: white;
}

.btn-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.btn-small {
    font-size: 0.75rem;
    color: #ccc;
}

.btn-large {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Phone Side */
.hero-visual {
    flex: 1;
    /* Equal flex */
    max-width: 500px;
    /* Match text side */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Push phone to the right */
    position: relative;
}

.visual-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.iphone-img {
    max-width: 100%;
    max-height: 75vh;
    /* Slightly smaller for better fit */
    object-fit: contain;
    transform: rotate(-10deg) translateY(20px);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
    transition: transform 0.5s ease-out;
}

.hero-visual:hover .iphone-img {
    transform: rotate(-8deg) translateY(10px) scale(1.02);
}

/* Content Styling for Legal Pages */
.page-content ul {
    margin-left: 20px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content strong {
    color: #fff;
}

.page-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .stage {
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
        /* Ensure scroll works */
        padding-bottom: 60px;
    }

    /* Mobile Header Fixes */
    .nav-header {
        flex-wrap: nowrap;
        /* Force single line as requested */
        gap: 8px;
        /* Reduce gap */
        justify-content: space-between;
    }

    .brand-group {
        flex-shrink: 0;
    }

    .brand-name {
        font-size: 1.1rem;
        /* Slightly smaller logo text */
    }

    .nav-links {
        display: flex;
        gap: 8px;
        /* Tighter links */
        margin-left: auto;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.75rem;
        /* Compact font */
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.08);
        padding: 6px 10px;
        border-radius: 16px;
    }

    /* Hide extra words on mobile to fit one line */
    .desktop-only {
        display: none;
    }

    .hero-split {
        flex-direction: column-reverse;
        /* Phone on top/middle, Text bottom */
        justify-content: flex-end;
        /* Start from top/center */
        gap: 40px;
        margin-top: 40px;
    }

    .hero-text {
        text-align: center;
        align-items: center;
        padding: 0 20px;
    }

    .hero-h1 {
        font-size: 2.8rem;
    }

    .hero-visual {
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .iphone-img {
        max-height: 50vh;
        transform: none;
        /* Reset rotation for cleaner mobile view */
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    }

    .hero-visual:hover .iphone-img {
        transform: none;
    }
}