/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border: #222233;
    --text-primary: #f0f0f5;
    --text-secondary: #9999aa;
    --text-muted: #666677;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;
    --gradient: linear-gradient(135deg, #8B5CF6, #06B6D4);
    --gradient-subtle: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15));
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 32px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3);
    transform: none;
}

.btn-ghost {
    border: 1.5px solid var(--border);
    color: var(--text-primary);
}

.btn-ghost:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-icon {
    height: auto;
    width: clamp(120px, 15vw, 180px);
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-glow--1 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: -100px;
    right: -100px;
    opacity: 0.15;
}

.hero-glow--2 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    bottom: -50px;
    left: -100px;
    opacity: 0.1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-formats span {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Hero Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-phone {
    position: relative;
}

/* ===== Realistic Device Mockup (Galaxy S26 Ultra - 19.5:9) ===== */
.device-mockup {
    --device-width: 280px;
    --bezel: 3px;
    --frame-radius: 22px;
    --screen-radius: 19px;
    perspective: 1800px;
    display: inline-block;
}

.device-mockup--hero {
    --device-width: 300px;
    perspective: none;
}

.device-mockup--hero .device-frame {
    animation: phoneFloat 3.5s ease-in-out infinite;
    transform: translateY(0);
}

.device-mockup--carousel {
    --device-width: 240px;
    --bezel: 2.5px;
    --frame-radius: 20px;
    --screen-radius: 17.5px;
}

.device-mockup--carousel .device-frame {
    box-shadow:
        inset 0 1.5px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.6),
        inset 0 0 0 0.5px rgba(0, 0, 0, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.45),
        0 40px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-mockup--carousel:hover .device-frame {
    transform: translateY(-8px);
}

.device-mockup--hero {
    position: relative;
}

.device-floor-shadow {
    position: absolute;
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
    width: 80%;
    height: 28px;
    background: radial-gradient(ellipse at center,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        transparent 70%);
    filter: blur(12px);
    border-radius: 50%;
    z-index: -1;
    animation: phoneShadow 3.5s ease-in-out infinite;
}

.device-frame {
    position: relative;
    width: var(--device-width);
    padding: var(--bezel);
    background: linear-gradient(145deg, #2a2a35 0%, #15151c 40%, #1f1f28 60%, #0d0d13 100%);
    border-radius: var(--frame-radius);
    box-shadow:
        inset 0 1.5px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.6),
        inset 0 0 0 0.5px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 92, 246, 0.1);
}

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

@keyframes phoneShadow {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50%) scale(1.15);
        opacity: 0.6;
    }
}

/* Screen area - 19.5:9 aspect */
.device-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: var(--screen-radius);
    overflow: hidden;
    background: #000;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.9),
        inset 0 0 0 2px rgba(255, 255, 255, 0.02);
}

.device-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Punch-hole camera (Galaxy-style, centered top) */
.device-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 35% 30%, #1a2530 0%, #05080c 70%, #000 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow:
        inset 0 0 0 0.5px rgba(80, 120, 160, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.9);
}

.device-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #060a0f 0%, #000 100%);
    border-radius: 50%;
}

/* Side buttons */
.device-btn {
    position: absolute;
    background: linear-gradient(90deg, #0a0a10 0%, #2a2a35 40%, #3a3a45 50%, #1a1a22 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* Volume up (right, upper) */
.device-btn--volup {
    right: calc(var(--bezel) * -1 - 1px);
    top: 18%;
    width: 2.5px;
    height: 42px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(270deg, #0a0a10 0%, #2a2a35 40%, #3a3a45 50%, #1a1a22 100%);
}

/* Volume down (right, just below volup) */
.device-btn--voldown {
    right: calc(var(--bezel) * -1 - 1px);
    top: calc(18% + 48px);
    width: 2.5px;
    height: 42px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(270deg, #0a0a10 0%, #2a2a35 40%, #3a3a45 50%, #1a1a22 100%);
}

/* Power button (right, below volumes) */
.device-btn--power {
    right: calc(var(--bezel) * -1 - 1px);
    top: calc(18% + 102px);
    width: 2.5px;
    height: 56px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(270deg, #0a0a10 0%, #2a2a35 40%, #3a3a45 50%, #1a1a22 100%);
}

/* Mute switch not used on Galaxy - hide */
.device-btn--mute {
    display: none;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator span {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ===== Features ===== */
.features {
    padding: 120px 0;
    position: relative;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Screenshots ===== */
.screenshots {
    padding: 120px 0;
    overflow: hidden;
}

.screenshots-carousel {
    position: relative;
}

.screenshots-track {
    display: flex;
    gap: 32px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.screenshot-item {
    flex: 0 0 240px;
    text-align: center;
    padding: 8px 0 16px;
}


.screenshot-label {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.carousel-btn:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
}

.dot.active {
    background: var(--gradient);
    width: 24px;
    border-radius: 4px;
}

/* ===== Download ===== */
.download {
    padding: 120px 0;
}

.download-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.download-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Privacy ===== */
.privacy {
    padding: 120px 0;
}

.privacy-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.privacy-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.privacy-item:hover {
    border-color: rgba(6, 182, 212, 0.2);
    background: var(--bg-card-hover);
}

.privacy-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
}

.privacy-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.privacy-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.privacy-full {
    text-align: center;
}

.privacy-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: all var(--transition);
}

.privacy-toggle:hover {
    background: rgba(6, 182, 212, 0.08);
}

.privacy-toggle svg {
    transition: transform var(--transition);
}

.privacy-toggle.active svg {
    transform: rotate(180deg);
}

.privacy-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-details.open {
    max-height: 1200px;
}

.privacy-text {
    text-align: left;
    max-width: 720px;
    margin: 32px auto 0;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.privacy-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.privacy-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--text-primary);
}

.privacy-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.privacy-text a {
    color: var(--accent-cyan);
    transition: opacity var(--transition);
}

.privacy-text a:hover {
    opacity: 0.8;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .nav-logo {
    margin-bottom: 12px;
}

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

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

/* ===== Scroll Animations ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.features-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.features-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.features-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.features-grid [data-animate]:nth-child(5) { transition-delay: 0.4s; }
.features-grid [data-animate]:nth-child(6) { transition-delay: 0.5s; }

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

    .hero-description {
        margin: 0 auto 36px;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

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

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .device-mockup--hero {
        --device-width: 240px;
    }

    .device-mockup--carousel {
        --device-width: 200px;
    }

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

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

    .screenshots-track {
        gap: 20px;
    }

    .screenshot-item {
        flex: 0 0 200px;
    }


    .privacy-highlights {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 48px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 40px;
    }

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

    .features,
    .screenshots,
    .download,
    .privacy {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .hero-formats span {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .screenshot-item {
        flex: 0 0 180px;
    }

    .device-mockup--carousel {
        --device-width: 180px;
    }
}
