/* ─── DESIGN SYSTEM ─── */
:root {
    --bg: #06060a;
    --bg-card: #0d0d14;
    --bg-subtle: #12121e;
    --border: #1e1e30;
    --border-glow: rgba(139, 92, 246, 0.35);
    --text: #f0f0ff;
    --text-muted: #7878a0;
    --text-dim: #44445a;
    --violet: #8b5cf6;
    --cyan: #22d3ee;
    --green: #22c55e;
    --amber: #f59e0b;
    --gradient-1: linear-gradient(135deg, #8b5cf6, #22d3ee);
    --gradient-2: linear-gradient(135deg, #6d28d9, #0891b2);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    line-height: 1.7;
    font-size: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
    background: var(--violet);
    border-radius: 10px;
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 500; }

section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    transition: 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s ease;
    user-select: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 35px rgba(139, 92, 246, 0.4); }
}

.btn-primary:hover {
    filter: brightness(1.15);
    transform: scale(1.03);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--violet);
    color: var(--text);
}

.badge {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 24px;
    position: relative;
}

.badge-gradient {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
                var(--gradient-1) border-box;
}

/* ─── NAVBAR ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.4s ease;
}

nav.scrolled {
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(16px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--violet);
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

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

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

.nav-actions .sign-in {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-actions .get-started {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ─── HERO SECTION ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 140px;
    padding-bottom: 40px;
    overflow: visible;
}

/* Aurora mesh */
.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--violet);
    top: -100px;
    left: -100px;
    animation: drift 12s infinite alternate ease-in-out;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--cyan);
    bottom: 100px;
    right: -100px;
    animation: drift 18s infinite alternate ease-in-out 1s;
}

.blob-3 {
    width: 700px;
    height: 700px;
    background: #4f46e5;
    top: 20%;
    left: 30%;
    animation: pulse-blob 22s infinite alternate ease-in-out;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

@keyframes pulse-blob {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.2) translate(-50px, 30px); opacity: 0.5; }
    100% { transform: scale(1) translate(20px, -20px); opacity: 0.3; }
}

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    z-index: -1;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s forwards;
}

@keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 span.animated-word {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    min-width: 320px;
    transition: opacity 0.4s ease;
}

.hero p.subheading {
    max-width: 650px;
    margin: 24px auto 40px;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.social-proof-micro {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 60px;
}

.hero-visual {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: 0 0 80px rgba(139, 92, 246, 0.12);
    padding: 8px;
    opacity: 0;
    transform: translateY(40px);
    animation: fade-up 0.6s forwards 0.6s;
}

.hero-visual .mock-window {
    height: 500px;
    width: 100%;
    background: #09090f;
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
    position: relative;
}

/* ─── LIVE DEMO ─── */
.demo-section {
    background: radial-gradient(circle at top, rgba(139, 92, 246, 0.05), transparent 50%);
}

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

.chip {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.chip:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

.chip.active {
    border-color: var(--violet);
    color: white;
    background: rgba(139, 92, 246, 0.1);
}

.chat-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 550px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.chat-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    max-width: 85%;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
}

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

.message.ai {
    align-self: flex-start;
    background: var(--bg-subtle);
    color: var(--text);
    border-left: 3px solid var(--violet);
    border-bottom-left-radius: 4px;
}

.thinking {
    display: none;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.thinking span {
    width: 4px;
    height: 4px;
    background: var(--violet);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.thinking span:nth-child(2) { animation-delay: 0.2s; }
.thinking span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--violet);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.chat-input-area {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.input-wrapper {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 0;
    width: 100%;
    font-size: 14px;
}

.btn-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ─── MARQUEE ─── */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 40px;
}

.marquee-label {
    padding-left: 24px;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.marquee-content {
    display: flex;
    gap: 80px;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 18px;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── FEATURE GRID ─── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet);
    margin-bottom: 24px;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tag {
    font-size: 12px;
    color: var(--violet);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

/* Grid sizing */
.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }

@media (max-width: 992px) {
    .col-7, .col-5, .col-4 { grid-column: span 12; }
}

.visual-diagram {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--violet);
    position: relative;
}

.line {
    height: 1px;
    width: 40px;
    background: var(--border);
    align-self: center;
}

.stat {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 12px 0;
}

.model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.model-tag {
    font-family: monospace;
    font-size: 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
}

.trust-badge {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.integration-badges {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.int-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* ─── PRICING ─── */
.pricing-section {
    background: radial-gradient(circle at bottom, rgba(34, 211, 238, 0.05), transparent 50%);
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-switch {
    width: 50px;
    height: 26px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
}

.toggle-thumb {
    width: 18px;
    height: 18px;
    background: var(--violet);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.yearly-active .toggle-thumb {
    left: 27px;
}

.toggle-label {
    font-size: 15px;
    color: var(--text-muted);
    transition: 0.2s;
}

.active-label {
    color: var(--text);
    font-weight: 500;
}

.save-badge {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; }
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    position: relative;
}

.price-card.featured {
    transform: scale(1.05);
    border-color: var(--violet);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-1);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.price-name {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 12px;
}

.price-value {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}

.price-value span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.feature-item svg {
    color: var(--green);
    flex-shrink: 0;
}

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

.price-subtext {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 16px;
}

/* Comparison Table */
.comparison-toggle {
    display: block;
    margin: 60px auto 0;
    color: var(--violet);
    font-weight: 500;
    background: none;
    font-size: 15px;
}

.comparison-table-wrapper {
    margin-top: 40px;
    overflow-x: auto;
    display: none;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    color: var(--text);
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-muted);
    font-size: 14px;
}

.comparison-table td:first-child {
    color: var(--text);
    font-weight: 500;
}

/* ─── FAQ ─── */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question h3 {
    font-size: 1.1rem;
    transition: color 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-answer p {
    padding-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.open h3 {
    color: var(--violet);
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-arrow {
    transition: transform 0.3s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* ─── FINAL CTA ─── */
.final-cta {
    padding: 100px 24px;
}

.cta-banner {
    background: var(--gradient-2);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 16px;
    text-align: center;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-banner .btn-primary {
    background: white;
    color: var(--bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ─── FOOTER ─── */
footer {
    padding: 80px 24px 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: span 2; }
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 14px;
    max-width: 250px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 13px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-dim);
}

.social-icons a:hover {
    color: var(--text);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

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