/* LANG III v5 Styles — Routing Page */

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e3a5f;
    --blue-900: #1e3a8a;

    --bg-deep: #0a0d12;
    --bg-base: #111827;
    --bg-surface: #1f2937;
    --bg-elevated: #374151;
    --bg-hover: #4b5563;

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent: var(--blue-400);
    --accent-dim: var(--blue-500);
    --border: rgba(59, 130, 246, 0.15);
    --border-strong: rgba(59, 130, 246, 0.3);

    --success: #22c55e;
    --error: #ef4444;

    --section-padding: clamp(4rem, 8vw, 6rem);
    --container-max: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }

.section-header { margin-bottom: 3rem; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.section-label::before { content: ''; width: 24px; height: 2px; background: var(--blue-500); }

.section-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }

.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; }

/* Animated gradient background */
.gradient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; overflow: hidden; }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.25; animation: float 20s ease-in-out infinite; }
.gradient-orb-1 { width: 600px; height: 600px; background: var(--blue-600); top: -200px; right: -100px; animation-delay: 0s; }
.gradient-orb-2 { width: 400px; height: 400px; background: var(--blue-500); bottom: 20%; left: -100px; animation-delay: -7s; }
.gradient-orb-3 { width: 300px; height: 300px; background: var(--blue-400); top: 50%; right: 10%; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.25rem 0; transition: background 0.3s, backdrop-filter 0.3s; }
.nav.scrolled { background: rgba(10, 13, 18, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text-primary); }
.nav-cta { background: var(--blue-500); color: var(--text-primary); padding: 0.65rem 1.25rem; border-radius: 8px; text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.9rem; transition: background 0.2s, transform 0.2s; cursor: pointer; border: none; }
.nav-cta:hover { background: var(--blue-400); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 0.5rem; }
.nav-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero { display: flex; align-items: center; justify-content: center; padding: 10rem 0 4rem; min-height: 80vh; }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 780px; opacity: 0; transform: translateY(30px); animation: fadeUp 0.6s ease 0.2s forwards; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-300) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 650px; }
.hero-ctas { display: flex; gap: 1rem; margin-top: 2rem; }

.btn { padding: 0.875rem 1.75rem; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1rem; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.btn-primary { background: var(--blue-500); color: white; border: none; }
.btn-primary:hover { background: var(--blue-400); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--bg-surface); border-color: var(--blue-400); }

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

/* Prompt Box */
.prompt-box { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 50px; padding: 0.875rem 1.5rem; font-size: 1.125rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; max-width: 720px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.05); transition: border-color 0.3s, box-shadow 0.3s; }
.prompt-box:hover { border-color: var(--border-strong); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1); }
.prompt-input-wrap { flex: 1; position: relative; }
.prompt-input { width: 100%; background: transparent; border: none; outline: none; color: var(--text-primary); font: inherit; font-size: inherit; }
.typing-placeholder { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; transition: opacity 0.2s; }
.typing-placeholder::after { content: ''; display: inline-block; width: 2px; height: 1.2em; background: var(--accent); margin-left: 2px; vertical-align: text-bottom; animation: blink 0.8s step-end infinite; }
.typing-placeholder.hidden { opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }
.send-icon { width: 36px; height: 36px; background: var(--blue-500); border: none; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.prompt-box:hover .send-icon { background: var(--blue-400); transform: scale(1.05); }
.send-icon svg { width: 16px; height: 16px; fill: white; }

/* About */
.about { padding: var(--section-padding) 0; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-body { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.about-body strong { color: var(--text-primary); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; transition: transform 0.3s, border-color 0.3s; }
.stat-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stat-number { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, var(--blue-400), var(--blue-300)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }

/* Pillars — the routing section */
.pillars { padding: var(--section-padding) 0; background: var(--bg-base); }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pillar-card { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; text-decoration: none; color: inherit; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.pillar-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25); }
.pillar-card-accent { background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.08)); border-color: var(--border-strong); }
.pillar-icon { width: 56px; height: 56px; background: rgba(59, 130, 246, 0.1); border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.5rem; color: var(--blue-400); }
.pillar-card-accent .pillar-icon { background: rgba(59, 130, 246, 0.2); }
.pillar-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.pillar-card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; flex: 1; }
.pillar-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--blue-400); }
.pillar-card:hover .pillar-cta { color: var(--blue-300); }
.pillar-cta svg { transition: transform 0.2s; }
.pillar-card:hover .pillar-cta svg { transform: translateX(4px); }

