/* =====================================================
   ArloPlus Landing Page
   Professional design with animations & graphics
   ===================================================== */

/* --- Variables --- */
:root {
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.15);
    --accent-glow: rgba(99, 102, 241, 0.4);
    --bg-primary: #050508;
    --bg-secondary: #0c0c12;
    --bg-card: rgba(15, 15, 25, 0.8);
    --bg-card-hover: rgba(20, 20, 35, 0.9);
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f0f5;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

/* Animated background */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    animation: pulseGradient 8s ease-in-out infinite;
}

@keyframes pulseGradient {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.3);
    top: 10%;
    left: 20%;
    animation: floatOrb1 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.2);
    top: 60%;
    right: 15%;
    animation: floatOrb2 25s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.2);
    bottom: 20%;
    left: 40%;
    animation: floatOrb3 18s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -30px) scale(1.1); }
    66% { transform: translate(40px, 50px) scale(0.95); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(70px, -50px); }
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(-10vh) scale(1); }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.btn-hero-primary svg { transition: transform 0.3s ease; }
.btn-hero-primary:hover svg { transform: translateX(4px); }

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 20px 40px;
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Mockup */
.hero-mockup {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    perspective: 1200px;
}

.mockup-window {
    background: #111118;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: rotateX(2deg);
    transition: transform 0.6s ease;
}

.hero-mockup:hover .mockup-window {
    transform: rotateX(0deg);
}

