:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #DD3021;
    /* Brand Red */
    --secondary-bg: #1C1C1E;
    /* Dark Grey Surface */
    --border-color: #333333;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: row;
    /* Side by side on desktop */
    align-items: center;
    justify-content: center;
    /* Center everything */
    gap: 4rem;
    /* Space between text and phone */
    text-align: left;
    /* Align text to left */
}

.hero-content {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align content */
}

/* On mobile, stack them */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .download-buttons {
        justify-content: center;
    }
}

.hero-title-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #DD3021 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #cccccc;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* iPhone Frame */
.hero-demo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.iphone-frame {
    width: 300px;
    height: 600px;
    background-color: #000;
    border: 12px solid #333;
    /* Dark Grey Frame */
    border-radius: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #333;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.app-frame {
    width: 428px;
    height: 926px;
    /* iPhone 14 Pro Max height */
    border: none;
    background-color: #000;
    transform: scale(0.644);
    /* 276px / 428px */
    transform-origin: 0 0;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.5s ease;
    gap: 1rem;
}

.loading-overlay p {
    color: #888;
    font-size: 0.9rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    background-color: #2c2c2e;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #b7271b;
    border-color: #b7271b;
}

.features {
    padding: 4rem 2rem;
    background-color: var(--secondary-bg);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.privacy-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.privacy-content h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.privacy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

footer {
    padding: 4rem 2rem;
    text-align: center;
    color: #888888;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}