/* Scudo - Premium Paint Protection Concierge
   Design: Luxury automotive aesthetic with warm amber accents
   Mobile-first responsive design */

/* ==================== DESIGN TOKENS ==================== */

:root {
    /* Core palette - Deep charcoal with warm amber accent */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-elevated: #18181b;
    --bg-card: #1c1c1f;

    /* Accent - Premium amber/bronze */
    --accent: #d4a853;
    --accent-light: #e8c47a;
    --accent-dim: rgba(212, 168, 83, 0.15);
    --accent-glow: rgba(212, 168, 83, 0.4);

    /* Text hierarchy */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    /* Borders and lines */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Functional colors */
    --success: #22c55e;
    --error: #ef4444;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

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

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

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

/* ==================== RESET & BASE ==================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== AMBIENT BACKGROUND ==================== */

.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-gradient {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 60%;
    background: radial-gradient(
        ellipse 80% 50% at 50% 0%,
        rgba(212, 168, 83, 0.08) 0%,
        rgba(212, 168, 83, 0.03) 40%,
        transparent 70%
    );
}

.ambient-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--border-subtle) 1px, transparent 1px);
    background-size: 80px 100%;
    opacity: 0.5;
}

/* Film grain texture overlay */
.ambient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* ==================== LAYOUT ==================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

/* ==================== HEADER ==================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

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

.logo:hover {
    color: var(--accent);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.header-cta:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.header-cta .cta-arrow {
    display: flex;
    transition: transform var(--transition-fast);
}

.header-cta:hover .cta-arrow {
    transform: translateX(2px);
}

/* ==================== HERO SECTION ==================== */

.hero {
    position: relative;
    padding: 100px 0 60px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 100px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.title-line:first-child {
    animation-delay: 0.2s;
}

.title-line:last-child {
    animation-delay: 0.35s;
}

.title-accent {
    color: var(--accent);
}

.hero-subhead {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: inline-flex;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.65s backwards;
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    overflow: hidden;
}

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

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.btn-secondary svg {
    opacity: 0.7;
}

/* Hero Chat */
.hero-chat {
    width: 100%;
    animation: fadeInUp 0.6s ease 0.15s backwards;
}

.chat-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(212, 168, 83, 0.08);
    animation: chatGlow 4s ease-in-out infinite;
}

/* Animated glow effect */
@keyframes chatGlow {
    0%, 100% {
        box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 168, 83, 0.06);
        border-color: var(--border-subtle);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 60px rgba(212, 168, 83, 0.15), 0 0 100px rgba(212, 168, 83, 0.08);
        border-color: rgba(212, 168, 83, 0.25);
    }
}

.chat-header-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Expand/Close buttons */
.chat-expand-btn,
.chat-close-btn {
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-left: auto;
}

.chat-expand-btn:hover,
.chat-close-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-default);
    color: var(--text-primary);
}

/* Only show expand button on mobile */
@media (max-width: 767px) {
    .chat-expand-btn {
        display: flex;
    }
}

/* Close button only visible in fullscreen */
.chat-close-btn {
    display: none;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.chat-header-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 4px var(--success);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 12px var(--success), 0 0 20px rgba(34, 197, 94, 0.3);
        opacity: 0.8;
    }
}

.chat-messages {
    height: 320px;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Messages */
.message {
    max-width: 85%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    line-height: 1.6;
    animation: messageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.user {
    align-self: flex-end;
    background: var(--accent);
    color: var(--bg-primary);
    border-bottom-right-radius: var(--radius-sm);
}

.message.assistant {
    align-self: flex-start;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: var(--radius-sm);
}

.message.system {
    align-self: center;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-size: 0.875rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.message.error {
    align-self: center;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    font-size: 0.875rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message p {
    margin-bottom: var(--space-sm);
}

.message p:last-child {
    margin-bottom: 0;
}

.message strong {
    font-weight: 600;
}

.message-image {
    max-width: 180px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

/* Typing indicator */
.typing-indicator {
    align-self: flex-start;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-sm);
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Quick reply buttons */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    animation: messageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.quick-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.2);
}

.quick-reply-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

.quick-reply-icon {
    font-size: 1rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-reply-btn:hover .quick-reply-icon {
    transform: scale(1.2);
}

/* Chat input */
.chat-input-area {
    padding: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.input-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.image-upload-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--accent);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.image-upload-btn:hover {
    background: rgba(212, 168, 83, 0.25);
    border-color: var(--accent);
    color: var(--accent-light);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.2);
}

.image-upload-btn:active {
    transform: scale(0.95);
}

.image-upload-btn.has-image {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3);
}

#message-input {
    flex: 1;
    padding: 12px var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

#message-input::placeholder {
    color: var(--text-tertiary);
}

#message-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

#message-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--bg-primary);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: var(--accent-light);
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4);
}

