:root {
    --primary: #E07A5F;
    --primary-dark: #C86850;
    --secondary: #81B29A;
    --accent: #F2CC8F;
    --bg-primary: #FFFCF9;
    --bg-secondary: #FFF8F3;
    --text-primary: #2D3142;
    --text-secondary: #5A5F73;
    --text-tertiary: #9B9FA8;
    --white: #FFFFFF;
    --shadow: rgba(45, 49, 66, 0.12);
    --border-radius: 16px;
    --border-base: #E8E3DD;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --btn-radius: 12px;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.drawn-underline {
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.drawn-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 120 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,6 C30,9 60,-2 118,6' stroke='%23E07A5F' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    animation: draw-line 1s ease-out forwards 0.5s;
}

@keyframes draw-line {
    to {
        width: 100%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 252, 249, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.logo img {
    width: auto;
    height: 60px;
    object-fit: contain;
}

.logo svg {
    width: 32px;
    height: 32px;
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.btn-download {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.btn-download:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 122, 95, 0.4);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1.2;
    /* Give slightly more room to content but keep balance */
    max-width: 600px;
}

.hero-tagline {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 64px);
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.hero-btns.center {
    justify-content: center;
}

.store-btn {
    height: 54px;
    transition: var(--transition);
}

.store-btn:hover {
    transform: scale(1.05);
}

.hero-image {
    flex: 1.5;
    /* Prioritize image size */
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20px;
    left: -40px;
}

.card-2 {
    bottom: 40px;
    right: -20px;
    animation-delay: 1s;
}

@keyframes float {

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

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

/* Features */
.features {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

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

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 16px;
}

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

/* About Section */
.about-section {
    padding: 100px 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-grid {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-signup-box {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    border: 1px solid var(--border-base);
}

.about-signup-header h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--white);
}

.about-signup-header p {
    font-size: 18px;
}

.about-form.beta-form {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 8px;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.about-form .beta-input-row {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: center;
}

.about-form .beta-field {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--white);
    flex: 1;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}



.about-form .beta-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}


.about-form .btn-beta {
    background: var(--white);
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 0;
    padding: 12px 24px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-form .btn-beta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.about-form.success {
    min-height: 150px;
    align-items: center;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
}

.stat-value.primary {
    color: var(--primary);
}

.stat-value.secondary {
    color: var(--secondary);
}

.stat-value.accent {
    color: var(--accent);
}

.stat-label {
    color: var(--text-tertiary);
}

/* Beta Signup Form */
.beta-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 40px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-items: center;
    box-sizing: border-box;
}

.beta-input-group {
    display: flex;
    flex: 1;
    align-items: center;
}

.beta-field {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: var(--white);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.beta-field:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.beta-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-beta {
    background-color: var(--white);
    color: var(--primary);
    border: none;
    padding: 12px 20px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 4px;
}

.btn-beta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Success State */
.success-message {
    display: none;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-weight: 700;
    color: var(--secondary);
    animation: fadeIn 0.5s ease-out;
}

.success-message-bottom {
    display: none;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-weight: 700;
    color: var(--white);
    animation: fadeIn 0.5s ease-out;
}

.beta-form.success {
    background: rgba(129, 178, 154, 0.15);
    border-color: var(--secondary);
    justify-content: center;
}

.beta-form.success .beta-input-group,
.beta-form.success .beta-input-row,
.beta-form.success .btn-beta {
    display: none;
}

.beta-form.success .success-message {
    display: block;
}

.beta-form.success .success-message-bottom {
    display: block;
}

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

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

.beta-form.hero-form {
    margin: 0;
    max-width: 550px;
    /* Reduced width since it's now two rows */
    background: var(--bg-secondary);
    border: 1px solid var(--border-base);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    flex-direction: column;
    padding: 8px;
    border-radius: 24px;
    /* More rounded square for two rows */
    gap: 8px;
}

.beta-form.hero-form .beta-input-row {
    display: flex;
    width: 100%;
    gap: 8px;
}

.beta-form.hero-form .beta-field {
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    padding: 12px 16px;
}

.beta-form.hero-form .beta-field:not(:last-child) {
    border-right: 1px solid var(--border-base);
}

.beta-form.hero-form .beta-field::placeholder {
    color: var(--text-tertiary);
}

.beta-form.hero-form .btn-beta {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.2);
}

.beta-form.hero-form .btn-beta:hover {
    background-color: var(--primary-dark);
}

/* Success State for Hero Two-Row Form */
.beta-form.hero-form.success {
    justify-content: center;
    min-height: 120px;
}

.beta-form.hero-form.success .beta-input-row,
.beta-form.about-form.success .beta-input-row {
    display: none;
}

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

@media (max-width: 968px) {
    .beta-form.hero-form {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .beta-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        border: none;
        backdrop-filter: none;
        border-radius: 0;
    }

    .beta-input-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 12px;
    }

    .beta-field {
        background: rgba(255, 255, 255, 0.2);
        padding: 16px 24px;
        border-radius: 30px;
        width: 100%;
        border-right: none !important;
    }

    .beta-form.hero-form .beta-field {
        background: var(--bg-secondary);
        border: 1px solid var(--border-base);
    }

    .btn-beta {
        width: 100%;
    }
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    background: var(--primary);
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.cta-box h2 {
    font-size: 48px;
    margin: 0;
}

.cta-box p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0;
}

.cta-section .beta-form {
    margin: 0;
}

/* Footer */
footer {
    padding: 140px 0 180px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

footer .logo img {
    width: auto;
    height: 50px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 16px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 24px;
        font-weight: 700;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .btn-download {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 0 60px;
        gap: 40px;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .beta-form.hero-form {
        max-width: 100%;
        width: 100%;
    }

    .beta-form.hero-form .beta-input-row {
        flex-direction: column;
        gap: 12px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
        margin: 0 auto 32px;
    }

    .hero-btns.center {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-section {
        flex-direction: column;
        padding: 60px 0;
        gap: 40px;
    }

    .about-content h2 {
        font-size: 32px;
        text-align: center;
    }

    .about-content p {
        text-align: center;
        font-size: 16px;
    }

    .about-grid {
        width: 100%;
        padding: 30px 20px;
    }

    .stat-value {
        font-size: 28px;
    }

    .features {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .feature-card {
        padding: 30px 20px;
    }

    .cta-box {
        padding: 60px 24px;
    }

    .cta-box h2 {
        font-size: 36px;
    }

    .cta-box p {
        font-size: 18px;
    }

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

    .card-1,
    .card-2 {
        display: none;
    }

    .about-signup-box {
        padding: 40px 24px;
        gap: 24px;
    }

    .about-form.beta-form {
        border-radius: 20px;
        padding: 16px;
    }

    .about-form .beta-input-row {
        flex-direction: column;
        gap: 8px;
        padding: 0;
    }

    .about-form .beta-field {
        width: 100%;
        border-right: none !important;
        border-bottom: none;
        border-radius: 12px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.15);
    }

    .about-form .btn-beta {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
        padding: 14px;
        border-radius: 12px;
    }
}