:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #000000;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --primary-color: #D58844;
    --accent-color: #D58844;
    --border-color: #dee2e6;
    --heart-color: #D58844;
    --gradient-start: #FFDAB9;
    --gradient-end: #D58844;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6c757d;
    --border-color: #404040;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-bottom-border {
    height: 2px;
    background: var(--border-color);
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo-image {
    height: 40px;
    width: auto;
}

.desktop-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.mobile-actions {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    border-radius: 8px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: var(--bg-primary);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-highlight {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hearts-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 69%;
    max-width: 500px;
    margin: 0 auto;
}

.heart-image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease-out;
    z-index: 10;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe4c4, var(--heart-color));
    box-shadow: 0 0 8px var(--heart-color);
    opacity: 0;
    animation: particleConverge 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 5;
}

@keyframes particleConverge {
    0% {
        transform: translate(var(--tx), var(--ty)) scale(0.1);
        opacity: 1;
    }
    60% {
        opacity: 0.9;
    }
    100% {
        transform: translate(0, 0) scale(0.3);
        opacity: 0;
    }
}

.heart-image {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 20px rgba(213, 136, 68, 0.3));
    }
    15% {
        transform: translate(-50%, -50%) scale(1.08);
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    45% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    60% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 560px;
}

.btn {
    position: relative;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    width: 270px;
    border: 2px solid transparent;
    cursor: pointer;
    z-index: 1;
    margin-top: 20px;
    overflow: hidden;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.btn span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.btn-outline {
    background: rgba(26, 26, 26, 0.8);
    border-color: #D58844;
    color: #fff;
}

.btn-outline:hover {
    border-color: #e8a04d;
    box-shadow: 0 0 25px rgba(213, 136, 68, 0.4), inset 0 0 20px rgba(213, 136, 68, 0.1);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline:hover span {
    text-shadow: 0 0 15px rgba(255, 218, 185, 0.5);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #FFDAB9, #D58844);
    color: #1a1a1a;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffe4c4, #e8a04d);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(213, 136, 68, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-3px);
}

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

.btn-primary span {
    position: relative;
    z-index: 2;
}

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

/* Features Section */
.features {
    padding: 4rem 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.features-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.features-grid {
    display: grid;
    grid-template-areas:
        "top-left top-right"
        "bottom-left bottom-right";
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
}

.top-left {
    grid-area: top-left;
    transform: translate(-10%, 0);
}

.top-right {
    grid-area: top-right;
    transform: translate(10%, 0);
}

.bottom-left {
    grid-area: bottom-left;
    transform: translate(-15%, -10%);
}

.bottom-right {
    grid-area: bottom-right;
    transform: translate(15%, -10%);
}

.feature-icon {
    width: 180px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    max-width: 250px;
}

/* Chat Section */
.chat-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.chat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.chat-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

/* Monetization Section */
.monetization-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.monetization-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.image-wrapper {
    flex: 1;
}

.monetization-image {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.highlight-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 2rem;
    border-radius: 15px;
    color: white;
}

.highlight-text p:first-child {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 3rem 0 1rem;
    position: relative;
    margin-top: 3rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    height: 1px;
    background: var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.company-info p,
.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.payment-icon {
    height: 24px;
    width: auto;
}

.payment-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.seo-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(to right, #FFDAB9, #D58844) border-box;
    position: relative;
    padding: 1.5rem;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.popup-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #374151;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 0.25rem;
}

.form-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #D58844;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #D58844;
    box-shadow: 0 0 0 3px rgba(213, 136, 68, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.form-links {
    display: flex;
    justify-content: flex-end;
}

.forgot-link {
    font-size: 0.875rem;
    color: #D58844;
    text-decoration: none;
}

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

.auth-submit-btn {
    background: transparent;
    color: #D58844;
    border: 1px solid #D58844;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-submit-btn:hover {
    background: #FFDAB9;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #D58844;
}

.switch-link {
    background: none;
    border: none;
    color: #D58844;
    cursor: pointer;
    text-decoration: underline;
}

.switch-link:hover {
    text-decoration: none;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-bottom-border {
        width: 92%;
    }

    .desktop-nav-wrapper {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: none;
    }

    .features-grid {
        grid-template-areas:
            "top-left"
            "top-right"
            "bottom-left"
            "bottom-right";
        gap: 1.5rem;
    }

    .feature-card {
        transform: none !important;
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .monetization-content {
        flex-direction: column;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .features-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    .popup-content {
        margin: 20px;
        padding: 1rem;
    }
}
