/* ========================================
   LESSEN.ES — Design System & Landing Page
   ======================================== */

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary: #0a0b0f;
    --bg-secondary: #0f1117;
    --bg-tertiary: #151820;
    --bg-card: #12141c;
    --bg-card-hover: #181b26;
    --bg-elevated: rgba(255, 255, 255, 0.03);

    --text-primary: #f0f2f5;
    --text-secondary: #8b8fa3;
    --text-tertiary: #555970;
    --text-muted: #3d4155;

    --accent-blue: #4F8EF7;
    --accent-blue-light: #6BA3FF;
    --accent-purple: #7C5CFC;
    --accent-green: #06D6A0;
    --accent-orange: #FF9F43;
    --accent-red: #FF6B6B;

    --gradient-primary: linear-gradient(135deg, #4F8EF7, #7C5CFC);
    --gradient-text: linear-gradient(135deg, #4F8EF7, #7C5CFC, #06D6A0);
    --gradient-card: linear-gradient(135deg, rgba(79, 142, 247, 0.08), rgba(124, 92, 252, 0.04));

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(79, 142, 247, 0.2);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(79, 142, 247, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--text-tertiary) transparent;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* === Typography === */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 12px rgba(79, 142, 247, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 142, 247, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(79, 142, 247, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

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

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    filter: blur(16px);
    opacity: 0.4;
    transition: opacity var(--transition-normal);
}

.btn-glow:hover::after {
    opacity: 0.6;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 11, 15, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 11, 15, 0.9);
    border-bottom-color: var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-blue);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

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

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 142, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 142, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: 200px;
    right: -100px;
    opacity: 0.1;
}

.hero-glow-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-green);
    bottom: 0;
    left: -100px;
    opacity: 0.06;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.4rem 1rem;
    background: rgba(79, 142, 247, 0.08);
    border: 1px solid rgba(79, 142, 247, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-blue-light);
    font-weight: 500;
    margin-bottom: var(--space-2xl);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: var(--space-xl);
}

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

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-4xl);
    flex-wrap: wrap;
}

/* Terminal */
.hero-terminal {
    max-width: 680px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    text-align: left;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-md);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

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

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.terminal-tabs {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.terminal-tabs .tab {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.terminal-tabs .tab.active {
    color: var(--accent-blue);
    background: rgba(79, 142, 247, 0.1);
}

.terminal-tabs .tab:hover:not(.active) {
    color: var(--text-secondary);
}

.terminal-body {
    padding: var(--space-lg);
    overflow-x: auto;
}

.terminal-body pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.code-block {
    display: none;
}

.code-block.active {
    display: block;
}

.t-keyword {
    color: #c678dd;
}

.t-string {
    color: #98c379;
}

.t-flag {
    color: var(--accent-blue);
}

.t-comment {
    color: var(--text-tertiary);
    font-style: italic;
}

.t-key {
    color: #e5c07b;
}

.t-number {
    color: #d19a66;
}

.t-highlight {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* === Stats Section === */
.stats-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-color);
}

/* === Section Common === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(79, 142, 247, 0.08);
    border: 1px solid rgba(79, 142, 247, 0.12);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

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

/* === Features === */
.features {
    padding: var(--space-4xl) 0 calc(var(--space-4xl) * 1.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.feature-card:hover::before {
    opacity: 0.5;
}

.feature-highlight {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-xl);
    background: var(--gradient-card);
    border-color: rgba(79, 142, 247, 0.12);
}

.feature-highlight h3 {
    font-size: 1.3rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--accent-blue);
}

.feature-highlight .feature-icon {
    margin-bottom: 0;
    width: 56px;
    height: 56px;
    padding: 14px;
}

.icon-auto {
    background: rgba(79, 142, 247, 0.1);
    color: var(--accent-blue);
}

.icon-api {
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-purple);
}

.icon-tokens {
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent-green);
}

.icon-billing {
    background: rgba(255, 159, 67, 0.1);
    color: var(--accent-orange);
}

.icon-models {
    background: rgba(79, 142, 247, 0.1);
    color: var(--accent-blue);
}

