/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #10b981;
    --primary-dark:rgb(2, 6, 5);
    --primary-light: #34d399;
    --accent-color: #047857;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --error: #ef4444;
    --success: #10b981;
    --border-radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(16, 185, 129, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    animation: subtle-pulse 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 24px;
    padding: 30px 20px 30px;
    color: var(--white);
}

.app-name {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--white);
}

.tagline {
    font-size: 1.5rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Main Content */
main {
    background: var(--white);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

main:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Top Section: Waitlist and App Icons */
.top-section {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e5e7eb;
}

.top-section .waitlist {
    flex: 1;
}

.top-section .favicon-display {
    flex: 0 0 auto;
    margin-top: 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.hero:not(:last-child) {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e5e7eb;
}

.hero-reverse {
    flex-direction: row-reverse;
}

.content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.media-container {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    min-width: 250px;
    position: relative;
    padding: 20px 12px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 40px;
    box-shadow:
        0 0 0 2px #374151,
        0 0 0 4px #1f2937,
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 6px rgba(255, 255, 255, 0.1);
}

.media-container::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: linear-gradient(145deg, #111827 0%, #000000 100%);
    border-radius: 0 0 20px 20px;
    z-index: 10;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.media-container::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(100, 116, 139, 0.8);
    border-radius: 3px;
    z-index: 11;
}

.media-placeholder {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px dashed #86efac;
    border-radius: 16px;
    padding: 200px 40px;
    color: var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.media-placeholder:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: var(--primary-color);
}

.media-placeholder p:first-child {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.media-hint {
    font-size: 0.9rem;
}

.media-container video,
.media-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: block;
    background: #000;
    position: relative;
    z-index: 1;
}

.media-container:hover video,
.media-container:hover img {
    transform: scale(1.01);
}

.description {
    text-align: left;
}

.description h2 {
    font-size: 2.75rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.description p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 400;
}

/* Waitlist Section */
.waitlist {
    text-align: left;
}

.waitlist h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.waitlist > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.waitlist-form {
    margin-top: 30px;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--white);
    font-weight: 400;
}

input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

input[type="email"]::placeholder {
    color: #9ca3af;
}

.btn-primary {
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-text,
.btn-loading {
    position: relative;
    z-index: 1;
}

.form-message {
    font-size: 0.95rem;
    margin-top: 10px;
    min-height: 24px;
}

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

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

/* Favicon Display */
.favicon-display {
    margin-top: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.favicon-image {
    width: 120px;
    height: 120px;
    opacity: 0.8;
}

/* App Store Badge */
.appstore-badge-wrapper {
    position: relative;
    display: inline-block;
}

.appstore-badge {
    height: 60px;
    width: auto;
    display: block;
}

.coming-soon-banner {
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 0;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--white);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .top-section {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .top-section .waitlist {
        text-align: center;
        width: 100%;
    }

    .hero,
    .hero-reverse {
        flex-direction: column;
        gap: 40px;
    }

    .hero .description {
        order: 1;
    }

    .hero .media-container {
        order: 2;
    }

    .media-container {
        max-width: 280px;
        min-width: auto;
        margin: 0 auto;
    }

    .description {
        text-align: center;
    }

    .waitlist {
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .app-name {
        font-size: 2.75rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    main {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .description h2 {
        font-size: 2rem;
    }

    .description p {
        font-size: 1.125rem;
    }

    .waitlist h2 {
        font-size: 1.75rem;
    }

    .form-group {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .media-placeholder {
        padding: 150px 30px;
    }

    .media-container {
        max-width: 240px;
        min-width: auto;
        padding: 16px 10px;
        border-radius: 35px;
    }

    .media-container::before {
        width: 80px;
        height: 20px;
    }

    .media-container::after {
        width: 50px;
        height: 5px;
        top: 12px;
    }

    .media-container video,
    .media-container img {
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 30px 10px;
    }

    .app-name {
        font-size: 2rem;
    }

    main {
        padding: 30px 15px;
        border-radius: 16px;
    }

    .description h2 {
        font-size: 1.5rem;
    }

    .description p {
        font-size: 1rem;
    }

    .media-container {
        max-width: 200px;
        padding: 14px 8px;
        border-radius: 32px;
    }

    .media-container::before {
        width: 70px;
        height: 18px;
    }

    .media-container::after {
        width: 45px;
        height: 4px;
        top: 11px;
    }

    .media-container video,
    .media-container img {
        border-radius: 22px;
    }
}
