/* ═══════════════════════════════════════════════════════════
   EGI Landing — Page-level glue
   Acts as `app.css` for the Landing page per BRAND_SPEC.md §11.

   Tokens, fonts, reset, and component primitives now live in
   /public/css/{brand,reset,components,atmosphere}.css and are
   linked from <head> of index.html in the mandated order. This
   file holds Landing-specific layout + decorative overrides.

   The :root block below provides TRANSITIONAL ALIASES that map
   legacy token names (--teal, --text-primary, etc.) to the new
   spec scale tokens (--teal-600, --ink, etc.) so this file's
   existing rules continue to work during migration. A future
   cleanup pass will rewrite call sites to reference spec tokens
   directly and remove these aliases.
   ═══════════════════════════════════════════════════════════ */

/* ── TRANSITIONAL TOKEN ALIASES (Phase 4 cleanup removes) ───── */
:root {
    /* Brand colors — legacy → spec scale */
    --teal:         var(--teal-600);
    --teal-light:   var(--teal-500);
    --teal-pale:    var(--teal-100);
    --teal-dark:    var(--teal-700);
    --pink:         var(--pink-300);
    --pink-light:   var(--pink-200);
    --pink-pale:    var(--pink-50);
    --pink-dark:    var(--pink-400);
    --purple:       var(--purple-500);
    --purple-light: var(--purple-400);
    --purple-pale:  var(--purple-50);
    --purple-dark:  var(--purple-600);

    /* Backgrounds */
    --bg-primary:    var(--bg);
    --bg-secondary:  var(--bg-tint);
    --bg-card:       var(--bg-elevated);
    --bg-card-solid: var(--bg);
    /* --bg-hero is intentionally semi-transparent so the constellation
     * canvas + orbs (Constellation Amendment) remain visible throughout
     * the hero. Light: navy-50 / white at 0.3-0.4 alpha. */
    --bg-hero:       linear-gradient(180deg, rgba(241, 245, 248, 0.35) 0%, rgba(255, 255, 255, 0.20) 60%, rgba(255, 255, 255, 0.35) 100%);

    /* Text */
    --text-primary:   var(--ink);
    --text-secondary: var(--ink-muted);
    --text-muted:     var(--ink-disabled);

    /* Borders */
    --border-hover:   rgba(40, 149, 164, 0.25);  /* teal-600 @ 0.25 */

    /* Brand gradient — kept for legacy callers; spec primary is solid navy-900 */
    --gradient-brand:         linear-gradient(135deg, var(--teal-500) 0%, var(--purple-500) 50%, var(--pink-400) 100%);
    --gradient-brand-reverse: linear-gradient(315deg, var(--teal-500) 0%, var(--purple-500) 50%, var(--pink-400) 100%);
    --gradient-teal:          linear-gradient(135deg, var(--teal-600), var(--teal-500));
    --gradient-glass:         linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);

    /* Glow shadow — for legacy hover states */
    --shadow-glow-teal: 0 8px 30px rgba(40, 149, 164, 0.12);
    --shadow-lg:        0 20px 60px rgba(14, 39, 57, 0.10);  /* legacy --shadow-lg fallback */

    /* Nav backgrounds */
    --nav-bg:          rgba(255, 255, 255, 0.3);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.85);
    --mobile-menu-bg:  rgba(255, 255, 255, 0.98);

    /* Frost overlays */
    --frost-bg: rgba(255, 255, 255, 0.95);

    /* Form */
    --input-bg:       var(--bg-tint);
    --input-focus-bg: var(--bg);
}

/* Dark-theme overrides for the transitional aliases */
[data-theme="dark"] {
    --teal-pale:   rgba(100, 203, 217, 0.12);
    --pink-pale:   rgba(226, 151, 186, 0.12);
    --purple-pale: rgba(182, 168, 209, 0.12);

    --gradient-glass: linear-gradient(135deg, rgba(22, 32, 46, 0.9) 0%, rgba(22, 32, 46, 0.7) 100%);

    /* Dark hero: navy-900 / navy-800 at low alpha so constellation shows */
    --bg-hero: linear-gradient(180deg, rgba(14, 39, 57, 0.40) 0%, rgba(22, 32, 46, 0.25) 60%, rgba(14, 39, 57, 0.40) 100%);

    --shadow-glow-teal: 0 8px 30px rgba(100, 203, 217, 0.2);
    --shadow-lg:        0 20px 60px rgba(0, 0, 0, 0.40);

    --nav-bg:          rgba(14, 39, 57, 0.3);
    --nav-bg-scrolled: rgba(14, 39, 57, 0.85);
    --mobile-menu-bg:  rgba(14, 39, 57, 0.98);

    --frost-bg: rgba(14, 39, 57, 0.95);

    --input-focus-bg: var(--bg-elevated);
}

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: pageIn 0.4s ease both;
}

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    position: relative;
    z-index: 10;
}

/* ============================================
   SECTION LABELS & TITLES
   ============================================ */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--teal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--teal);
    border-radius: 1px;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

/* Gradient text utility */
.gradient-text {
    background: var(--gradient-brand);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Section divider */
.section-divider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-divider hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gradient-brand);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(58, 158, 144, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(58, 158, 144, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1.5px solid var(--border-hover);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(58, 158, 144, 0.06);
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 158, 144, 0.1);
}

