/* ========================================
   ChatShell - The Rams Protocol Implementation
   "Less, but better."
======================================== */

:root {
    /* ----------------------------------------------------
       1. GRID SYSTEM & SPACING (The Geometry)
       Base unit: 4px
    ---------------------------------------------------- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-32: 128px;

    --layout-max-width: 1024px;
    /* Strict constraint */
    --nav-height: 64px;
    /* 8 * 8 */

    /* ----------------------------------------------------
       2. TYPOGRAPHY (Hierarchy)
       No decorative font sizes. Steps based on utility.
    ---------------------------------------------------- */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --text-xs: 12px;
    /* Labels, meta */
    --text-sm: 14px;
    /* Body small, UI elements */
    --text-base: 16px;
    /* Body reading */
    --text-lg: 20px;
    /* Section headers */
    --text-xl: 32px;
    /* Hero headers */
    --text-2xl: 48px;
    /* Display */

    --leading-tight: 1.1;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;

    /* ----------------------------------------------------
       3. COLORS (Semantic Palette)
       No "Blue-500", only "Action", "Surface", etc.
    ---------------------------------------------------- */
    /* Light Mode Default */
    --color-bg: #FFFFFF;
    --color-surface: #F4F4F5;
    /* Zinc-100 */
    --color-surface-hover: #E4E4E7;
    /* Zinc-200 */

    --color-text-primary: #18181B;
    /* Zinc-900 */
    --color-text-secondary: #71717A;
    /* Zinc-500 */
    --color-text-tertiary: #71717A;
    /* Zinc-500 - WCAG AA compliant (4.5:1 contrast ratio) */

    --color-action: #18181B;
    /* Radical Monochrome */
    --color-action-text: #FFFFFF;
    --color-action-hover: #000000;

    --color-border: #E4E4E7;
    /* Zinc-200 */

    /* ----------------------------------------------------
       4. PHYSICS (Animation)
       Spring curves, swift duration.
    ---------------------------------------------------- */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-swift: 250ms;
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Focus styles for accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-action);
    outline-offset: 2px;
}

.btn:focus-visible,
.nav-links a:focus-visible {
    outline: 3px solid var(--color-action);
    outline-offset: 4px;
}

/* ==================== LAYOUT UTILITIES ==================== */
/* We build the UI using these semantic classes or direct clean styling */

.container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ==================== NAVIGATION ==================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

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

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo {
    width: 24px;
    height: 24px;
    border-radius: 999px;
}

.logo-text {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.02em;
}

.cn-text {
    color: var(--color-text-tertiary);
    font-weight: var(--weight-regular);
    margin-left: var(--space-1);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--duration-swift) var(--ease-out);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--duration-swift) var(--ease-out);
}

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

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.lang-btn {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-secondary);
    transition: all var(--duration-swift) var(--ease-out);
}

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

/* ==================== HERO SECTION ==================== */
main {
    padding-top: var(--nav-height);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-20) var(--space-6) var(--space-10);
    overflow: hidden;
    /* For animations */
}

.hero-tag {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.03em;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    max-width: 600px;
}

.hero-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-8);
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-16);
}

.btn {
    height: 40px;
    /* 5 * 8 */
    padding: 0 var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: all var(--duration-swift) var(--ease-spring);
}

.btn-primary {
    background-color: var(--color-action);
    color: var(--color-action-text);
}

