/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Colors */
    --primary: #00B894;
    --primary-dark: #00A884;
    --primary-light: #00D1A0;
    --secondary: #6C5CE7;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAFC;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --success: #48BB78;
    --error: #F56565;

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

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --text-primary: #F7FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #A0AEC0;
    --bg-primary: #1A202C;
    --bg-secondary: #2D3748;
    --bg-card: #2D3748;
    --border: #4A5568;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   HEADER CONTROLS
   =================================== */
.header-controls {
    position: fixed;
    top: calc(24px + env(safe-area-inset-top));
    right: calc(24px + env(safe-area-inset-right));
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.sun-icon {
    display: block;
    color: var(--primary);
}

.moon-icon {
    display: none;
    color: var(--primary);
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 80px;
    /* Reduced top padding from 80px to 40px */
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    text-align: left;
}

.hero-content {
    max-width: 600px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.beautified-image {
    width: 100%;
    max-width: 280px;
    /* Reduced from 320px for a more compact look */
    height: auto;
    border-radius: 28px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: var(--transition);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
    border: 6px solid var(--bg-card);
}

.beautified-image:hover {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

@keyframes floating {

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

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

@keyframes badge-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--primary);
    animation: badge-pulse 2s infinite;
}

.hero-brand {
    margin-bottom: 24px;
    /* Reduced from 32px */
}

.brand-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(0, 184, 148, 0.2));
}

.hero-brand-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-brand-slogan {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    margin: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin: 0 0 40px;
    line-height: 1.7;
}

/* ===================================
   WAITLIST FORM
   =================================== */
.waitlist-form {
    max-width: 500px;
    margin: 0 auto 0;
}

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

#emailInput {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}

#emailInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 184, 148, 0.3);
}

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

.btn-icon {
    transition: transform 0.3s ease;
}

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

.form-hint {
    font-size: 14px;
    color: var(--text-muted);
    text-align: left;
    margin-top: 12px;
    margin-bottom: 8px;
    /* Reduced from 24px */
}

.success-message {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    /* Left aligned by default for desktop */
    gap: 16px;
    padding: 32px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 16px;
    animation: slideIn 0.5s ease;
    text-align: left;
}

.success-message.show {
    display: flex;
}

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

.success-message h3 {
    font-size: 24px;
    font-weight: 700;
}

.success-message p {
    color: var(--text-secondary);
}

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

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

/* ===================================
   SOCIAL PROOF
   =================================== */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left aligned for desktop */
    gap: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    /* Reduced from 24px */
}

.avatars {
    display: flex;
    margin-right: -8px;
}

.avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    font-size: 20px;
    margin-right: -12px;
    box-shadow: var(--shadow-sm);
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.feature-icon svg {
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card.highlight {
    border-color: var(--primary);
    background: linear-gradient(to bottom right, var(--bg-card), rgba(0, 184, 148, 0.05));
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: highlightedGlow 3s infinite ease-in-out;
}

@keyframes highlightedGlow {

    0%,
    100% {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-color: var(--primary);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 184, 148, 0.3);
        border-color: var(--primary-light);
    }
}

.feature-card.highlight::after {
    content: "TOP";
    position: absolute;
    top: 8px;
    right: -32px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 35px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* ===================================
   SHOWCASE SECTION
   =================================== */
/* Showcase section removed as per user request */

/* ===================================
   PRICING SECTION
   =================================== */
.pricing {
    padding: var(--section-padding);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.plan-price {
    margin-bottom: 32px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
}

.period {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
}

.plan-features li svg {
    flex-shrink: 0;
    color: var(--success);
}

.plan-features li.disabled {
    opacity: 0.4;
}

.plan-features li.disabled svg {
    color: var(--error);
}

.plan-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.plan-button:hover {
    background: var(--bg-secondary);
}

.plan-button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
}

.plan-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 184, 148, 0.3);
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq {
    padding: var(--section-padding);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 80px 24px 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.footer-column a {
    display: block;
    padding: 8px 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===================================
   ANIMATIONS
   =================================== */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.5s;
}

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

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 40px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .brand-main {
        flex-direction: column;
        gap: 16px;
    }

    .brand-logo {
        width: 80px;
        height: 80px;
    }

    .hero-brand-title {
        font-size: 3rem;
    }

    .hero-brand-slogan {
        font-size: 1.4rem;
    }

    .hero-image {
        order: 1;
        /* Image after text */
        width: 100%;
    }

    .form-hint {
        text-align: center;
    }

    .success-message {
        align-items: center;
        text-align: center;
    }

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

    .beautified-image {
        max-width: 280px;
        /* Slightly smaller for better focus on text */
        transform: rotateY(0) rotateX(0);
        /* Remove rotation on mobile for perfect centering */
        margin: 0 auto;
    }

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

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .header-controls {
        top: 12px;
        right: 12px;
        left: auto;
        transform: none;
        margin: 0;
        width: auto;
        gap: 6px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .lang-toggle {
        padding: 8px 10px;
        font-size: 13px;
    }

    .lang-toggle .chevron {
        width: 14px;
        height: 14px;
    }
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 184, 148, 0.5);
}

/* Dark mode scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 209, 160, 0.6);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] * {
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.08);
}

/* ===================================
   LANGUAGE SELECTOR
   =================================== */
.lang-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.lang-toggle:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.lang-toggle .lang-code {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lang-toggle .chevron {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.lang-selector.open .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1002;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-radius: 8px;
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(0, 184, 148, 0.1);
    color: var(--primary);
    font-weight: 600;
}