:root {
    --primary-color: #2D3E50;
    /* Premium dark blue */
    --primary-hover: #1A252F;
    --secondary-color: #34495E;
    /* Deep midnight blue */
    --background-light: #F7FAFC;
    --text-dark: #2C3E50;
    --text-light: #F1F2F6;
    --card-bg: #FFFFFF;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --badge-bg: #FFD166;
    /* Warm highlight contrast */
    --badge-text: #2C3E50;

    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--background-light);
    transform: skewY(-2deg);
}

.hero .container {
    animation: slideUp 0.8s ease-out forwards;
}

.badge {
    display: inline-block;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 1.5rem;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2.5s infinite ease-in-out;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Waitlist Form */
.waitlist-container {
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.waitlist-container p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.waitlist-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.waitlist-input:focus {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 209, 102, 0.5);
}

.waitlist-btn {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.waitlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 209, 102, 0.4);
}

@media (min-width: 600px) {
    .waitlist-form {
        flex-direction: row;
        gap: 10px;
    }

    .waitlist-btn {
        width: auto;
        white-space: nowrap;
    }
}

/* Form Status Messages */
#waitlist-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 1rem;
    display: none;
    text-align: center;
}

#waitlist-status.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.2);
    color: #a8f0c3;
    /* lighter green for dark bg */
    border: 1px solid #2ecc71;
}

#waitlist-status.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    color: #ffb8b1;
    /* lighter red/pink for dark bg */
    border: 1px solid #e74c3c;
}

#waitlist-status.loading {
    display: block;
    background-color: rgba(255, 209, 102, 0.2);
    color: var(--badge-bg);
    /* Use the same yellow as the button */
    border: 1px solid var(--badge-bg);
}

/* Features Grid */
.how-it-works {
    padding: 100px 0;
}

.section-intro {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.algorithm-info {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 auto;
    background: rgba(45, 62, 80, 0.1);
    padding: 20px;
    border-radius: 15px;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background-color: var(--background-light);
}

.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.app-screenshot {
    max-width: 280px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-screenshot:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Benefits Banner */
.highlight-section {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0;
    position: relative;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-check {
    background: white;
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-item h3 {
    margin-bottom: 5px;
}

.benefit-item p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Highlights Grid */
.features {
    padding: 100px 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.highlight-card h3 {
    color: var(--primary-color);
}

/* About Me Section */
.about-me {
    padding: 80px 0;
    background-color: var(--card-bg);
    /* Use white background to stand out from screenshots */
}

.about-me-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 768px) {
    .about-me-content {
        flex-direction: row;
        text-align: left;
    }
}

.about-image-wrapper {
    flex-shrink: 0;
}

.about-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 5px solid white;
    outline: 3px solid var(--primary-color);
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .about-text h2 {
        text-align: center;
    }
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-cta-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

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

/* Closing */
.closing {
    text-align: center;
    padding: 80px 0 120px;
}

.closing h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.closing p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Legal Pages */
.legal-page {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.legal-page h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legal-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-page li {
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.lang-switcher-fixed {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: var(--badge-bg);
    color: var(--badge-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.lang-switcher-fixed .lang-btn {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.08);
    /* slightly darker for better contrast */
}

.lang-switcher-fixed .lang-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

.lang-switcher-fixed .lang-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}