.icon-plugin {
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-purple);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

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

.feature-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-green);
    padding: 0.3rem 0.8rem;
    background: rgba(6, 214, 160, 0.1);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* === How It Works === */
.how-it-works {
    padding: var(--space-4xl) 0 calc(var(--space-4xl) * 1.5);
    background: var(--bg-secondary);
}

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

.step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    position: relative;
    transition: all var(--transition-normal);
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(79, 142, 247, 0.15);
    letter-spacing: -0.04em;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

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

.step-visual {
    grid-column: 1 / -1;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding: var(--space-sm) 0;
}

/* Step Visuals */
.api-key-preview {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 16px;
    background: rgba(79, 142, 247, 0.05);
    border: 1px solid rgba(79, 142, 247, 0.1);
    border-radius: var(--radius-md);
}

.key-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.api-key-preview code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.copy-icon {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    transition: color var(--transition-fast);
}

.copy-icon:hover {
    color: var(--accent-blue);
}

.credits-preview {
    padding: 4px;
}

.credit-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.credit-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: fillBar 2s ease-out;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

.credit-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.credit-amount {
    color: var(--accent-green);
    font-weight: 600;
}

.status-preview {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.status-dot.active {
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(6, 214, 160, 0.5);
    animation: pulse 2s infinite;
}

/* === Lessen Models === */
.lessen-models {
    padding: var(--space-4xl) 0 calc(var(--space-4xl) * 1.5);
}

/* Router Flow Visual */
.router-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
    flex-wrap: wrap;
}

.router-flow-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    min-width: 180px;
}

.router-flow-step.highlight {
    border-color: rgba(79, 142, 247, 0.25);
    background: var(--gradient-card);
    box-shadow: var(--shadow-glow);
}

.router-flow-step:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.flow-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.router-flow-step h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.router-flow-step p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.router-flow-step code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    background: rgba(79, 142, 247, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
}

.flow-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* Model Cards */
.lessen-models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
}

.lessen-model-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.lessen-model-card.featured {
    border-color: rgba(79, 142, 247, 0.25);
    background: var(--gradient-card);
    transform: scale(1.04);
    box-shadow: var(--shadow-glow);
}