.mockup-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent);
    filter: blur(40px);
    opacity: 0.3;
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.mockup-body {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar {
    width: 200px;
    padding: 12px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-sidebar-item {
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.mockup-sidebar-item.active {
    background: var(--accent-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.mockup-chat {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-msg { display: flex; gap: 8px; }
.mockup-msg-user { justify-content: flex-end; }

.mockup-msg-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.mockup-msg-bubble.user {
    background: #2563eb;
    color: white;
    border-bottom-right-radius: 4px;
}

.mockup-msg-bubble.ai {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.mockup-msg-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Typing animation */
.mockup-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.mockup-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s ease-in-out infinite;
}

.mockup-typing span:nth-child(2) { animation-delay: 0.2s; }
.mockup-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.mockup-ai-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 20px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   SECTIONS (shared)
   ===================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* =====================================================
   FEATURES GRID
   ===================================================== */
.features {
    position: relative;
    background: var(--bg-secondary);
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover .feature-icon::after { opacity: 1; }

.feature-icon-chat { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.feature-icon-chat::after { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
.feature-icon-search { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.feature-icon-search::after { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
.feature-icon-cite { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.feature-icon-cite::after { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
.feature-icon-write { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.feature-icon-write::after { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
.feature-icon-grammar { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.feature-icon-grammar::after { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
.feature-icon-file { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.feature-icon-file::after { box-shadow: 0 0 20px rgba(236, 72, 153, 0.3); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tags span {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-it-works {
    position: relative;
    overflow: hidden;
}

.steps-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 700px;
    margin: 0 auto;
}

.steps-line {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(99, 102, 241, 0.1));
}

.step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.step-number {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.step-number span {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.step-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: stepPulse 3s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.3); opacity: 0.3; }
}

.step:nth-child(3) .step-pulse { animation-delay: 0.5s; }
.step:nth-child(4) .step-pulse { animation-delay: 1s; }

.step-content { flex: 1; padding-top: 8px; }

.step-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =====================================================
   TOOLS SHOWCASE
   ===================================================== */
.tools-showcase {
    position: relative;
    background: var(--bg-secondary);
}

.tools-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.tools-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.tool-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
}

.tool-tab:hover { border-color: var(--border-light); color: var(--text-primary); }

.tool-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.tool-showcase { position: relative; }

.tool-demo {
    display: none;
    animation: fadeInTool 0.4s ease;
}

.tool-demo.active { display: block; }

@keyframes fadeInTool {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-window {
    background: #111118;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Chat demo */
.demo-sidebar {
    width: 220px;
    border-right: 1px solid var(--border);
    padding: 16px;
}

.demo-sidebar-header {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 600;
}

.demo-session {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.demo-session.active {
    background: var(--accent-light);
    color: var(--accent);
}

.demo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.demo-messages {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 85%;
}

.demo-msg-user {
    background: #2563eb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.demo-msg-ai {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.demo-source {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 10px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 6px;
    font-size: 11px;
    color: var(--accent);
}

.demo-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.demo-input-icons { display: flex; gap: 8px; }

.demo-web-toggle, .demo-send-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-web-toggle { background: rgba(255, 255, 255, 0.04); color: var(--text-muted); }
.demo-send-btn { background: var(--accent); color: white; }

#tool-chat .demo-window { display: flex; }

/* Writer demo */
.demo-writer-layout { display: flex; min-height: 320px; }

.demo-writer-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}

.demo-writer-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.demo-select {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font);
}

.demo-analyze-btn {
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    cursor: default;
}

.demo-writer-text {
    flex: 1;
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.demo-writer-stats {
    display: flex;
    gap: 16px;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

.demo-writer-feedback {
    width: 340px;
    display: flex;
    flex-direction: column;
}

.demo-feedback-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.demo-feedback-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-feedback-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.demo-stat {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: var(--text-secondary);
}

.demo-stat strong { font-size: 16px; color: var(--text-primary); }
.demo-stat small { color: var(--text-muted); }

.demo-feedback-body {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Grammar demo */
.demo-grammar-layout {
    position: relative;
    padding: 32px;
    min-height: 220px;
}

.demo-grammar-review {
    font-size: 15px;
    line-height: 2;
    color: var(--text-secondary);
    max-width: 600px;
}

.demo-error {
    position: relative;
    padding-bottom: 2px;
    cursor: pointer;
}

.demo-error-grammar {
    border-bottom: 2px wavy #ef4444;
    color: #fca5a5;
}

.demo-error-word {
    border-bottom: 2px wavy #f59e0b;
    color: #fde68a;
}

.demo-error-punct {
    border-bottom: 2px wavy #3b82f6;
    color: #93c5fd;
}

.demo-grammar-popover {
    position: absolute;
    top: 20px;
    right: 40px;
    background: #1a1a25;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: popoverIn 0.3s ease;
}

@keyframes popoverIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-popover-category {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.demo-popover-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}

.demo-popover-original {
    color: #fca5a5;
    text-decoration: line-through;
}

.demo-popover-corrected {
    color: #86efac;
    font-weight: 600;
}

.demo-popover-text svg { color: var(--text-muted); }

.demo-popover-actions { display: flex; gap: 8px; }

.demo-btn-accept, .demo-btn-dismiss {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    cursor: default;
}

.demo-btn-accept { background: #22c55e; color: white; }
.demo-btn-dismiss { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); }

.demo-grammar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 100px;
    font-size: 12px;
    color: #fca5a5;
}

.demo-badge-count {
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* =====================================================
   LEGAL SECTION
   ===================================================== */
.legal-section { position: relative; }

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.legal-card {
    position: relative;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-card);
}

.legal-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.legal-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition-slow);
}

.legal-card:first-child .legal-card-bg {
    background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.08), transparent 60%);
}

.legal-card:last-child .legal-card-bg {
    background: radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.08), transparent 60%);
}

.legal-card:hover .legal-card-bg { opacity: 1; }

.legal-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.legislation-icon { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.caselaw-icon { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

.legal-card-content { position: relative; z-index: 1; }

.legal-card-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.legal-card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.legal-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.legal-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.legal-stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* =====================================================
   MOBILE / TAKE IT ANYWHERE
   ===================================================== */
.mobile-section {
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

.mobile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.mobile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mobile-content .section-title { text-align: left; }

.mobile-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 20px 0 36px;
}

.mobile-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mobile-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-feature strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.mobile-feature span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Phone mockup */
.mobile-mockup-wrap {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-float {
    position: relative;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.phone-device {
    position: relative;
    width: 280px;
    height: 560px;
    background: #111118;
    border-radius: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0a0a10;
}

.phone-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 44px;
}

.phone-status-icons {
    display: flex;
    gap: 4px;
    color: var(--text-primary);
}

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.phone-chat {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.phone-msg {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.5;
    max-width: 90%;
    animation: msgSlideIn 0.5s ease-out both;
}

@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.phone-msg-user {
    background: #2563eb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.phone-msg-ai {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    animation-delay: 0.3s;
}

.phone-ai-text {
    font-size: 12px;
    line-height: 1.6;
    min-height: 16px;
}

.phone-typing {
    display: flex;
    gap: 3px;
    padding: 2px 0;
}

.phone-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s ease-in-out infinite;
}

.phone-typing span:nth-child(2) { animation-delay: 0.2s; }
.phone-typing span:nth-child(3) { animation-delay: 0.4s; }

.phone-source {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
    font-size: 10px;
    color: var(--accent);
    align-self: flex-start;
    animation: msgSlideIn 0.5s ease-out both;
    animation-delay: 0.6s;
}

.phone-input-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* Floating badges around phone */
.phone-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.phone-float-badge-1 {
    top: 15%;
    right: -60px;
    animation: badgeFloat1 5s ease-in-out infinite;
}

.phone-float-badge-2 {
    top: 50%;
    left: -70px;
    animation: badgeFloat2 6s ease-in-out infinite;
}

.phone-float-badge-3 {
    bottom: 20%;
    right: -50px;
    animation: badgeFloat3 5.5s ease-in-out infinite;
}

@keyframes badgeFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(6px, -10px); }
}

@keyframes badgeFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-8px, 8px); }
}

@keyframes badgeFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, 10px); }
}

.phone-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent);
    filter: blur(40px);
    opacity: 0.4;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-section {
    padding: 100px 24px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.faq-item[open] {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    gap: 16px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: '';
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin: 0;
    line-height: 1.4;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-secondary, #94a3b8);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-answer p {
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 6px;
}

.faq-answer strong {
    color: var(--text-primary, #f1f5f9);
}

.faq-answer em {
    color: var(--accent, #6366f1);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 16px 18px;
    }
    .faq-question h3 {
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 18px 16px;
        font-size: 0.9rem;
    }
}

/* =====================================================
   CTA
   ===================================================== */
.cta-section {
    padding: 0 24px 120px;
}

.cta-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.cta-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.15);
    top: -100px;
    right: -50px;
    animation: floatOrb1 15s ease-in-out infinite;
}

.cta-orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(168, 85, 247, 0.1);
    bottom: -80px;
    left: -30px;
    animation: floatOrb2 12s ease-in-out infinite;
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.cta-content .cta-payment {
    font-size: 14px;
    color: var(--text-muted);
    margin: -16px auto 28px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.btn-cta svg { transition: transform 0.3s ease; }
.btn-cta:hover svg { transform: translateX(4px); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--accent); }

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   COUNTRY PAGES
   ===================================================== */

.country-flag {
    font-size: 1.2em;
    margin-right: 2px;
}

/* Use Cases */
.use-cases-section {
    padding: 100px 0;
    position: relative;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.use-case-card {
    background: var(--bg-card, rgba(15, 15, 35, 0.6));
    border: 1px solid var(--border-color, rgba(99, 102, 241, 0.15));
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: var(--accent, #6366f1);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent, #6366f1);
}

.use-case-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 12px;
}

.use-case-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 16px;
}

.use-case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
}

.use-case-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #6366f1);
}

/* Legal Teaser (promo pages) */
.legal-teaser {
    max-width: 700px;
    margin: 48px auto 0;
    background: var(--bg-card, rgba(15, 15, 35, 0.6));
    border: 1px solid var(--border-color, rgba(99, 102, 241, 0.15));
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}

.legal-teaser-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent, #6366f1);
}

.legal-teaser h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 16px;
}

.legal-teaser p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 24px;
}

.legal-teaser-link {
    color: var(--accent, #6366f1);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-teaser-link:hover {
    color: #818cf8;
}

/* Contact page */
.contact-section {
    padding: 100px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
    margin-top: 48px;
}

.contact-form-card,
.contact-info-card {
    background: var(--bg-card, rgba(15, 15, 35, 0.6));
    border: 1px solid var(--border-color, rgba(99, 102, 241, 0.15));
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 60px rgba(3, 7, 18, 0.28);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--border-color, rgba(99, 102, 241, 0.15));
    border-radius: 14px;
    background: rgba(6, 10, 22, 0.85);
    color: var(--text-primary, #f1f5f9);
    padding: 14px 16px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--accent, #6366f1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.contact-field textarea {
    min-height: 190px;
    resize: vertical;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-submit-row {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.contact-submit-btn {
    border: none;
    cursor: pointer;
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.contact-status {
    min-height: 22px;
    font-size: 0.94rem;
    color: var(--text-secondary, #94a3b8);
}

.contact-status-success {
    color: #22c55e;
}

.contact-status-error {
    color: #f87171;
}

.contact-info-card h3,
.contact-side-note h4 {
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 12px;
}

.contact-methods {
    display: grid;
    gap: 16px;
}

.contact-method {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    background: rgba(8, 13, 30, 0.68);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method strong {
    display: block;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 6px;
}

.contact-method p,
.contact-side-note p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary, #94a3b8);
}

.contact-side-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.16);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .legal-grid { grid-template-columns: 1fr; }
    .mockup-sidebar { display: none; }
    .demo-sidebar { display: none; }
    .demo-writer-feedback { width: 280px; }
    .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }

    .mobile-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .mobile-content .section-title { text-align: center; }
    .mobile-features {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 16px;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }

    .nav-links a {
        padding: 12px 16px;
        border-radius: 8px;
        width: 100%;
    }

    .nav-links a:hover { background: rgba(255, 255, 255, 0.05); }
    .nav-links a::after { display: none; }

    .nav-cta { text-align: center; margin-top: 8px; }

    .nav-toggle { display: flex; }

    .hero { padding: 100px 20px 40px; min-height: auto; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }

    .hero-actions { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px 20px;
    }

    .stat-divider { display: none; }
    .stat-item { flex: 1; min-width: 80px; }
    .stat-number { font-size: 22px; }

    .hero-mockup { margin-top: 40px; }
    .mockup-sidebar { display: none; }

    .section-container { padding: 80px 20px; }
    .section-title { font-size: 28px; }

    .features-grid { grid-template-columns: 1fr; }
    .use-cases-grid { grid-template-columns: 1fr; }
    .legal-teaser { padding: 32px 24px; }
    .contact-form-grid { grid-template-columns: 1fr; }
    .contact-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .steps-container { gap: 40px; }
    .step { gap: 20px; }
    .step-number { width: 48px; height: 48px; }
    .step-number span { font-size: 18px; }
    .steps-line { left: 23px; }

    .tools-tabs { flex-wrap: wrap; }

    .demo-writer-layout { flex-direction: column; }
    .demo-writer-feedback { width: 100%; border-top: 1px solid var(--border); }

    .demo-grammar-popover {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 20px;
    }

    .cta-container { padding: 48px 24px; }
    .cta-content h2 { font-size: 24px; }

    .footer-container { flex-direction: column; }
    .footer-links { gap: 40px; }

    .scroll-indicator { display: none; }

    .phone-device {
        width: 240px;
        height: 480px;
        border-radius: 32px;
    }
    .phone-notch { width: 100px; height: 24px; }
    .phone-float-badge-1 { right: -30px; }
    .phone-float-badge-2 { left: -40px; }
    .phone-float-badge-3 { right: -25px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 30px; }
    .feature-card { padding: 24px; }
    .legal-card { padding: 28px; }
    .legal-stat-number { font-size: 26px; }

    .phone-device {
        width: 220px;
        height: 440px;
        border-radius: 28px;
    }
    .phone-float-badge { font-size: 10px; padding: 6px 10px; }
    .phone-float-badge-1 { right: -16px; }
    .phone-float-badge-2 { left: -20px; }
    .phone-float-badge-3 { right: -10px; }
    .mobile-description { font-size: 14px; }
}
