:root {
    --primary-navy: #172554;
    --navy-deep: #080d1a;
    --navy-base: #0f172a;
    --navy-card: rgba(23, 37, 84, 0.4);
    --secondary-blue: #60A5FA;
    --secondary-blue-hover: #93C5FD;
    --secondary-blue-glow: rgba(96, 165, 250, 0.25);
    --accent-cyan: #38BDF8;
    --bg-light: #F8FAFC;
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dark: #0F172A;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(96, 165, 250, 0.18);
    --border-hover: rgba(96, 165, 250, 0.4);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--navy-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.9) 65%, #080d1a 100%),
        radial-gradient(rgba(96, 165, 250, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 36px 36px;
    background-attachment: scroll, fixed;
}

/* Container */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 13, 26, 0.75);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 0;
    transition: var(--transition);
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-link:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: block;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

nav a:hover {
    color: var(--secondary-blue);
}

nav a:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: var(--secondary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary-blue);
    box-shadow: 0 0 8px var(--secondary-blue);
}

.hero h1 {
    font-size: 3.25rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}

/* App Store Badge CTA */
.cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.app-store-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
}

.app-store-badge-link:hover {
    transform: translateY(-2px);
}

.app-store-badge-link:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 4px;
}

.app-store-badge {
    height: 52px;
    width: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(96, 165, 250, 0.15);
    transition: box-shadow 0.25s ease, filter 0.25s ease;
}

.app-store-badge-link:hover .app-store-badge {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 25px rgba(96, 165, 250, 0.3);
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .app-store-badge {
        height: 48px;
    }
}

/* Hero Showcase Image */
.hero-visual {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.hero-visual-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(23, 37, 84, 0.5);
    border: 1px solid var(--border-card);
    background: var(--navy-card);
    transition: var(--transition);
}

.hero-visual-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Screenshots Section */
.screenshots-section {
    padding: 4.5rem 0 3.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.65rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* Screenshots Layout */
.screenshots-wrapper {
    width: 100%;
}

.screenshots-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1020px;
    margin: 0 auto;
}

.screenshot-card {
    background: var(--navy-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.screenshot-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(96, 165, 250, 0.2);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* About / Features Section */
.about-section {
    padding: 4.5rem 0 3.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1020px;
    margin: 0 auto;
}

.feature-card {
    background: var(--navy-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: rgba(23, 37, 84, 0.55);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    color: var(--secondary-blue);
}

.feature-icon-wrapper svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Bottom CTA Section */
.bottom-cta {
    padding: 5rem 0;
    text-align: center;
}

.cta-card {
    background: linear-gradient(180deg, rgba(23, 37, 84, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(96, 165, 250, 0.12);
    position: relative;
    overflow: hidden;
}

.cta-card h2 {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(8, 13, 26, 0.9);
    margin-top: auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

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

.footer-nav a:hover {
    color: var(--secondary-blue);
}

.footer-nav a:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-meta {
    color: rgba(148, 163, 184, 0.65);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-meta p {
    margin-bottom: 0.25rem;
}

/* Legal Pages Styling */
.legal-page {
    padding: 3.5rem 0 4.5rem;
    flex: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.legal-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.92rem;
    color: var(--secondary-blue);
    font-weight: 500;
}

.legal-card {
    background: var(--navy-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 820px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.legal-card h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem 0;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.4rem;
}

.legal-card h2:first-of-type {
    margin-top: 0.5rem;
}

.legal-card h3 {
    color: var(--secondary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
}

.legal-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.15rem;
}

.legal-card ul {
    margin: 0 0 1.25rem 1.5rem;
    color: var(--text-muted);
}

.legal-card li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.legal-card a {
    color: var(--secondary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-card a:hover {
    color: var(--secondary-blue-hover);
}

.legal-card strong {
    color: #ffffff;
}

.back-link-wrapper {
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    background: rgba(96, 165, 250, 0.08);
}

.back-link:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 3px;
}

/* Support Page Cards */
.support-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.support-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.support-box h3 {
    margin-top: 0;
    color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .screenshots-row {
        gap: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 0.88rem;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.02rem;
    }

    /* Screenshots on Mobile: Horizontal smooth scroll */
    .screenshots-row {
        display: flex;
        overflow-x: auto;
        gap: 1.25rem;
        padding: 1rem 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .screenshots-row::-webkit-scrollbar {
        display: none;
    }

    .screenshot-card {
        flex: 0 0 280px;
        scroll-snap-align: center;
    }

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

    .cta-card {
        padding: 2.5rem 1.25rem;
    }

    .cta-card h2 {
        font-size: 1.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Support Email Button */
.support-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-blue);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
}

.support-email-btn:hover {
    background: var(--secondary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.35);
}