.lessen-model-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.lessen-model-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.lm-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.lm-accent.flash {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.lm-accent.pro {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.lm-accent.go {
    background: linear-gradient(90deg, var(--accent-green), #06B6D4);
}

.lm-icon {
    font-size: 2.4rem;
    margin-bottom: var(--space-md);
}

.lessen-model-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.lm-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.lessen-model-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.lm-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.lm-cap {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(79, 142, 247, 0.08);
    border: 1px solid rgba(79, 142, 247, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.lm-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-green);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.lm-price span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.lm-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Comparison Table */
.comparison-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.comparison-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

.comparison-table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

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

.comparison-table th,
.comparison-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table td {
    color: var(--text-secondary);
}

.highlight-col {
    background: rgba(79, 142, 247, 0.06) !important;
    color: var(--text-primary) !important;
    position: relative;
}

.comparison-table thead .highlight-col {
    color: var(--accent-blue) !important;
    font-weight: 800;
}

/* === Pricing === */
.pricing {
    padding: var(--space-4xl) 0 calc(var(--space-4xl) * 1.5);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.price-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.price-card-featured {
    border-color: rgba(79, 142, 247, 0.25);
    background: var(--gradient-card);
    transform: scale(1.04);
    box-shadow: var(--shadow-glow);
}

.price-card-featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.price-header {
    margin-bottom: var(--space-xl);
}

.price-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.price-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

.currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.amount {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.custom-text {
    font-size: 1.8rem;
}

.period {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-left: 4px;
}

.price-features {
    list-style: none;
    margin-bottom: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.price-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* === Docs === */
.docs {
    padding: var(--space-4xl) 0 calc(var(--space-4xl) * 1.5);
    background: var(--bg-secondary);
}

.docs-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-3xl);
    align-items: center;
}

.docs-content .section-tag {
    margin-bottom: var(--space-md);
}

.docs-content .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.docs-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: var(--space-2xl);
}

.docs-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.doc-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.doc-link:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(79, 142, 247, 0.04);
    transform: translateX(4px);
}

.docs-code {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}

/* === CTA === */
.cta {
    padding: var(--space-4xl) 0;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: var(--space-4xl) var(--space-2xl);
    background: var(--gradient-card);
    border: 1px solid rgba(79, 142, 247, 0.12);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
}

.cta-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.cta-actions {
    position: relative;
}

/* === Footer === */
.footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.88rem;
    margin-top: var(--space-md);
    max-width: 280px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-lg);
}

.footer-links a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
}

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

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-highlight {
        grid-column: 1 / -1;
    }

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

    .lessen-models-grid {
        grid-template-columns: 1fr;
    }

    .lessen-model-card.featured {
        transform: none;
    }

    .router-flow {
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

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

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        position: relative;
    }

    .nav-links.active {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: var(--space-lg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-top: var(--space-md);
    }

    .nav-actions.active {
        position: absolute;
        top: calc(100% + 200px);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: var(--space-lg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.4rem;
    }

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

    .features-grid,
    .pricing-grid,
    .lessen-models-grid {
        grid-template-columns: 1fr;
    }

    .router-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

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

    .stats-grid {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .price-card-featured {
        transform: none;
    }

    .price-card-featured:hover {
        transform: translateY(-4px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .step-card {
        grid-template-columns: 1fr;
    }

    .step-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-item {
        flex: 1 1 100%;
    }

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

/* ==============================
   WhatsApp Business Section
   ============================== */
.wa-section {
    position: relative;
    padding: calc(var(--space-4xl) * 1.5) 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.wa-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.wa-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    background: #25D366;
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.06;
    animation: waGlowPulse 6s ease-in-out infinite;
}

.wa-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -50px;
    background: #128C7E;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.05;
    animation: waGlowPulse 6s ease-in-out infinite 3s;
}

@keyframes waGlowPulse {

    0%,
    100% {
        opacity: 0.06;
        transform: scale(1);
    }

    50% {
        opacity: 0.1;
        transform: scale(1.1);
    }
}

.wa-section .container {
    position: relative;
    z-index: 1;
}

.wa-tag {
    background: rgba(37, 211, 102, 0.1) !important;
    border-color: rgba(37, 211, 102, 0.2) !important;
    color: #25D366 !important;
}

.wa-gradient-text {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #075E54 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Showcase Grid */
.wa-showcase {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--space-3xl);
    align-items: start;
    margin-bottom: var(--space-4xl);
}

/* Phone Mockup */
.wa-phone-mockup {
    display: flex;
    justify-content: center;
}

.wa-phone-frame {
    width: 340px;
    background: #0b141a;
    border-radius: 32px;
    border: 2px solid rgba(37, 211, 102, 0.15);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(37, 211, 102, 0.08);
    position: relative;
}

.wa-phone-notch {
    width: 120px;
    height: 22px;
    background: #0a0b0f;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
}

.wa-phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #1f2c34;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-phone-header span {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e9edef;
}

.wa-phone-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Chat Bubbles */
.wa-phone-chat {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 340px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-width='0.3' opacity='0.02'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23p)'/%3E%3C/svg%3E");
}

.wa-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    animation: waBubbleIn 0.5s ease forwards;
}

.wa-bubble-in {
    align-self: flex-start;
    background: #1f2c34;
    border-radius: 2px 8px 8px 8px;
}

.wa-bubble-out {
    align-self: flex-end;
    background: #005c4b;
    border-radius: 8px 2px 8px 8px;
}

.wa-bubble p {
    font-size: 0.78rem;
    color: #e9edef;
    line-height: 1.4;
    margin: 0;
}

.wa-time {
    display: block;
    text-align: right;
    font-size: 0.62rem;
    color: rgba(233, 237, 239, 0.45);
    margin-top: 4px;
}

.wa-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #25D366;
    background: rgba(37, 211, 102, 0.12);
    padding: 1px 6px;
    border-radius: 8px;
    margin-top: 4px;
}

/* Staggered bubble animations */
.wa-anim-1 {
    animation-delay: 0.3s;
}

