/* ============================
   Agent AI — Dark + Light Theme
   ============================ */

/* Dark theme (default) */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a26;
    --bg-card-hover: #222233;
    --bg-elevated: #252538;
    --text-primary: #f0f0f4;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --accent: #6C5CE7;
    --accent-hover: #7d6ff0;
    --accent-glow: rgba(108, 92, 231, 0.15);
    --accent-subtle: rgba(108, 92, 231, 0.08);
    --border: #2a2a3e;
    --border-light: #33334d;
    --navbar-bg: rgba(10, 10, 15, 0.85);
    --navbar-bg-scrolled: rgba(10, 10, 15, 0.95);
    --hero-gradient: linear-gradient(135deg, #f0f0f4 0%, #a0a0b8 100%);
    --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    --hero-card-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --msg-system-bg: rgba(46, 213, 115, 0.15);
    --msg-system-border: rgba(46, 213, 115, 0.2);
    --scrollbar-thumb: #2a2a3e;
    --nav-mobile-bg: rgba(10, 10, 15, 0.98);
    --lang-menu-bg: #1a1a26;
    --lang-menu-border: #2a2a3e;
    --lang-menu-hover: #222233;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --max-width: 1100px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f8f8fc;
    --bg-secondary: #eeeeff;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f4ff;
    --bg-elevated: #eaeaef;
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --accent: #6C5CE7;
    --accent-hover: #5a4bd4;
    --accent-glow: rgba(108, 92, 231, 0.12);
    --accent-subtle: rgba(108, 92, 231, 0.06);
    --border: #d8d8e8;
    --border-light: #c8c8dd;
    --navbar-bg: rgba(248, 248, 252, 0.85);
    --navbar-bg-scrolled: rgba(248, 248, 252, 0.95);
    --hero-gradient: linear-gradient(135deg, #1a1a2e 0%, #555570 100%);
    --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    --hero-card-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    --msg-system-bg: rgba(46, 213, 115, 0.08);
    --msg-system-border: rgba(46, 213, 115, 0.2);
    --scrollbar-thumb: #c8c8dd;
    --nav-mobile-bg: rgba(248, 248, 252, 0.98);
    --lang-menu-bg: #ffffff;
    --lang-menu-border: #d8d8e8;
    --lang-menu-hover: #f4f4ff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

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

/* ============================
   Navigation
   ============================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 68px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        background: var(--nav-mobile-bg);
        backdrop-filter: blur(20px);
        transition: right 0.3s ease;
        gap: 16px;
    }
    .nav-right.open {
        right: 0;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    .nav-controls {
        margin-top: 16px;
    }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; }
    .nav-right.open .nav-links { display: flex; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo svg {
    flex-shrink: 0;
}

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

/* Nav Controls (language + theme) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 24px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.lang-toggle svg {
    width: 16px;
    height: 16px;
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--lang-menu-bg);
    border: 1px solid var(--lang-menu-border);
    border-radius: var(--radius-sm);
    padding: 4px;
    list-style: none;
    min-width: 130px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.lang-menu.show {
    display: block;
}

.lang-menu li {
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.lang-menu li:hover {
    background: var(--lang-menu-hover);
    color: var(--text-primary);
}

.lang-menu li.active {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    width: 34px;
    height: 34px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

.theme-toggle svg {
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(30deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================
   Hero
   ============================ */

.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-subtle);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-sub strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    font-family: var(--font);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* Hero Visual Card */
.hero-visual {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--hero-card-shadow);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-card-dot.green { background: #2ed573; }
.hero-card-dot.yellow { background: #ffa502; }
.hero-card-dot.red { background: #ff4757; }

.hero-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
    letter-spacing: 0.03em;
}

.hero-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
    animation: msgIn 0.3s ease-out;
}

.chat-msg.received {
    background: var(--bg-elevated);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.sent {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg.system {
    background: var(--msg-system-bg);
    border: 1px solid var(--msg-system-border);
    color: #2ed573;
    align-self: flex-start;
}

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

/* ============================
   Sections
   ============================ */

.section {
    padding: 100px 0;
    text-align: center;
    transition: background 0.3s ease;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--accent-subtle);
    border: 1px solid rgba(108, 92, 231, 0.15);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* ============================
   Use Case Tagline
   ============================ */

.use-case-tagline {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 100px;
    background: var(--accent-subtle);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

/* ============================
   Grid / Cards
   ============================ */

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: left;
    transition: all 0.3s;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 92, 231, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ============================
   Features Grid
   ============================ */

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    background: var(--accent-subtle);
    border-radius: var(--radius);
}

.feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
}

.feature-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================
   Steps / How it works
   ============================ */

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.step-num {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin: 8px 0 8px 25px;
}

.cta-block {
    margin-top: 52px;
    text-align: center;
}

.cta-block p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Clara block */
.clara-block {
    margin-top: 64px;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.clara-block p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ============================
   Coming Soon / Pricing
   ============================ */

.coming-soon {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    max-width: 480px;
    margin: 0 auto;
}

.coming-soon-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.coming-soon p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.waitlist-form input {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    min-width: 240px;
    outline: none;
    transition: border-color 0.2s, background 0.3s ease, color 0.3s ease;
}

.waitlist-form input:focus {
    border-color: var(--accent);
}

.waitlist-form input::placeholder {
    color: var(--text-muted);
}

/* ============================
   Footer
   ============================ */

.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--text-primary);
}

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

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

/* ============================
   Responsive
   ============================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--nav-mobile-bg);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-controls {
        margin-right: 12px;
        margin-left: auto;
    }

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

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

    .features-grid {
        padding: 0;
    }

    .feature-item {
        padding: 20px 16px;
    }

    .coming-soon {
        padding: 32px 20px;
    }

    .waitlist-form {
        flex-direction: column;
        align-items: center;
    }

    .waitlist-form input {
        min-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .steps {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .section {
        padding: 60px 0;
    }
}

/* ============================
   Utilities
   ============================ */

::selection {
    background: var(--accent);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}


/* Booking slot buttons in chat */
.booking-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.slot-btn {
    background: var(--accent-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.2s ease;
    width: 100%;
}
.slot-btn small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 400;
    margin-top: 2px;
    opacity: 1;
}
.slot-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    transform: translateX(4px);
}

.slot-highlighted {
    background: var(--accent-subtle);
    border-color: var(--accent);
    border-width: 1.5px;
}
.slot-highlighted:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 12px var(--accent-glow);
}
.chat-msg.system a {
    color: var(--accent);
    text-decoration: underline;
}