/* Practice Areas */
.practices { padding: var(--section-padding) 0; }
.practices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.practice-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.practice-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); }
.practice-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.practice-icon { width: 52px; height: 52px; background: rgba(59, 130, 246, 0.1); border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: var(--blue-400); }
.practice-card h3 { font-size: 1.35rem; }
.practice-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.practice-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.practice-tag { display: inline-block; padding: 0.35rem 0.85rem; background: rgba(59, 130, 246, 0.08); border: 1px solid var(--border); border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary); transition: border-color 0.2s, color 0.2s; }
.practice-card:hover .practice-tag { border-color: var(--border-strong); color: var(--blue-300); }

/* AI Section */
.ai-section { padding: var(--section-padding) 0; background: var(--bg-base); }

.ai-narrative {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.ai-problems h3,
.ai-solution h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.ai-problem-list { display: flex; flex-direction: column; gap: 1rem; }

.ai-problem-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.ai-problem-item svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #ef4444;
}

.ai-problem-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.ai-problem-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.ai-solution-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.solution-step { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: center; transition: transform 0.3s, border-color 0.3s; }
.solution-step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.solution-step-icon { width: 40px; height: 40px; background: rgba(59, 130, 246, 0.1); border-radius: 10px; display: grid; place-items: center; margin: 0 auto 0.5rem; color: var(--blue-400); }
.solution-step h4 { font-size: 0.85rem; font-weight: 600; }
.solution-highlight { background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); border: none; }
.solution-highlight h4 { color: white; }

.ai-solution-points { display: flex; flex-direction: column; gap: 0.875rem; }

.ai-solution-point {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.ai-solution-point svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--blue-400);
}

.ai-solution-point strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.ai-solution-point p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* AI Service Cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); }
.service-icon { width: 48px; height: 48px; background: rgba(59, 130, 246, 0.1); border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.25rem; color: var(--blue-400); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* CTA */
.cta-section { padding: var(--section-padding) 0; text-align: center; }
.cta-box { background: linear-gradient(135deg, var(--bg-surface), var(--bg-base)); border: 1px solid var(--border-strong); border-radius: 24px; padding: 4rem 2rem; max-width: 800px; margin: 0 auto; }
.cta-box h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.cta-box p { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 2rem; }

/* Footer */
.footer { padding: 2rem 0; text-align: center; border-top: 1px solid var(--border); margin-top: auto; }
.copyright { color: var(--text-muted); font-size: 0.875rem; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(10, 13, 18, 0.9); backdrop-filter: blur(8px); padding: 1rem; overflow-y: auto; }
.modal.open { display: grid; place-items: center; }
.modal-content { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 480px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); animation: modalIn 0.3s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.modal-title { font-size: 1.5rem; font-weight: 700; }
.modal-close { appearance: none; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); border-color: var(--border-strong); }
.modal-close svg { width: 18px; height: 18px; }

/* Form */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.form-input, .form-textarea { width: 100%; padding: 0.875rem 1rem; background: var(--bg-base); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.form-textarea { min-height: 120px; resize: vertical; }
.submit-btn { width: 100%; padding: 1rem; background: var(--blue-500); color: white; border: none; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.submit-btn:hover:not(:disabled) { background: var(--blue-400); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.status-message { margin-top: 1rem; padding: 0.875rem 1rem; border-radius: 10px; font-size: 0.875rem; text-align: center; }
.status-message.success { background: rgba(34, 197, 94, 0.1); border: 1px solid var(--success); color: var(--success); }
.status-message.error { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--error); color: var(--error); }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Responsive */
@media (max-width: 900px) {
    .about-layout { grid-template-columns: 1fr; gap: 2rem; }
    .pillars-grid { grid-template-columns: 1fr; }
    .practices-grid { grid-template-columns: 1fr; }
    .ai-narrative { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10, 13, 18, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1rem; }

    .hero { padding: 8rem 0 3rem; min-height: auto; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-ctas { flex-direction: column; width: 100%; max-width: 300px; }
    .btn { width: 100%; text-align: center; }
    .prompt-box { font-size: 1rem; padding: 1rem 1.25rem; border-radius: 28px; gap: 1rem; }
    .send-icon { width: 32px; height: 32px; }
    .send-icon svg { width: 14px; height: 14px; }

    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stat-card { padding: 1.25rem 1rem; }
    .stat-number { font-size: 1.75rem; }

    .modal-content { padding: 1.75rem; }
    .cta-box { padding: 2.5rem 1.5rem; }
}

@media (max-width: 640px) {
    .nav { padding: 1rem 0; }
    .logo img { height: 32px; }
    .nav-cta { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .about-stats { grid-template-columns: 1fr; }
}