.wa-anim-2 {
    animation-delay: 1.2s;
}

.wa-anim-3 {
    animation-delay: 2.4s;
}

.wa-anim-4 {
    animation-delay: 3.5s;
}

@keyframes waBubbleIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typing Indicator */
.wa-phone-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1f2c34;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: waTypingFade 4.5s ease infinite;
}

.wa-phone-typing span {
    font-size: 0.72rem;
    color: rgba(233, 237, 239, 0.5);
}

.wa-typing-dots {
    display: flex;
    gap: 3px;
}

.wa-typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #25D366;
    animation: waTypingBounce 1.4s ease-in-out infinite;
}

.wa-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.wa-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes waTypingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes waTypingFade {

    0%,
    80%,
    100% {
        opacity: 1;
    }

    90% {
        opacity: 0.5;
    }
}

/* Feature Cards */
.wa-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.wa-feature-card {
    background: rgba(37, 211, 102, 0.03);
    border: 1px solid rgba(37, 211, 102, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.wa-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 211, 102, 0.25);
    background: rgba(37, 211, 102, 0.06);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.08);
}

.wa-feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
}

.wa-icon-animated {
    width: 48px;
    height: 48px;
}

.wa-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

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

/* SVG Draw Animations */
.wa-circle-draw {
    stroke-dashoffset: 126;
    animation: waDrawCircle 2s ease forwards;
}

@keyframes waDrawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.wa-check-draw {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: waDrawCheck 0.6s ease forwards 1s;
}

@keyframes waDrawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.wa-rect-draw {
    stroke-dasharray: 136;
    stroke-dashoffset: 136;
    animation: waDrawRect 2s ease forwards;
}

@keyframes waDrawRect {
    to {
        stroke-dashoffset: 0;
    }
}

.wa-path-draw {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: waDrawPath 2s ease forwards 0.5s;
}

@keyframes waDrawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.wa-line-draw {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

.wa-line-1 {
    animation: waDrawLine 0.6s ease forwards 0.8s;
}

.wa-line-2 {
    animation: waDrawLine 0.6s ease forwards 1.1s;
}

.wa-line-3 {
    animation: waDrawLine 0.6s ease forwards 1.4s;
}

@keyframes waDrawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.wa-cross-draw {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: waDrawCross 1.5s ease forwards;
}

@keyframes waDrawCross {
    to {
        stroke-dashoffset: 0;
    }
}

.wa-dot-pulse {
    animation: waDotPulse 2s ease-in-out infinite;
}

@keyframes waDotPulse {

    0%,
    100% {
        r: 3;
        opacity: 0.4;
    }

    50% {
        r: 5;
        opacity: 0.8;
    }
}

/* Connection Flow */
.wa-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.wa-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.wa-flow-node {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.05);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.wa-flow-node:hover {
    transform: scale(1.1);
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.15);
}

.wa-flow-node-active {
    border-color: #25D366;
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.2);
    animation: waFlowPulse 2s ease-in-out infinite;
}

@keyframes waFlowPulse {

    0%,
    100% {
        box-shadow: 0 0 24px rgba(37, 211, 102, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(37, 211, 102, 0.35);
    }
}

.wa-flow-step span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wa-flow-connector {
    flex-shrink: 0;
}

.wa-dash-anim {
    animation: waDashFlow 1.5s linear infinite;
}

@keyframes waDashFlow {
    to {
        stroke-dashoffset: -20;
    }
}

/* CTA */
.wa-cta {
    text-align: center;
}

.wa-btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
}

.wa-btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4) !important;
}

.wa-cta-sub {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: var(--space-md);
}

/* WhatsApp Responsive */
@media (max-width: 1024px) {
    .wa-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .wa-phone-frame {
        width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .wa-features {
        grid-template-columns: 1fr;
    }

    .wa-phone-frame {
        width: 280px;
    }

    .wa-phone-chat {
        min-height: 280px;
    }

    .wa-flow {
        flex-direction: column;
        gap: var(--space-md);
    }

    .wa-flow-connector {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .wa-phone-frame {
        width: 260px;
    }
}