:root {
    --bg-color: #030014;
    --bg-secondary: #0f0a1e;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    --accent-primary: #7c3aed;
    --accent-glow: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(219, 39, 119, 0.1) 0%, transparent 30%);
    min-height: 100vh;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #ffffff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.blur-bg {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.full-width {
    width: 100%;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 0, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 0.5rem 1.5rem;
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .nav-links a.active,
    .nav-links a:hover {
        color: white;
    }
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
    color: #e9d5ff;
    margin-bottom: 2rem;
    animation: fadedown 0.8s ease-out;
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

.chat-mockup {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 0 100px rgba(124, 58, 237, 0.15);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    text-align: left;
}

.chat-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 85%;
}

.message.user {
    background: var(--bg-secondary);
    align-self: flex-end;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.message.bot {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    align-self: flex-start;
    color: #e9d5ff;
}

.message.system {
    align-self: flex-start;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding-left: 0.5rem;
    margin-top: -0.5rem;
}

/* Floating Elements (Background) */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
}

/* Bento Grid Features */
.features-section {
    padding: var(--spacing-xl) 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }

    /* First item spans 2 cols */
    .bento-item.wide {
        grid-column: span 2;
    }
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.bento-item:hover {
    background: var(--card-hover);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Process Section */
.process-section {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

@media (min-width: 900px) {
    .steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: var(--radius-md);
    position: relative;
    height: 100%;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    display: block;
}

.step-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Pricing */
.pricing-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
}

.pricing-card {
    background: rgba(15, 10, 30, 0.6);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(10px);
}

.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 1.5rem 0;
    line-height: 1;
}

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

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 0;
    background: var(--bg-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Animations */
@keyframes fadedown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

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

    .bento-item.wide {
        grid-column: auto;
    }
}