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

:root {
    --primary: #E07830;
    --primary-dark: #C56A28;
    --secondary: #D4702A;
    --text-primary: #111111;
    --text-secondary: #555555;
    --bg-main: #FAFAFA;
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-bg-hover: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --text-primary: #F5F5F5;
    --text-secondary: #888888;
    --bg-main: #0A0A0A;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-left: 1px solid rgba(128, 128, 128, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 2px solid var(--bg-main);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
    border: 2px solid transparent;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-main);
}

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

/* Header */
.header {
    padding: 2rem 0;
    animation: fadeInDown 0.8s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-toggle {
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--shadow-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color);
    border-color: var(--primary);
}

.theme-toggle:active {
    transform: translateY(0);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo img {
    width: 56px;
    height: 56px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 6rem;
    animation: fadeInUp 1s ease-out;
}

.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 20px 0 var(--shadow-color);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.gradient-text {
    color: var(--primary);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px 0 var(--shadow-color);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out backwards;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px 0 var(--shadow-color);
    border-color: var(--primary);
    background: var(--card-bg-hover);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature:hover .feature-icon {
    color: var(--primary);
    border-color: var(--primary);
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Services Section */
.services-section {
    margin: 6rem 0 4rem;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 3rem;
}

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

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px 0 var(--shadow-color);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.6s; }
.service-card:nth-child(2) { animation-delay: 0.7s; }
.service-card:nth-child(3) { animation-delay: 0.8s; }
.service-card:nth-child(4) { animation-delay: 0.9s; }
.service-card:nth-child(5) { animation-delay: 1s; }

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 24px 0 var(--shadow-color);
    background: var(--card-bg-hover);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card:hover .service-icon {
    color: var(--primary);
    border-color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 50%;
}

/* Chat CTA Section */
.chat-cta {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px 0 var(--shadow-color);
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-status {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.chat-messages {
    padding: 1.5rem;
}

.chat-message {
    display: inline-block;
    padding: 0.875rem 1.25rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
}

.chat-message p {
    margin: 0 0 0.875rem 0;
}

.chat-message.ai {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chat-btn:hover {
    opacity: 0.9;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.chat-input-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-input-field::placeholder {
    color: var(--text-secondary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.chat-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.beta-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.beta-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.beta-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.beta-toggle-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
}

.beta-toggle.active .beta-toggle-dot {
    opacity: 1;
}

/* Footer */
.footer {
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

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

/* Background Grid */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

[data-theme="dark"] .background-gradient {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Floating Icons - Hidden */
.floating-icons {
    display: none;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 2rem 0 4rem;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-section {
        margin: 4rem 0 3rem;
    }

    .cta {
        padding: 2rem 1.5rem;
    }

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

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

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

    .hero-card {
        padding: 2rem 1.5rem;
    }

    .title {
        font-size: 1.5rem;
        white-space: normal;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .feature {
        padding: 2rem 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

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

    .cta {
        padding: 1.5rem 1rem;
    }

    .logo {
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
    }

    .theme-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
    }
}
