:root {
    /* Theme Colors */
    --app-red: #B31919;
    --app-red-hover: #d41c1c;
    --bg-black: #000000;
    --bg-card: #111111;
    --text-white: #ffffff;
    --text-gray: #a1a1a1;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-cta {
    background-color: white;
    color: black;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(179, 25, 25, 0.15) 0%, rgba(0,0,0,0) 60%);
    z-index: -1;
    pointer-events: none;
}

h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.highlight {
    color: var(--app-red);
}

.hero p {
    color: var(--text-gray);
    font-size: 20px;
    max-width: 640px;
    margin-bottom: 40px;
}

/* Updated Apple Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: black;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.app-store-btn:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

.app-store-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.apple-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
    padding-bottom: 2px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-text span:first-child {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.store-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* --- Phone Mockup (Refined) --- */
.mockup-container {
    margin-top: 80px;
    perspective: 1000px;
}

.phone {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 44px;
    border: 8px solid #2a2a2a;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8), 0 0 0 2px #111;
    overflow: hidden;
    transform: rotateX(5deg);
}

.phone::before { /* Dynamic Island */
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: black;
    border-radius: 20px;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #111 0%, #000 100%);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mock-header {
    margin-top: 40px;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.art-placeholder {
    flex: 1;
    margin: 20px 0;
    background: radial-gradient(circle at center, var(--app-red), #300000);
    border-radius: 20px;
    opacity: 0.8;
    position: relative;
    overflow: hidden;
}

/* Shine effect on placeholder */
.art-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    to { transform: translateX(100%); }
}

.mock-controls {
    height: 60px;
}

.mock-btn {
    background: var(--app-red);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
}

/* --- How it Works (New) --- */
.steps-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
}

.step-number {
    background: var(--app-red);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

/* --- Features Grid --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--app-red);
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 15px;
}

/* --- Legal Page Styles --- */
.legal-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.legal-container h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--app-red);
}

.legal-container .date {
    color: var(--text-gray);
    margin-bottom: 40px;
    display: block;
}

.legal-container h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: white;
}

.legal-container p {
    color: #cccccc;
    margin-bottom: 16px;
    font-size: 16px;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #cccccc;
}

.legal-container li {
    margin-bottom: 8px;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 20px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 24px;
}

.footer-nav a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--app-red);
}

.copyright {
    color: #444;
    font-size: 12px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 42px; }
    .hero p { font-size: 18px; }
    
    .nav-links { display: none; } /* Mobile: Hide menu links for simplicity */
    
    .phone { width: 260px; height: 520px; }
    .steps-grid { grid-template-columns: 1fr; }
}

/* --- High Resolution (2K) Optimizations --- */
@media (min-width: 1920px) {
    body {
        font-size: 18px;
    }
    
    nav {
        padding: 24px 8%;
        max-width: 2200px;
        margin: 0 auto;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .nav-links a {
        font-size: 17px;
    }
    
    .nav-cta {
        font-size: 16px;
        padding: 10px 22px;
    }
    
    h1 {
        font-size: 80px;
    }
    
    .hero p {
        font-size: 24px;
        max-width: 800px;
    }
    
    .app-store-btn {
        padding: 16px 28px;
        gap: 16px;
    }
    
    .apple-icon {
        width: 40px;
        height: 40px;
    }
    
    .btn-text span:first-child {
        font-size: 12px;
    }
    
    .store-name {
        font-size: 24px;
    }
    
    .phone {
        width: 380px;
        height: 760px;
        border-radius: 52px;
    }
    
    .steps-section h2,
    .features h2 {
        font-size: 48px;
    }
    
    .step-card,
    .feature-card {
        padding: 50px;
    }
    
    .feature-card h3 {
        font-size: 26px;
    }
    
    .feature-card p {
        font-size: 18px;
    }
    
    .steps-section,
    .features,
    footer {
        max-width: 2000px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Ultra High Resolution (4K) Optimizations --- */
@media (min-width: 3840px) {
    body {
        font-size: 22px;
    }
    
    nav {
        padding: 32px 10%;
        max-width: 3600px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .nav-links {
        gap: 50px;
    }
    
    .nav-links a {
        font-size: 22px;
    }
    
    .nav-cta {
        font-size: 20px;
        padding: 14px 30px;
        border-radius: 28px;
    }
    
    .hero {
        padding: 140px 20px 60px;
    }
    
    h1 {
        font-size: 120px;
        margin-bottom: 40px;
    }
    
    .hero p {
        font-size: 32px;
        max-width: 1200px;
        margin-bottom: 60px;
    }
    
    .app-store-btn {
        padding: 24px 40px;
        gap: 20px;
        border-radius: 18px;
    }
    
    .apple-icon {
        width: 56px;
        height: 56px;
    }
    
    .btn-text span:first-child {
        font-size: 16px;
    }
    
    .store-name {
        font-size: 32px;
    }
    
    .mockup-container {
        margin-top: 120px;
    }
    
    .phone {
        width: 600px;
        height: 1200px;
        border-radius: 72px;
        border: 12px solid #2a2a2a;
    }
    
    .phone::before {
        width: 140px;
        height: 36px;
        top: 24px;
    }
    
    .steps-section {
        padding: 160px 40px;
    }
    
    .steps-section h2 {
        font-size: 64px;
        margin-bottom: 100px;
    }
    
    .steps-grid {
        gap: 60px;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    .step-card {
        padding: 70px;
        border-radius: 32px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .step-card h3 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .step-card p {
        font-size: 20px;
    }
    
    .features {
        gap: 40px;
        padding: 0 40px;
        margin-bottom: 120px;
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
    
    .feature-card {
        padding: 70px;
        border-radius: 36px;
    }
    
    .feature-card h3 {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .feature-card p {
        font-size: 22px;
    }
    
    footer {
        padding: 100px 40px;
    }
    
    .footer-nav {
        margin-bottom: 40px;
    }
    
    .footer-nav a {
        font-size: 20px;
        margin: 0 24px;
    }
    
    .copyright {
        font-size: 16px;
    }
    
    .steps-section,
    .features,
    footer {
        max-width: 3400px;
    }
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the screen without stretching */
    object-position: top center; /* Focuses on the top of the screenshot */
    border-radius: 32px; /* Matches the phone's internal curve */
    display: block;
}