/* ============================================
   GLASSMORPHISM CARD UTILITIES
   ============================================ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.glass-card-solid {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.glass-card-solid:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* ============================================
   NAVIGATION (shared structure)
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 30px rgba(26, 31, 54, 0.06);
    border-bottom-color: rgba(58, 158, 144, 0.15);
}

[data-theme="dark"] nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 40px;
    width: auto;
    /* No border-radius / shadow — the horizontal lockup PNG already
     * includes the unicorn + ECHOLS / CONSULTING wordmark and is
     * designed to read flat against the nav background. */
}

/* Logo dark/light mode swap */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Legacy .logo-text wordmark hidden — the horizontal lockup PNG ships
 * the wordmark inside the image. Class kept for backward-compat in
 * case other surfaces reference it; cleanup pass deletes the markup. */
.logo-text { display: none; }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 22px !important;
    background: var(--gradient-brand) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(58, 158, 144, 0.2);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 158, 144, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.mobile-menu a:hover {
    color: var(--teal);
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--teal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Show/hide sun and moon icons */
.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS — Enhanced
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-up with scale */
.reveal-scale {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Slide from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays — extended set */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   FORM STYLES (shared by landing + login)
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(58, 158, 144, 0.08);
    background: var(--input-focus-bg);
}

.form-group textarea {
    height: 110px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6178' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-card-solid);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-brand);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(58, 158, 144, 0.2);
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(58, 158, 144, 0.3);
}

.form-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-teal);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--teal);
}

/* ============================================
   FOOTER (shared)
   ============================================ */
footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    background: var(--bg-card-solid);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 38px;
    width: auto;
    border-radius: 8px;
}

.footer-logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--teal);
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--teal-pale);
    border: 1px solid rgba(58, 158, 144, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
}

.social-link:hover {
    background: rgba(58, 158, 144, 0.12);
    border-color: rgba(58, 158, 144, 0.25);
    transform: translateY(-2px);
    color: var(--teal);
}

.social-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
    fill: none;
    transition: stroke 0.3s ease;
}

.social-link:hover svg {
    stroke: var(--teal);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--teal);
    text-decoration: none;
}

/* ============================================
   UTILITY: ICON SIZES
   ============================================ */
.icon-lock {
    width: 18px;
    height: 18px;
}

/* ============================================
   RESPONSIVE — SHARED BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
    .nav-content {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px 0;
    }

    .section-divider {
        padding: 0 20px;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 120px 0;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 64px;
}
.testimonials-header .section-label {
    justify-content: center;
}
.testimonials-header .section-label::before { display: none; }
.testimonials-header .section-subtitle { margin: 0 auto; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-quote-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--teal-pale);
    color: var(--teal);
    flex-shrink: 0;
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-avatar.teal { background: var(--gradient-teal); }
.testimonial-avatar.purple { background: linear-gradient(135deg, var(--purple), var(--purple-light)); }
.testimonial-avatar.pink { background: linear-gradient(135deg, var(--pink-dark), var(--pink)); }

.testimonial-author-info h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    letter-spacing: 0;
}

.testimonial-author-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 14px;
    height: 14px;
    fill: var(--teal);
    stroke: none;
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */

/* Button active/press states */
.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 16px rgba(58, 158, 144, 0.2);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Link hover underline animation */
.footer-col a {
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-col a:hover::after {
    width: 100%;
}

/* Form focus label color */
.form-group:focus-within label {
    color: var(--teal);
}

/* Social link ripple hover */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(58, 158, 144, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::after {
    opacity: 1;
}

/* Mobile menu link stagger animation */
.mobile-menu.active a:nth-child(1) { animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.mobile-menu.active a:nth-child(2) { animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.mobile-menu.active a:nth-child(3) { animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.mobile-menu.active a:nth-child(4) { animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.mobile-menu.active a:nth-child(5) { animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.mobile-menu.active a:nth-child(6) { animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

@keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile touch targets */
.mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   ACCESSIBILITY — FOCUS VISIBLE
   ============================================ */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* Focus ring for buttons */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.form-submit:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(58, 158, 144, 0.1);
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-scale, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .gradient-text {
        animation: none !important;
    }
}

/* ============================================
   RESPONSIVE — TESTIMONIALS
   ============================================ */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .testimonial-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card:nth-child(3) {
        max-width: none;
        grid-column: auto;
    }
    .testimonials-section {
        padding: 80px 0;
    }
}

/* ============================================
   PRINT STYLESHEET
   ============================================ */
@media print {
    .constellation-canvas, .dot-overlay, .orb, .back-to-top,
    nav, .theme-toggle, #constellation-canvas,
    .hex-overlay, .noise-overlay, .sb, .mob-hdr { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .glass-card, .glass-card-solid {
        background: #fff !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    .wrap { margin-left: 0 !important; }
    .t { break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd !important;
         backdrop-filter: none !important; background: #fff !important; }
    .topbar { position: static !important; background: #fff !important;
              backdrop-filter: none !important; border-bottom: 2px solid #3A9E90 !important; }
    .topbar::after { display: none !important; }
}