.btn-primary:hover {
    background-color: var(--color-action-hover);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

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

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

.btn-secondary:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

/* ==================== MOCKUP UI ==================== */
.mockup-container {
    width: 100%;
    max-width: 520px;
    perspective: 1000px;
    position: relative;
    padding: var(--space-6);
}

/* Decorative glow background */
.mockup-container::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -30%;
    right: -30%;
    bottom: -20%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Hero Screenshot Container */
.hero-screenshot-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.hero-caption {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.hero-screenshot-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    animation: floatUp 0.8s var(--ease-spring) forwards;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.hero-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Real Screenshot Styling */
.mockup-screenshot {
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 50px -12px rgba(0, 0, 0, 0.12),
        0 40px 80px -20px rgba(99, 102, 241, 0.1);
    animation: floatUp 0.8s var(--ease-spring) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-window {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: slideUp var(--duration-swift) var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.window-header {
    height: 44px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--space-4);
}

.window-controls {
    display: flex;
    gap: 6px;
}

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

.control.red {
    background-color: #FF5F57;
}

.control.yellow {
    background-color: #FEBC2E;
}

.control.green {
    background-color: #28C840;
}

.window-title {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    font-weight: var(--weight-medium);
    grid-column: 2;
}

.window-body {
    height: 300px;
    display: flex;
    position: relative;
    background: #FFFFFF;
}

/* Chat Area */
.chat-area {
    flex: 1;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.message {
    display: flex;
    gap: var(--space-3);
    animation: fadeIn var(--duration-swift) var(--ease-out) forwards;
    opacity: 0;
}

.message:nth-child(2) {
    animation-delay: 150ms;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
}

.user-avatar {
    background: var(--color-action);
}

.ai-avatar {
    background: #10A37F;
}

.bubble {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-1);
    width: 100%;
}

/* Skeleton Lines */
.line {
    height: 8px;
    background: var(--color-surface);
    border-radius: 4px;
}

.line.short {
    width: 40%;
}

.line.medium {
    width: 65%;
}

.line.long {
    width: 85%;
}

/* Floating Export Panel */
.chatshell-panel {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 160px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: var(--space-3);
    transform: translateX(10px);
    opacity: 0;
    animation: revealLeft 400ms var(--ease-spring) 400ms forwards;
}

@keyframes revealLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.panel-logo {
    width: 16px;
    height: 16px;
    border-radius: 999px;
}

.panel-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

.panel-formats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: var(--space-2);
}

.panel-format-btn {
    padding: 6px 8px;
    font-size: 10px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-text-secondary);
    transition: all var(--duration-swift);
}

.panel-format-btn.active {
    border-color: #10a37f;
    background: #E8F4EE;
    color: #10a37f;
    font-weight: var(--weight-medium);
}

.export-btn {
    background: #10a37f;
    color: white;
    font-size: 11px;
    font-weight: var(--weight-medium);
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform var(--duration-swift) var(--ease-spring);
}

.export-btn:hover {
    transform: scale(1.02);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.panel-logo {
    width: 16px;
    height: 16px;
    border-radius: 999px;
}

.panel-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

.panel-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: 6px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    transition: background var(--duration-swift);
}

.action-btn:hover {
    background: var(--color-surface);
    color: var(--color-text-primary);
}

.export-btn {
    margin-top: var(--space-2);
    background: var(--color-action);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    text-align: center;
    padding: var(--space-2);
    border-radius: 6px;
    cursor: pointer;
    transition: transform var(--duration-swift) var(--ease-spring);
}

.export-btn:hover {
    transform: scale(1.02);
}

/* ==================== FEATURES GRID ==================== */
.features {
    padding: var(--space-20) var(--space-6);
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-6);
}

.section-header-copy {
    flex: 1;
    text-align: center;
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: 4px;
}

.billing-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    user-select: none;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 26px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-border);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.toggle-switch input:checked + .toggle-slider {
    background: #111827;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.price-badge {
    display: inline-flex;
    align-items: center;
    margin-left: var(--space-2);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-weight: var(--weight-semibold);
    white-space: nowrap;
}

.section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.02em;
}

.section-desc {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all var(--duration-swift);
    will-change: transform;
}

.feature-card:hover {
    border-color: var(--color-border);
    /* Keep subtle */
    background: var(--color-surface);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.feature-card h3 {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==================== SHOWCASE SECTION ==================== */
.showcase-section {
    padding: var(--space-20) var(--space-6);
    background: var(--color-surface);
}

.showcase-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.showcase-item {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.showcase-item.is-reversed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

.showcase-item.is-reversed .showcase-media {
    order: 2;
}

.showcase-media-link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition:
        transform var(--duration-swift) var(--ease-spring),
        box-shadow var(--duration-swift) var(--ease-out),
        border-color var(--duration-swift) var(--ease-out);
    cursor: zoom-in;
    will-change: transform;
}

.showcase-media-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(24, 24, 27, 0.14);
}

.showcase-media-link:focus-visible {
    outline: 3px solid rgba(24, 24, 27, 0.25);
    outline-offset: 4px;
}

.showcase-media-link img {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-content {
    padding: var(--space-2) 0;
}

.showcase-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}

.showcase-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 52ch;
}

