@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --glass-surface: rgba(207, 207, 207, 0.78);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --text-strong: #050505;
    --text-muted: rgba(5, 5, 5, 0.6);
    --accent-dark: #0c0c0c;
    --accent-light: rgba(255, 255, 255, 0.92);
    --shadow-lg: 0 28px 48px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 16px 30px rgba(0, 0, 0, 0.18);
    --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f6f6f6 0%, #dcdcdc 100%);
    color: var(--text-strong);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: -140px;
    background:
        radial-gradient(circle at top left, rgba(162, 192, 255, 0.65), transparent 60%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.35), transparent 45%);
    filter: blur(38px);
    z-index: 0;
}

main,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    width: min(1200px, calc(100% - 64px));
    margin: 32px auto 0;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-surface);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
}

.branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.branding img {
    height: 52px;
    width: auto;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-strong);
}

.header-button {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--accent-dark);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.hero {
    width: min(1200px, calc(100% - 64px));
    margin: 48px auto 0;
    padding: 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-title {
    display: block;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
}

#typewriter {
    display: inline-block;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-muted);
    min-height: 1.2em;
}

#typewriter::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 6px;
    background: var(--text-muted);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.lead {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(5, 5, 5, 0.72);
    max-width: 640px;
}

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

.primary-btn {
    background: var(--accent-dark);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.24);
}

.secondary-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 13px 23px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-strong);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.secondary-btn:hover {
    border-color: var(--text-strong);
    box-shadow: var(--shadow-sm);
}

.hero-highlights {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    min-width: 120px;
}

.highlight-value {
    font-size: 22px;
    font-weight: 700;
}

.highlight-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.chat-shell {
    display: flex;
    justify-content: center;
}

.chat-card {
    width: min(520px, 100%);
    background: var(--glass-surface);
    backdrop-filter: blur(26px);
    border-radius: 36px;
    padding: 26px 24px 22px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.chat-card::before {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: -1;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.08));
    opacity: 0.35;
}

.chat-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-card-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-strong);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4cd964;
    box-shadow: 0 0 0 4px rgba(76, 217, 100, 0.18);
}

.chat-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.chat-box {
    flex: 1;
    min-height: 240px;
    max-height: 380px;
    overflow-y: auto;
    padding: 18px 16px;
    border-radius: 24px;
    background: var(--glass-bg);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.chat-box::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.user-mess,
.bot-mess {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
}

.user-mess {
    align-items: flex-end;
    background: linear-gradient(135deg, #050505, #202020);
    color: #ffffff;
}

.bot-mess {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.92);
    color: #0a0a0a;
}

.profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.3);
}

.user-mess .profile {
    background: rgba(255, 255, 255, 0.08);
}

.profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.profile h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: inherit;
}

.chat-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.user-mess p {
    color: rgba(255, 255, 255, 0.92);
}

.composer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px 12px 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), var(--shadow-sm);
}

.composer textarea {
    flex: 1;
    min-height: 36px;
    max-height: 180px;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-strong);
}

.composer textarea::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.send-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.12);
    color: rgba(5, 5, 5, 0.55);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.send-button i {
    font-size: 22px;
}

.send-button:hover {
    transform: translateY(-2px);
}

.send-button.active {
    background: var(--accent-dark);
    color: #ffffff;
}

.chat-hint {
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.features {
    width: min(1200px, calc(100% - 64px));
    margin: 80px auto 0;
    padding: 0 28px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
}

.section-heading p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(5, 5, 5, 0.7);
}

.feature-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.feature-card {
    padding: 28px 26px;
    border-radius: 28px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(5, 5, 5, 0.72);
    flex: 1;
}

.ghost-btn {
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.ghost-btn:hover {
    border-color: var(--text-strong);
    box-shadow: var(--shadow-sm);
}

.usecases {
    width: min(1200px, calc(100% - 64px));
    margin: 80px auto 0;
    padding: 0 28px;
}

.usecase-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.usecase-card {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usecase-pill {
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.1);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.usecase-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(5, 5, 5, 0.75);
}

.site-footer {
    width: min(1200px, calc(100% - 64px));
    margin: 100px auto 40px;
    padding: 22px 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(5, 5, 5, 0.65);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

@media (max-width: 1024px) {
    .site-header {
        width: min(960px, calc(100% - 40px));
        padding: 16px 22px;
    }

    .hero {
        width: min(960px, calc(100% - 40px));
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .chat-shell {
        justify-content: flex-start;
    }

    .chat-card {
        margin: 0 auto;
    }

    .feature-grid,
    .usecase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        margin-top: 40px;
    }

    .hero-highlights {
        gap: 12px;
    }

    .chat-card {
        padding: 20px 18px;
    }

    .chat-box {
        max-height: 340px;
    }

    .feature-grid,
    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    body {
        background: linear-gradient(135deg, #f8f8f8 0%, #eaeaea 100%);
    }

    .site-header,
    .hero,
    .features,
    .usecases,
    .site-footer {
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .composer {
        padding: 10px 12px;
    }

    .send-button {
        width: 44px;
        height: 44px;
    }
}