.send-btn:active:not(:disabled) {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image preview */
.image-preview {
    margin-top: var(--space-md);
    position: relative;
    display: inline-block;
}

.image-preview.hidden {
    display: none !important;
}

.image-preview img {
    max-width: 100px;
    max-height: 70px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.remove-image-btn:hover {
    transform: scale(1.1);
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Hero visual - speed lines */
.hero-visual {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 30%;
    height: 60%;
    pointer-events: none;
    opacity: 0.1;
}

.speed-lines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.speed-line {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    animation: speedLine 3s ease-in-out infinite;
}

.speed-line:nth-child(1) { width: 60%; animation-delay: 0s; }
.speed-line:nth-child(2) { width: 80%; animation-delay: 0.2s; }
.speed-line:nth-child(3) { width: 100%; animation-delay: 0.4s; }
.speed-line:nth-child(4) { width: 70%; animation-delay: 0.6s; }
.speed-line:nth-child(5) { width: 50%; animation-delay: 0.8s; }

@keyframes speedLine {
    0%, 100% { opacity: 0.3; transform: scaleX(0.9); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* ==================== SECTION STYLING ==================== */

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent);
}

/* ==================== SOCIAL PROOF BAR ==================== */

.social-proof {
    padding: var(--space-xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.proof-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.proof-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ==================== EDUCATION SECTION ==================== */

.education {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
}

.section-subhead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: var(--space-md) auto 0;
    text-align: center;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.education-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.education-card:nth-child(1) { animation-delay: 0.1s; }
.education-card:nth-child(2) { animation-delay: 0.2s; }

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

.education-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(212, 168, 83, 0.03) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: var(--transition-base);
}

.education-card:hover {
    border-color: rgba(212, 168, 83, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 168, 83, 0.1);
}

.education-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.education-card:hover .card-glow {
    opacity: 1;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transition: left 0.6s ease;
}

.education-card:hover .card-shine {
    left: 150%;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.education-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.price-hint {
    font-size: 0.875rem;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.education-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.education-details p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.education-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.education-cta {
    margin-top: var(--space-2xl);
    text-align: center;
}

.education-cta p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

.education-cta strong {
    color: var(--accent);
}

/* ==================== FOOTER ==================== */

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    max-width: 280px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

.footer-location {
    color: var(--text-tertiary);
}

.sms-disclosure {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: var(--space-lg);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-divider {
    color: var(--border-default);
    font-size: 0.75rem;
}

/* ==================== LEGAL PAGES ==================== */

.legal-content {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-4xl);
    min-height: 100vh;
}

.legal-content .container {
    max-width: 720px;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2xl);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.legal-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.legal-content li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==================== RESPONSIVE - TABLET ==================== */

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .steps {
        flex-direction: row;
        justify-content: center;
    }

    .step {
        flex: 1;
        max-width: 280px;
    }

    .step-connector {
        display: block;
        position: absolute;
        top: 32px;
        right: -20px;
        width: 40px;
        height: 1px;
        background: linear-gradient(90deg, var(--border-default), transparent);
    }

    .step:last-child .step-connector {
        display: none;
    }

    .chat-messages {
        height: 360px;
    }
}

/* ==================== RESPONSIVE - DESKTOP ==================== */

@media (min-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-content {
        text-align: left;
    }

    .hero-subhead {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.125rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .chat-messages {
        height: 400px;
    }

    /* Social proof - horizontal on tablet+ */
    .proof-items {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-2xl);
    }

    /* Education grid - side by side */
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        gap: var(--space-4xl);
    }

    .education-card {
        padding: var(--space-2xl);
    }

    .hero-visual {
        opacity: 0.15;
    }

    .chat-messages {
        height: 440px;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.75rem;
    }

    .hero-subhead {
        font-size: 1.25rem;
        max-width: 440px;
    }
}

/* ==================== FULLSCREEN CHAT (MOBILE) ==================== */

/* Fullscreen state for chat */
.chat-fullscreen .hero-chat {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    padding: 0;
    animation: none;
    background: var(--bg-primary);
}

.chat-fullscreen .chat-container {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    animation: chatExpandIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatExpandIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-fullscreen .chat-header-bar {
    flex-shrink: 0;
}

.chat-fullscreen .chat-messages {
    flex: 1;
    height: auto;
}

.chat-fullscreen .chat-input-area {
    flex-shrink: 0;
}

.chat-fullscreen .chat-expand-btn {
    display: none !important;
}

.chat-fullscreen .chat-close-btn {
    display: flex !important;
}

/* Hide other content when chat is fullscreen */
.chat-fullscreen .hero-content,
.chat-fullscreen .hero-visual {
    display: none;
}

/* Prevent body scroll when fullscreen */
body.chat-fullscreen-active {
    overflow: hidden;
}

/* Hide main header and other sections when chat is fullscreen */
body.chat-fullscreen-active .header,
body.chat-fullscreen-active .social-proof,
body.chat-fullscreen-active .education,
body.chat-fullscreen-active .footer {
    display: none;
}

/* ==================== REDUCED MOTION ==================== */

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

    html {
        scroll-behavior: auto;
    }
}
