/* Self-hosted Inter font */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-var-latin.woff2') format('woff2');
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --blue-400: #818cf8;
    --blue-500: #6366f1;
    --blue-600: #4f46e5;
    --blue-700: #4338ca;
    --blue-800: #3730a3;
    --blue-900: #312e81;
    --bg: #0a0e27;
    --bg-card: #111738;
    --bg-step: #151b3a;
    --text: #f5f5f7;
    --text-secondary: #a1a1aa;
    --radius: 16px;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    padding: 32px 24px 0;
    position: relative;
    z-index: 10;
}

.header-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(17, 23, 56, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 12px 24px;
}

.header-icon img {
    border-radius: 10px;
    display: block;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.header-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.header-dev {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.header-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 24px 20px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 520px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--blue-400);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge svg {
    width: 14px;
    height: 14px;
    fill: var(--blue-400);
    stroke: none;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.store-btn svg {
    flex-shrink: 0;
}

.store-btn div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-small {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
}

.btn-large {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.store-buttons-sm {
    gap: 10px;
}

.store-btn-sm {
    padding: 8px 16px;
}

.store-btn-sm .btn-large {
    font-size: 14px;
}

/* Phone Frames */
.hero-phone {
    position: absolute;
    z-index: 1;
}

.hero-phone-left {
    left: -2%;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
}

.hero-phone-right {
    right: -2%;
    top: 50%;
    transform: translateY(-50%) rotate(8deg);
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a3e, #0d0d2a);
    border-radius: 40px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 102, 241, 0.08);
    position: relative;
}

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

.phone-screen {
    width: 100%;
    height: 100%;
    background: #101530;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame-small {
    width: 200px;
    height: 400px;
}

.phone-frame-small::before {
    width: 70px;
    height: 20px;
}

.phone-frame-small .phone-screen {
    border-radius: 25px;
}

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

/* Placeholder for missing screenshots */
.phone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 12px;
    padding: 20px;
}

.phone-placeholder svg {
    opacity: 0.3;
}

.phone-placeholder span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Glow */
.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(67, 56, 202, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glow-left {
    left: -5%;
    top: 30%;
}

.hero-glow-right {
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
    right: -5%;
    top: 40%;
}

/* Mobile Gallery */
.hero-gallery-mobile {
    display: none;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 16px 0 0;
    z-index: 2;
    min-height: 245px;
}

.gallery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px 16px;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex-shrink: 0;
    width: 48%;
    max-width: 200px;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features */
.features-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.features-heading {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 32px 24px;
    flex: 1;
    min-width: 240px;
    max-width: 300px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.feature-icon-accent {
    color: var(--blue-400);
    background: rgba(99, 102, 241, 0.1);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* About */
.about {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 20px;
    text-align: center;
}

.about h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* How it works */
.how-it-works {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.how-it-works h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 48px;
    position: relative;
    background: var(--bg-step);
    border-radius: 24px;
    padding: 40px 48px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.step-reverse {
    flex-direction: row-reverse;
}

.step-content {
    max-width: 300px;
    flex-shrink: 0;
}

.step-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-400);
    background: rgba(99, 102, 241, 0.12);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin: 0 0 16px;
}

.step-badge-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-400);
}

.step-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-visual {
    position: relative;
    flex-shrink: 0;
}

.step-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(67, 56, 202, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* FAQ */
.faq {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.faq h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-step);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--blue-400);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    position: relative;
    padding: 60px 24px;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(67, 56, 202, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-copyright {
    font-size: 12px;
    color: rgba(161, 161, 170, 0.5);
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) rotate(-8deg); }
    50% { transform: translateY(calc(-50% - 12px)) rotate(-8deg); }
}

@keyframes floatRight {
    0%, 100% { transform: translateY(-50%) rotate(8deg); }
    50% { transform: translateY(calc(-50% - 12px)) rotate(8deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .header { animation: fadeInUp 0.8s ease-out backwards; }
    .hero-content { animation: fadeInUp 0.8s ease-out 0.15s backwards; }
    .hero-phone-left { animation: float 6s ease-in-out infinite; }
    .hero-phone-right { animation: floatRight 6s ease-in-out infinite 0.5s; }
    .features-section { animation: fadeInUp 0.8s ease-out 0.3s backwards; }
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-phone {
        opacity: 0.4;
    }
    .hero-phone-left {
        left: -10%;
    }
    .hero-phone-right {
        right: -10%;
    }
}

@media (max-width: 768px) {
    .hero-phone {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 32px 24px 16px;
        flex-direction: column;
    }

    .hero-gallery-mobile {
        display: block;
    }

    .features-section {
        padding: 24px 24px 40px;
    }

    .features {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .feature-card {
        max-width: 100%;
        width: 100%;
    }

    .step, .step-reverse {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        margin-bottom: 32px;
        padding: 32px 24px;
    }

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

    .phone-frame-small {
        width: 180px;
        height: 360px;
    }

    .how-it-works h2 {
        margin-bottom: 40px;
    }

    .hero-subtitle {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .header-card {
        padding: 10px 16px;
        gap: 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 15px;
    }
}
