/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    /* Primary Colors - Patriotic Blue */
    --primary: #1A4B8E;
    --primary-dark: #143a6e;
    --primary-light: #EBF2FF;

    /* Accent Colors - Patriotic Red */
    --accent: #E53935;
    --accent-light: rgba(229, 57, 53, 0.15);

    /* Success Colors */
    --success: #22C55E;
    --success-light: #F0FDF4;

    /* Background Colors */
    --background: #F8F9FA;
    --surface: #FFFFFF;

    /* Text Colors */
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    /* Border Colors */
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    /* Legacy neutral aliases */
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #d1d5db;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1A1A2E;
    --gray-900: #1A1A2E;

    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   Background Decorations
======================================== */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.bg-blur-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-light), #1A4B8E);
    top: -200px;
    right: -100px;
}

.bg-blur-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    bottom: -150px;
    left: -100px;
    opacity: 0.15;
}

/* ========================================
   Header
======================================== */
.header {
    position: relative;
    padding: var(--space-xl) var(--space-xl) 0;
    z-index: 100;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    padding: var(--space-2xl) var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Device Mockups Container */
.devices-container {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-end;
    flex-shrink: 0;
}

/* Individual Phone Container */
.phone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.phone-container.iphone .phone-frame {
    animation: deviceFloat 6s ease-in-out infinite;
}

.phone-container.android .android-frame {
    animation: deviceFloat 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes deviceFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.device-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* iPhone Frame */
.phone-frame {
    width: 240px;
    height: 490px;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.4),
        0 25px 50px -25px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0d0d0d;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}

/* Android Frame */
.android-frame {
    width: 240px;
    height: 490px;
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 32px;
    padding: 10px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.4),
        0 25px 50px -25px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.android-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.android-camera {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 2px #0d0d0d;
}

.android-frame .phone-screen {
    border-radius: 24px;
}

/* Shared Screen Styles */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Hero Content */
.hero-content {
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(26, 75, 142, 0.3);
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 4px 15px rgba(26, 75, 142, 0.3);
    }

    50% {
        opacity: 0.9;
        box-shadow: 0 4px 25px rgba(26, 75, 142, 0.5);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out;
}

.subheadline {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* ========================================
   Feature Highlight
======================================== */
.feature-highlight {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--primary-light), rgba(26, 75, 142, 0.1));
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(26, 75, 142, 0.15);
    animation: fadeInUp 0.6s ease-out 0.15s backwards;
}

.highlight-icon {
    font-size: 1rem;
}

.highlight-text {
    font-size: 0.9rem;
    color: var(--primary);
}

.highlight-text strong {
    font-weight: 700;
    color: var(--primary-dark);
}

/* ========================================
   Email Form
======================================== */
.email-form {
    margin-bottom: var(--space-xl);
}

.form-group {
    display: flex;
    gap: var(--space-sm);
    background: var(--white);
    padding: 6px;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.form-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(26, 75, 142, 0.15);
    transform: translateY(-2px);
}

.form-group input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--gray-800);
    outline: none;
    font-family: inherit;
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: inherit;
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: var(--transition-fast);
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.form-message {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.form-message.error {
    color: var(--accent);
}

.form-message.success {
    color: #10b981;
}

/* ========================================
   Social Proof
======================================== */
.social-proof {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar {
    transition: transform 0.2s ease;
}

.avatar:hover {
    transform: scale(1.1) translateY(-2px);
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-proof {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.proof-text {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.proof-count {
    font-weight: 700;
    color: var(--gray-800);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0;
    margin-top: var(--space-3xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gray-50));
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

.footer-section {
    flex: 1;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-cta {
    text-align: right;
    flex: 1.5;
}

.footer-message {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    opacity: 0.95;
}

.footer-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-disclaimer {
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 auto var(--space-md) auto !important;
    max-width: 700px;
    line-height: 1.5;
    text-align: center;
}

/* ========================================
   Success Modal
======================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    backdrop-filter: blur(4px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 400px;
    margin: var(--space-lg);
    transform: scale(0.9);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.modal-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.modal-close {
    padding: var(--space-md) var(--space-xl);
    background: var(--gray-900);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: inherit;
}

.modal-close:hover {
    background: var(--gray-800);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: var(--space-xl);
        gap: var(--space-2xl);
    }

    .devices-container {
        order: -1;
        gap: var(--space-lg);
    }

    .phone-frame,
    .android-frame {
        width: 200px;
        height: 410px;
    }

    .phone-frame {
        border-radius: 35px;
    }

    .android-frame {
        border-radius: 28px;
    }

    .phone-screen {
        border-radius: 28px;
    }

    .android-frame .phone-screen {
        border-radius: 22px;
    }

    .hero-content {
        max-width: 100%;
    }

    .social-proof {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .header {
        padding: var(--space-md);
    }

    .hero {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    .devices-container {
        gap: var(--space-md);
    }

    .phone-frame,
    .android-frame {
        width: 150px;
        height: 310px;
        padding: 6px;
    }

    .phone-frame {
        border-radius: 28px;
    }

    .android-frame {
        border-radius: 22px;
    }

    .phone-notch {
        width: 50px;
        height: 14px;
        top: 6px;
    }

    .android-camera {
        width: 6px;
        height: 6px;
        top: 10px;
    }

    .phone-screen {
        border-radius: 22px;
    }

    .android-frame .phone-screen {
        border-radius: 18px;
    }

    .device-label {
        font-size: 0.7rem;
    }

    .form-group {
        flex-direction: column;
        padding: var(--space-sm);
    }

    .form-group input {
        padding: var(--space-md);
        text-align: center;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .headline {
        font-size: 2rem;
    }

    .social-proof {
        flex-direction: column;
        gap: var(--space-sm);
    }

    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
        padding: var(--space-2xl) var(--space-lg);
    }

    .footer-cta {
        text-align: center;
    }

    .footer-section {
        width: 100%;
    }
}

/* ========================================
   Animations on Load
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.badge {
    animation-delay: 0.1s;
}

.headline {
    animation-delay: 0.2s;
}

.subheadline {
    animation-delay: 0.3s;
}

.email-form {
    animation-delay: 0.4s;
}

.social-proof {
    animation-delay: 0.5s;
}

.devices-container {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}