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

:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1f3a;
    --bg-card: #132744;
    --bg-card-hover: #1a3358;
    --text-primary: #f0f3f8;
    --text-secondary: #a0b4cc;
    --text-muted: #64748b;
    --accent: #1a6dd4;
    --accent-glow: rgba(26, 109, 212, 0.35);
    --accent-light: #3b8df0;
    --green: #1a8c60;
    --gold: #c78e1a;
    --red: #b82e2a;
    --border: rgba(255, 255, 255, 0.08);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-light);
}

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

/* ===== Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-name {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

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

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

.nav-download-link {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.nav-download-link:hover {
    opacity: 0.85;
}

.nav-badge {
    display: block;
    height: 36px;
    width: auto;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 24px 100px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 140, 96, 0.12), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(26, 109, 212, 0.12);
    border: 1px solid rgba(26, 109, 212, 0.25);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-light) 0%, #5bb5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    margin-bottom: 16px;
}

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

/* App Store Badge */
.appstore-badge-link {
    display: inline-flex;
    transition: opacity 0.2s, transform 0.2s;
}

.appstore-badge-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.appstore-badge-link img {
    display: block;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-phone {
    width: 300px;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.hero-phone:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.hero-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ===== Section Common ===== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: background 0.3s, transform 0.2s, border-color 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--accent-light);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

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

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card ul li {
    font-size: 0.83rem;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.feature-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: grid;
    grid-template-columns: 60px 260px 1fr;
    gap: 32px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.3s, background 0.3s;
}

.step:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--bg-card-hover);
}

.step.reverse {
    grid-template-columns: 1fr 260px 60px;
}

.step.reverse .step-number {
    order: 3;
}

.step.reverse .step-screenshot {
    order: 2;
}

.step.reverse .step-content {
    order: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.step-screenshot {
    width: 260px;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.step-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 400px;
}

/* ===== Gallery ===== */
.gallery {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s, transform 0.25s;
    box-shadow: var(--shadow);
}

.gallery-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top;
}

/* ===== CTA ===== */
.cta {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta-card .appstore-badge-link {
    position: relative;
    z-index: 1;
}

/* ===== Support ===== */
.support {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
}

.support-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.support-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--accent-light);
}

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

.support-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.support-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.15s;
}

.support-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.support-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary) !important;
}

.support-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary) !important;
}

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

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

.footer-brand strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 5px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
    margin-top: 48px;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

/* ===== Privacy Page ===== */
.privacy-page {
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.privacy-page .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.privacy-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--accent-light);
}

.privacy-page p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.privacy-page ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.privacy-page ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 140, 96, 0.12);
    border: 1px solid rgba(26, 140, 96, 0.25);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    color: var(--green);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.privacy-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--accent-light) !important;
}

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

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-phone {
        width: 240px;
        height: 480px;
        transform: none;
    }

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

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

@media (max-width: 768px) {
    .nav-links a:not(.nav-download-btn) {
        display: none;
    }

    .hero {
        padding: 48px 16px 64px;
    }

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

    .hero-phone {
        width: 200px;
        height: 400px;
        border-radius: 28px;
    }

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

    .step {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }

    .step .step-number {
        margin: 0 auto;
        order: inherit !important;
    }

    .step .step-screenshot {
        margin: 0 auto;
        width: 180px;
        height: 360px;
        order: inherit !important;
    }

    .step .step-content {
        order: inherit !important;
    }

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

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

    .support-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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