/* Added Modern Sticky Header Styling */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.header-nav a.nav-btn {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.header-nav a.nav-btn:hover {
    background-color: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
}

/* Original CSS Stylesheet (Unchanged from here below) */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --bg-light: #F9FAFB;
    --border: #E5E7EB;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-main);
    line-height: 1.5;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    /* Slimmer container for a clean, centered stack layout */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Top Header: Logo on left, App Name beside it */
header {
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.top-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

.top-nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

/* Hero Content (Centered Stack Layout) */
.hero {
    padding: 40px 0 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 1. App Name Below Title */
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-main);
}

/* 2. Main Logo below App Name */
.hero-main-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    object-fit: cover;
}

/* 3. Description below Logo */
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* 4. Screenshot at the bottom */
.screenshot-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.app-screenshot {
    max-width: 100%;
    width: 300px;
    /* Optimized frame width for a smartphone screenshot */
    height: auto;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
}

/* Support Section */
.support-section {
    display: none;
    background-color: var(--bg-light);
    padding: 60px 0 100px 0;
    flex-grow: 1;
}

.support-card {
    background: white;
    max-width: 550px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.support-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.support-card p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.back-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    font-size: 1rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    background-color: white;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 10px;
    cursor: pointer;
}

footer a:hover {
    text-decoration: underline;
}

/* STORE BADGES */
.store-badges {
    display: flex;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

/* The Badge Button */
.store-badge {
    display: inline-flex;
    align-items: center;
    background-color: #000000;
    /* Black background */
    color: #ffffff;
    /* White text */
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    border: 1px solid #333;
    /* Subtle border for depth */
}

/* Hover effect */
.store-badge:hover {
    background-color: #222222;
    /* Slightly lighter black on hover */
}

/* SVG Icon styling */
.store-badge svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
    /* Makes the Apple logo white */
    margin-right: 12px;
}

/* Text Layout */
.store-badge-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* "Download on the" text */
.store-badge-sub {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    /* Slightly softer white */
    line-height: 1.2;
}

/* "App Store" text */
.store-badge-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 1px;
}