/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-elevated: #1a1a1a;
    --color-accent: #F5A962;
    --color-accent-hover: #FFB978;
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-border: #2d2d2d;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(245, 169, 98, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

.btn-primary-small {
    background: var(--color-accent);
    color: #000;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-weight: 500;
}

.btn-primary-small:hover {
    background: var(--color-accent-hover);
    color: #000;
    transform: translateY(-2px);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(ellipse at top, rgba(245, 169, 98, 0.1) 0%, transparent 50%);
}

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

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-logo {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.hero-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(245, 169, 98, 0.3);
}

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

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    color: #000;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.btn-download:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(245, 169, 98, 0.4);
}

.btn-download svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-download-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-align: left;
}

.btn-download-store {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(245, 169, 98, 0.3));
    animation: float 6s ease-in-out infinite;
}

/* Features Section */
.features {
    padding: 20rem 0 4rem;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Feature Detail Sections */
.feature-detail {
    padding: 6rem 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.feature-reverse .feature-row {
    direction: rtl;
}

.feature-reverse .feature-content,
.feature-reverse .feature-image {
    direction: ltr;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-accent);
}

.feature-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.feature-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    max-width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: none;
    outline: none;
    clip-path: inset(0 2% 0 0);
}

/* Mission Section */
.mission {
    padding: 8rem 0;
    background: radial-gradient(ellipse at center, rgba(245, 169, 98, 0.1) 0%, transparent 70%);
    text-align: center;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
}

.mission-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-text {
    font-size: 1.35rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-text {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-divider {
    color: var(--color-text-secondary);
    opacity: 0.4;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    opacity: 0.6;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-in 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll animations */
.feature-detail {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.feature-detail.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title,
    .mission-title,
    .cta-title {
        font-size: 2.5rem;
    }

    .feature-title {
        font-size: 2rem;
    }
}

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

    .nav-links {
        gap: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        max-width: 80%;
    }

    .section-title,
    .mission-title,
    .cta-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature-reverse .feature-row {
        direction: ltr;
    }

    .feature-image {
        order: -1;
    }

    .feature-content {
        order: 1;
    }

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

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

    .feature-list li {
        font-size: 0.95rem;
    }

    .mission-text {
        font-size: 1.15rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-download {
        justify-content: center;
    }

    .features {
        padding: 4rem 0 2rem;
    }

    .feature-detail {
        padding: 4rem 0;
    }

    .mission,
    .cta {
        padding: 4rem 0;
    }
}

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

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

    .section-title,
    .mission-title,
    .cta-title {
        font-size: 1.75rem;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .btn-download {
        padding: 0.65rem 1.25rem;
    }

    .btn-download svg {
        width: 24px;
        height: 24px;
    }

    .btn-download-store {
        font-size: 1rem;
    }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--color-bg);
    }
}

/* Smooth scrolling for Safari */
@supports (-webkit-appearance: none) {
    html {
        scroll-behavior: smooth;
    }
}
