:root {
    --bg: #0a0a14;
    --bg-alt: #0f0f1e;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f0;
    --text-dim: #a0a0b8;
    --text-muted: #6b6b82;
    --accent: #7c5cff;
    --accent-2: #00d4ff;
    --gradient: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
    --radius: 14px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.bg-gradient {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.25) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.bg-gradient::after {
    content: "";
    position: fixed;
    top: 30%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.18) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 10, 20, 0.7);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

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

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-sm {
    padding: 9px 16px;
    font-size: 14px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 24px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(124, 92, 255, 0.5);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-block {
    width: 100%;
}

/* HERO */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 19px;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-meta {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-head p {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.feature:hover {
    background: var(--surface-hover);
    border-color: rgba(124, 92, 255, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-dim);
    font-size: 15px;
}

/* CHAT DEMO */
.chat-demo {
    max-width: 520px;
    margin: 0 auto;
}

.chat-window {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 92, 255, 0.1);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.chat-name {
    font-weight: 600;
    font-size: 15px;
}

.chat-status {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.chat-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14.5px;
    line-height: 1.5;
    animation: fadeUp 0.4s ease both;
}

.msg-bot {
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

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

.msg:nth-child(2) { animation-delay: 0.3s; }
.msg:nth-child(3) { animation-delay: 0.6s; }
.msg:nth-child(4) { animation-delay: 0.9s; }
.msg:nth-child(5) { animation-delay: 1.2s; }

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

.chat-input {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.chat-input input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.chat-input button {
    width: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    color: white;
    cursor: pointer;
    font-size: 16px;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.price-card {
    position: relative;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

.price-card-highlight {
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.08) 0%, var(--surface) 100%);
    border-color: rgba(124, 92, 255, 0.4);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.2), 0 20px 60px rgba(124, 92, 255, 0.15);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.price-name {
    font-size: 14px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.price-value {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.price-value span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dim);
}

.price-desc {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.price-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.price-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14.5px;
    color: var(--text-dim);
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-weight: 700;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}

/* LEGAL PAGES (privacy, terms) */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.legal-notice {
    padding: 14px 18px;
    background: rgba(255, 200, 50, 0.08);
    border: 1px solid rgba(255, 200, 50, 0.3);
    border-radius: var(--radius-sm);
    color: #ffd166;
    font-size: 14px;
    margin-bottom: 40px;
}

.legal h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal .updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 12px;
    letter-spacing: -0.01em;
}

.legal h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--text);
}

.legal p,
.legal li {
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 1.7;
}

.legal ul,
.legal ol {
    margin: 12px 0 12px 22px;
}

.legal li {
    margin-bottom: 6px;
}

.legal a {
    color: var(--accent-2);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.legal a:hover {
    border-bottom-color: var(--accent-2);
}

.legal strong {
    color: var(--text);
}

.placeholder {
    background: rgba(124, 92, 255, 0.15);
    color: #b8a5ff;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.92em;
}

/* RESPONSIVE */
@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

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

    .section {
        padding: 60px 0;
    }

    .hero-meta {
        gap: 14px;
        font-size: 13px;
    }
}