/* ==================== PRICING SECTION ==================== */
.pricing {
    padding: var(--space-20) var(--space-6);
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

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

.pricing-card {
    position: relative;
    padding: var(--space-8);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    transition: all var(--duration-swift);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--color-action);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.pricing-name {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-4);
    text-align: center;
}

.pricing-price {
    text-align: center;
    margin-bottom: var(--space-6);
}

.price-amount {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.02em;
}

.price-period {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-left: var(--space-1);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-8);
    flex: 1 1 auto;
}

.pricing-features li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.pricing-features li.feature-yes {
    color: var(--color-text-primary);
}

.pricing-features li.feature-no {
    color: #999;
    opacity: 0.7;
}

.pricing-features li.feature-limit {
    color: #e67e22;
    font-size: var(--text-xs);
}

.pricing-features li.feature-spacer {
    visibility: hidden;
    border-bottom: none;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ==================== CHANGELOG SECTION ==================== */
.changelog-section {
    padding: var(--space-20) var(--space-6);
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

.changelog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.changelog-card {
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg);
    transition: border-color var(--duration-swift) var(--ease-out), box-shadow var(--duration-swift) var(--ease-out), transform var(--duration-swift) var(--ease-out);
}

.changelog-card:hover {
    transform: translateY(-2px);
}

.changelog-card.is-current {
    border-color: rgba(16, 163, 127, 0.35);
}

.changelog-card.is-target {
    border-color: #10a37f;
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
}

.changelog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.changelog-head h3 {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}

.changelog-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 var(--space-2);
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: #10a37f;
    background: #E8F4EE;
}

.changelog-card ul {
    list-style: none;
    display: grid;
    gap: var(--space-2);
}

.changelog-card li {
    position: relative;
    padding-left: 14px;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.changelog-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10a37f;
}

/* ==================== DOWNLOAD SECTION ==================== */
.download-section {
    padding: var(--space-20) var(--space-6);
    background: var(--color-surface);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.download-content {
    max-width: 480px;
    margin: 0 auto;
}

.download-content h2 {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.download-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.download-meta {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-6);
}

/* ==================== FOOTER ==================== */
footer {
    padding: var(--space-8) var(--space-6);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

.footer-content {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-links a {
    margin-left: var(--space-6);
    transition: color 0.2s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--duration-swift) var(--ease-out);
}

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

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
    width: 100%;
}

/* ==================== LEGAL PAGES ==================== */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-20) var(--space-6);
}

.legal-content h1 {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.legal-date {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-10);
}

.legal-content h2 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.legal-content p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.legal-content ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.legal-content li {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

.legal-content a {
    color: var(--color-action);
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .section-header-row {
        flex-direction: column;
        align-items: center;
    }

    .billing-toggle {
        padding-top: 0;
    }

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

    .showcase-item {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: var(--space-5);
    }

    .showcase-item.is-reversed {
        grid-template-columns: 1fr;
    }

    .showcase-item.is-reversed .showcase-media {
        order: 0;
    }

    .showcase-content {
        padding: 0;
    }

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

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

    .hero h1 {
        font-size: 32px;
    }
    .nav-links {
        display: none;
        /* Simplify for mobile for now or sidebar */
    }

    .chatshell-panel {
        display: none;
    }
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    padding: var(--space-20) var(--space-6);
    background: var(--color-bg);
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--duration-swift);
}

.faq-question {
    padding: var(--space-5);
    background: var(--color-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--weight-medium);
    font-size: var(--text-base);
}

.faq-question:hover {
    background: var(--color-surface);
}

.faq-answer {
    padding: 0 var(--space-5);
    height: 0;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    transition: all var(--duration-swift) var(--ease-out);
}

.faq-item.active .faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    height: auto;
}

.faq-toggle {
    transition: transform var(--duration-swift);
    color: var(--color-text-tertiary);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: var(--color-text-primary);
}

/* ==================== FEEDBACK SECTION ==================== */
.feedback-section {
    padding: var(--space-20) var(--space-6);
    background: var(--color-surface);
    text-align: center;
}

.feedback-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg);
    padding: var(--space-8);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feedback-desc {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--color-surface);
    border-radius: 8px;
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
    transition: background var(--duration-swift);
    margin-bottom: var(--space-6);
}

.contact-email:hover {
    background: var(--color-surface-hover);
}

.feedback-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}
