/* ========================================
   CSS Variables - Villadex Brand Colors
======================================== */
:root {
    /* Core Brand Colors */
    --paper: #F7F2E8;
    --ink: #2E221B;
    --terracotta: #CC5A2F;
    --terracotta-hover: #b54f29;
    --terracotta-light: rgba(204, 90, 47, 0.1);
    --gold: #F2B544;
    --olive: #5C8A3A;
    --olive-hover: #4a7a2e;
    --sand: #E8DCC8;

    /* Light Theme */
    --bg-primary: #F7F2E8;
    --bg-elevated: #FFFFFF;
    --bg-muted: #E8DCC8;

    /* Typography */
    --text-primary: #2E221B;
    --text-secondary: rgba(46, 34, 27, 0.72);
    --text-inverse: #FFFFFF;
    --text-inverse-muted: rgba(255, 255, 255, 0.85);

    /* Interactive - Following Brand Guide */
    --action-primary: #CC5A2F;
    --action-primary-hover: #b54f29;
    --action-secondary: #5C8A3A;
    --action-secondary-hover: #4a7a2e;
    --accent: #F2B544;

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========================================
   Reset & Base Styles
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* ========================================
   Skip Link (Accessibility)
======================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--terracotta);
    color: var(--text-inverse);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ========================================
   Focus States (Accessibility)
======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-lg {
    padding: var(--space-4xl) 0;
}

/* ========================================
   Buttons - Brand Guide Compliant
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* Primary Button - Terracotta */
.btn-primary {
    background-color: var(--terracotta);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(204, 90, 47, 0.25);
}

.btn-primary:hover {
    background-color: var(--terracotta-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 90, 47, 0.35);
}

/* Secondary Button - Olive */
.btn-secondary {
    background-color: var(--olive);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(92, 138, 58, 0.2);
}

.btn-secondary:hover {
    background-color: var(--olive-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 138, 58, 0.3);
}

/* Outline Button - Sand border */
.btn-outline {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--sand);
}

.btn-outline:hover {
    background-color: var(--sand);
    border-color: var(--sand);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
}

.btn-ghost:hover {
    color: var(--terracotta);
}

/* ========================================
   Announcement Banner
======================================== */
.announcement {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: linear-gradient(90deg, var(--terracotta) 0%, #D96A42 100%);
    color: var(--text-inverse);
    padding: .3rem var(--space-xs);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.announcement a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement a:hover {
    opacity: 0.9;
}

/* ========================================
   Navigation
======================================== */
.nav {
    position: fixed;
    top: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-lg));
    max-width: 1200px;
    background-color: rgba(247, 242, 232, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232, 220, 200, 0.5);
}

/* Adjust nav position when announcement banner is present */
.has-announcement .nav {
    top: calc(1.75rem + var(--space-sm));
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    max-width: 120px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 450;
    color: var(--text-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    position: relative;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    left: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Mobile Menu Open State */
.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: calc(var(--space-sm) + 56px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-lg));
    max-width: 1200px;
    background-color: rgba(247, 242, 232, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99;
    padding: var(--space-md);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232, 220, 200, 0.5);
    flex-direction: column;
    gap: var(--space-xs);
}

/* Adjust mobile nav position when announcement banner is present */
.has-announcement .mobile-nav {
    top: calc(1.75rem + var(--space-sm) + 56px);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: block;
    padding: var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.mobile-nav a:hover {
    background-color: var(--sand);
    color: var(--terracotta);
}

/* Mobile nav Sign Up button - maintain primary button styling */
.mobile-nav .btn-primary {
    background-color: var(--terracotta);
    color: var(--text-inverse);
    text-align: center;
}

.mobile-nav .btn-primary:hover {
    background-color: var(--terracotta-hover);
    color: var(--text-inverse);
}

/* ========================================
   Hero Section with Video Background
======================================== */
.hero {
    position: relative;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    text-align: left;
    overflow: hidden;
    min-height: 65vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 242, 232, 0.2);
    z-index: 1;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0;
    background: rgba(247, 242, 232, 0.5);
    padding: var(--space-md);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--sand);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    background: var(--olive);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: var(--space-xs);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 0 var(--space-sm);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-xs);
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Trust Logos */
.trust-section {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--sand);
}

.trust-label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-logos span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* ========================================
   What Is Section
======================================== */
.what-is {
    background: var(--bg-elevated);
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
}

.what-is-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

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

.what-is-header h2 {
    margin-bottom: var(--space-md);
}

.what-is-header p {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

/* ========================================
   Features Tabs Section
======================================== */
.features-section {
    background: var(--bg-primary);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.features-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

/* Tab Buttons - Brand Compliant */
.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--sand);
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--sand);
    color: var(--text-primary);
    border-color: var(--sand);
}

.tab-btn.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--text-inverse);
}

.feature-content {
    display: none;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--sand);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.feature-text h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.feature-text p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--terracotta);
    font-weight: 500;
}

.feature-link:hover {
    gap: 0.75rem;
}

.feature-visual {
    background: linear-gradient(135deg, var(--sand) 0%, var(--paper) 100%);
    border-radius: var(--radius-lg);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(46, 34, 27, 0.1);
}

/* ========================================
   Platform Section
======================================== */
.platform-section {
    background: var(--terracotta);
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
}

.platform-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.platform-header span {
    color: var(--paper);
    opacity: 0.85;
}

.platform-header h2 {
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
}

.platform-header p {
    color: var(--text-inverse-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.platform-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--sand);
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(46, 34, 27, 0.08);
}

.platform-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--terracotta) 0%, #D96A42 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.platform-card:nth-child(2) .platform-card-icon {
    background: linear-gradient(135deg, var(--olive) 0%, #6B9F45 100%);
}

.platform-card h3 {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.platform-card p {
    text-align: center;
}

/* ========================================
   Audience Section - Terracotta Theme
======================================== */
.audience-section {
    background: var(--terracotta);
    color: var(--text-inverse);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.audience-card {
    padding: var(--space-lg) 0;
}

.audience-card .section-label {
    color: var(--paper);
    opacity: 0.85;
}

.audience-card h3 {
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.audience-card p {
    color: var(--text-inverse-muted);
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* Divider between audience cards */
.audience-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: var(--space-lg);
    bottom: var(--space-lg);
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    display: none;
}

@media (min-width: 969px) {
    .audience-section .container {
        position: relative;
    }
    .audience-grid::before {
        display: block;
    }
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials-section {
    background: var(--bg-primary);
    overflow: hidden;
}

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

.testimonials-track {
    display: flex;
    gap: var(--space-lg);
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex-shrink: 0;
    width: 350px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--sand);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.testimonial-author {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   Press Section
======================================== */
.press-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
    padding: var(--space-2xl) 0;
}

.press-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.press-logos span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.5;
}

.press-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.press-quote blockquote {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.press-quote cite {
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ========================================
   Membership Section
======================================== */
.membership-section {
    background: var(--bg-muted);
}

.membership-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.membership-content h2 {
    margin-bottom: var(--space-md);
}

.membership-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.membership-content .btn {
    margin-top: var(--space-lg);
}

/* ========================================
   CTA Section - Terracotta Gradient
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--terracotta) 0%, #b54f29 100%);
    color: var(--text-inverse);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: var(--text-inverse-muted);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.cta-section .btn-primary {
    background: var(--bg-elevated);
    color: var(--terracotta);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    background: var(--paper);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Footer - Ink Theme (per style guide)
======================================== */
.footer {
    background: var(--bg-sand);
    color: var(--text-inverse);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    color: var(--terracotta);
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer-brand p {
    color: var(--terracotta);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    color: var(--terracotta);
}

.footer-col a {
    display: block;
    color: var(--terracotta);
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}

.footer-col a:hover {
    color: var(--terracotta-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
}

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

.demo__media {
  border-radius: 16px;
  overflow: hidden;
  margin: 20px auto 0 auto;
  width: 100%;
  max-width: 800px;
  border: 1px solid var(--sand);
  box-shadow: -10px -10px 0px 0px var(--accent);
}

.demo__video {
  width: 100%;
  height: auto;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .demo__video {
    display: none;
  }
  .demo__media {
    background: url("/media/demo-poster.jpg") center / cover no-repeat;
  }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Fix mobile nav text color to match desktop nav */
    .mobile-nav a {
        color: var(--text-secondary);
    }

    .mobile-nav a:hover {
        color: var(--terracotta);
    }

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

    .platform-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    /* Fix platform cards overflow */
    .platform-card {
        max-width: 100%;
        padding: var(--space-lg);
    }

    .vendor-atlas .connection-lines {
        top: 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .press-quote blockquote {
        font-size: 1.25rem;
    }

    /* Vendor Atlas mobile adjustments */
    .vendor-atlas {
        height: 280px;
    }

    .vendor-atlas .network-container {
        height: 280px;
    }

    .vendor-atlas .node-avatar {
        width: 44px;
        height: 44px;
    }

    .vendor-atlas .node-friend {
        top: 15px;
        left: 10px;
    }

    .vendor-atlas .node-neighbor {
        top: 15px;
        right: 10px;
    }

    .vendor-atlas .node-realtor {
        bottom: 15px;
        left: 10px;
    }

    .vendor-atlas .node-builder {
        bottom: 15px;
        right: 10px;
    }

    .vendor-atlas .vendor-card {
        width: 180px;
        padding: 10px;
        bottom: 15px;
    }

    .vendor-atlas .thought-container {
        top: 60px;
    }

    .vendor-atlas .thought-bubble {
        padding: 8px 12px;
    }

    .vendor-atlas .thought-text {
        font-size: 12px;
    }

    /* Ingestion Flow mobile adjustments */
    .ingestion-flow {
        height: 260px;
    }

    .ingestion-flow .flow-container {
        gap: 20px;
    }

    .ingestion-flow .processor {
        width: 90px;
        height: 90px;
    }

    .ingestion-flow .processor-ring-outer {
        width: 90px;
        height: 90px;
    }

    .ingestion-flow .processor-ring-middle {
        width: 70px;
        height: 70px;
    }

    .ingestion-flow .processor-core {
        width: 50px;
        height: 50px;
    }

    .ingestion-flow .processor-core svg {
        width: 90px;
        height: 90px;
    }

    .ingestion-flow .output-item {
        width: 70px;
        height: 48px;
        padding: 8px;
    }

    .ingestion-flow .input-email {
        top: 30px;
        left: 10px;
        width: 54px;
        height: 40px;
    }

    .ingestion-flow .input-doc {
        width: 44px;
        height: 58px;
    }

    .ingestion-flow .input-photo {
        bottom: 30px;
        right: 10px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 640px) {
    /* Container adjustments for small screens */
    .container,
    .container-narrow {
        padding: 0 var(--space-sm);
    }

    .hero {
        padding: var(--space-2xl) 0;
        min-height: 70vh;
    }

    .hero-content {
        padding: var(--space-sm);
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .nav-actions .btn-ghost {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .section-lg {
        padding: var(--space-3xl) 0;
    }

    /* What Is section mobile */
    .what-is-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .what-is-header p {
        font-size: 1rem;
    }

    /* Platform section mobile */
    .platform-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .platform-header p {
        font-size: 1rem;
    }

    .platform-card {
        padding: var(--space-md);
    }

    .platform-card h3 {
        font-size: 1.125rem;
    }

    .platform-card p {
        font-size: 0.9375rem;
    }

    /* Membership section mobile */
    .membership-content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .membership-content p {
        font-size: 1rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-bottom p {
        color: var(--text-secondary);
    }

    .features-tabs {
        gap: 0.375rem;
    }

    .tab-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .trust-logos {
        gap: var(--space-lg);
    }

    /* Vendor Atlas small screen adjustments */
    .vendor-atlas {
        height: 240px;
    }

    .vendor-atlas .network-container {
        height: 240px;
    }

    .vendor-atlas .node-avatar {
        width: 36px;
        height: 36px;
    }

    .vendor-atlas .node-avatar svg {
        width: 18px;
        height: 18px;
    }

    .vendor-atlas .node-label {
        font-size: 9px;
    }

    .vendor-atlas .home-anchor {
        width: 56px;
        height: 56px;
    }

    .vendor-atlas .home-anchor .home-core {
        inset: 6px;
    }

    .vendor-atlas .home-anchor .home-core svg {
        width: 22px;
        height: 22px;
    }

    .vendor-atlas .vendor-card {
        width: 160px;
        padding: 8px;
        bottom: 10px;
    }

    .vendor-atlas .vendor-card-header {
        gap: 8px;
        margin-bottom: 6px;
    }

    .vendor-atlas .vendor-avatar {
        width: 28px;
        height: 28px;
    }

    .vendor-atlas .vendor-name {
        font-size: 11px;
    }

    .vendor-atlas .vendor-type {
        font-size: 9px;
    }

    .vendor-atlas .trust-badges {
        gap: 4px;
    }

    .vendor-atlas .trust-badge {
        padding: 3px 6px;
        font-size: 8px;
    }

    .vendor-atlas .thought-container {
        top: 50px;
    }

    .vendor-atlas .thought-bubble {
        padding: 6px 10px;
    }

    .vendor-atlas .thought-text {
        font-size: 11px;
    }

    .vendor-atlas .connection-lines {
        opacity: 0.6;
        top: 10px !important;
    }

    .vendor-atlas .trust-signal {
        width: 16px;
        height: 16px;
    }

    /* Ingestion Flow small screen adjustments */
    .ingestion-flow {
        height: 220px;
        overflow: hidden;
    }

    .ingestion-flow .flow-container {
        gap: 6px;
        padding: 0 8px;
    }

    .ingestion-flow .inputs {
        min-width: 55px;
        flex: 0 0 auto;
        width: 55px;
    }

    .ingestion-flow .outputs {
        min-width: 52px;
        flex: 0 0 auto;
        width: 52px;
    }

    .ingestion-flow .processor {
        width: 70px;
        height: 70px;
    }

    .ingestion-flow .processor-ring-outer {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }

    .ingestion-flow .processor-ring-middle {
        width: 54px;
        height: 54px;
        border-width: 2px;
    }

    .ingestion-flow .processor-core {
        width: 40px;
        height: 40px;
    }

    .ingestion-flow .processor-core svg {
        width: 70px;
        height: 70px;
    }

    .ingestion-flow .output-item {
        width: 48px;
        height: 36px;
        padding: 4px;
        box-shadow: 2px 2px 0 rgba(46, 34, 27, 0.08);
    }

    .ingestion-flow .output-label {
        font-size: 8px;
        top: -7px;
        left: 4px;
    }

    .ingestion-flow .input-email {
        top: 25px;
        left: 4px;
        right: auto;
        width: 42px;
        height: 30px;
    }

    .ingestion-flow .input-email svg {
        width: 20px;
        height: 14px;
    }

    .ingestion-flow .input-doc {
        width: 32px;
        height: 42px;
        padding: 5px;
    }

    .ingestion-flow .input-doc .line {
        height: 2px;
        margin-bottom: 3px;
    }

    .ingestion-flow .input-photo {
        bottom: 25px;
        left: 7px;
        right: auto;
        width: 36px;
        height: 36px;
    }

    .ingestion-flow .input-photo svg {
        width: 22px;
        height: 22px;
    }

    /* Demo video mobile */
    .demo__media {
        border-radius: 12px;
        box-shadow: -6px -6px 0px 0px var(--accent);
    }

    /* Legal content mobile */
    .legal-content {
        padding: var(--space-lg) var(--space-sm);
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

    .legal-content h3 {
        font-size: 1.125rem;
    }

    /* Contact page mobile */
    .page-content.contact-page {
        padding-top: calc(var(--space-sm) + 80px);
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .has-announcement .page-content.contact-page {
        padding-top: calc(1.75rem + var(--space-sm) + 80px);
    }

    .contact-info {
        padding: var(--space-lg);
    }

    .contact-info h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* Page header mobile */
    .page-header {
        padding-top: calc(var(--space-sm) + 60px);
    }

    .has-announcement .page-header {
        padding-top: calc(1.75rem + var(--space-sm) + 60px);
    }

    .page-header h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    /* Error page mobile */
    .error-code {
        font-size: clamp(5rem, 20vw, 8rem);
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .container,
    .container-narrow {
        padding: 0 var(--space-xs);
    }

    .nav {
        width: calc(100% - var(--space-sm));
        padding: var(--space-xs);
    }

    .mobile-nav {
        width: calc(100% - var(--space-sm));
    }

    .hero-content {
        padding: var(--space-xs);
    }

    .platform-card {
        padding: var(--space-sm);
    }

    .vendor-atlas,
    .ingestion-flow {
        border-radius: 16px;
    }

    .ingestion-flow .inputs {
        min-width: 45px;
        width: 45px;
    }

    .ingestion-flow .outputs {
        min-width: 42px;
        width: 42px;
    }

    .ingestion-flow .output-item {
        width: 40px;
        height: 32px;
        padding: 3px;
    }

    .ingestion-flow .output-label {
        font-size: 7px;
        top: -6px;
        left: 3px;
    }

    .ingestion-flow .input-email {
        left: 2px;
        width: 36px;
        height: 26px;
    }

    .ingestion-flow .input-doc {
        width: 28px;
        height: 36px;
    }

    .ingestion-flow .input-photo {
        left: 4px;
        width: 32px;
        height: 32px;
    }

    .vendor-atlas .connection-lines {
        top: 18px !important;
    }

    .contact-info {
        padding: var(--space-md);
    }

    .legal-content {
        padding: var(--space-md) var(--space-xs);
    }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-content.active {
    animation: fadeInUp 0.4s ease-out;
}

/* === Ingestion Animation CSS START === */

.ingestion-flow {
  --paper: #F7F2E8;
  --ink: #2E221B;
  --terracotta: #CC5A2F;
  --gold: #F2B544;
  --olive: #5C8A3A;
  --sand: #E8DCC8;

  width: 100%;
  max-width: 100%;
  height: 300px;
  background: var(--paper);
  border-radius: 24px;
  position: relative;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.ingestion-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.ingestion-flow .flow-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.ingestion-flow .inputs {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ingestion-flow .input-item {
  position: absolute;
  box-shadow: 4px 4px 0 rgba(46, 34, 27, 0.12);
}

.ingestion-flow .input-email {
  top: 40px;
  left: 20px;
  width: 64px;
  height: 48px;
  background: var(--sand);
  border-radius: 8px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vdxFloatIn1 6s ease-in-out infinite;
}

.ingestion-flow .input-doc {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 68px;
  background: #fff;
  border-radius: 6px;
  border: 2px solid var(--ink);
  padding: 8px;
  animation: vdxFloatIn2 6s ease-in-out infinite;
}

.ingestion-flow .input-doc .line {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.ingestion-flow .input-doc .line:nth-child(1) { width: 100%; background: var(--ink); }
.ingestion-flow .input-doc .line:nth-child(2) { width: 70%; background: var(--sand); }
.ingestion-flow .input-doc .line:nth-child(3) { width: 85%; background: var(--sand); }
.ingestion-flow .input-doc .line:nth-child(4) { width: 60%; background: var(--gold); margin-bottom: 0; }

.ingestion-flow .input-photo {
  bottom: 40px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: rgba(92, 138, 58, 0.3);
  border-radius: 8px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: vdxFloatIn3 6s ease-in-out infinite;
}

.ingestion-flow .processor {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ingestion-flow .processor-ring-outer {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px dashed var(--sand);
  animation: vdxSpin 12s linear infinite;
}

.ingestion-flow .processor-ring-middle {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--terracotta);
  animation: vdxSpin 8s linear infinite reverse;
}

.ingestion-flow .processor-core {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(204, 90, 47, 0.4);
  animation: vdxPulse 2s ease-in-out infinite;
}

.ingestion-flow .outputs {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ingestion-flow .output-item {
  position: relative;
  width: 80px;
  height: 52px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}

.ingestion-flow .output-label {
  position: absolute;
  top: -10px;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--paper);
  padding: 0 4px;
  letter-spacing: 0.5px;
  z-index: 1;
}

.ingestion-flow .output-what {
  border: 2px solid var(--olive);
  box-shadow: 4px 4px 0 rgba(92, 138, 58, 0.3);
  animation: vdxFloatOut1 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ingestion-flow .output-what .output-label { color: var(--olive); }
.ingestion-flow .output-what .header { display: flex; align-items: center; gap: 6px; }
.ingestion-flow .output-what .icon { width: 8px; height: 8px; border-radius: 2px; background: var(--olive); }
.ingestion-flow .output-what .line { height: 3px; border-radius: 2px; }
.ingestion-flow .output-what .header .line { flex: 1; background: var(--ink); }
.ingestion-flow .output-what .line-2 { width: 80%; background: var(--sand); }
.ingestion-flow .output-what .line-3 { width: 60%; background: var(--sand); }

.ingestion-flow .output-who {
  border: 2px solid var(--terracotta);
  box-shadow: 4px 4px 0 rgba(204, 90, 47, 0.3);
  animation: vdxFloatOut2 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ingestion-flow .output-who .output-label { color: var(--terracotta); }
.ingestion-flow .output-who .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(204, 90, 47, 0.4), rgba(242, 181, 68, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ingestion-flow .output-who .lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ingestion-flow .output-who .line { height: 3px; border-radius: 2px; }
.ingestion-flow .output-who .line-1 { width: 100%; background: var(--ink); }
.ingestion-flow .output-who .line-2 { width: 70%; background: var(--sand); }

.ingestion-flow .output-when {
  border: 2px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(242, 181, 68, 0.3);
  animation: vdxFloatOut3 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ingestion-flow .output-when .output-label { color: var(--gold); }
.ingestion-flow .output-when .calendar-header {
  height: 14px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ingestion-flow .output-when .calendar-header .bar { width: 32px; height: 2px; background: #fff; border-radius: 1px; }
.ingestion-flow .output-when .calendar-body { padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; }
.ingestion-flow .output-when .line { height: 3px; border-radius: 2px; }
.ingestion-flow .output-when .line-1 { width: 80%; background: var(--ink); }
.ingestion-flow .output-when .line-2 { width: 55%; background: var(--sand); }

.ingestion-flow .flow-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ingestion-flow .flow-path {
  stroke: url(#vdxFlowGradient);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 8 4;
  animation: vdxDash 1.5s linear infinite;
}

@keyframes vdxFloatIn1 {
  0%, 5% { transform: rotate(-8deg) scale(0.95); opacity: 0.5; }
  15% { transform: rotate(-5deg) scale(1); opacity: 1; }
  35% { transform: translate(80px, 120px) rotate(0deg) scale(0.4); opacity: 0; }
  36%, 100% { transform: rotate(-8deg) scale(0); opacity: 0; }
}

@keyframes vdxFloatIn2 {
  0%, 10% { transform: translate(-50%, -50%) rotate(5deg) scale(0.95); opacity: 0.5; }
  20% { transform: translate(-50%, -50%) rotate(3deg) scale(1); opacity: 1; }
  40% { transform: translate(20px, 0px) rotate(0deg) scale(0.4); opacity: 0; }
  41%, 100% { transform: translate(-50%, -50%) rotate(5deg) scale(0); opacity: 0; }
}

@keyframes vdxFloatIn3 {
  0%, 15% { transform: rotate(-3deg) scale(0.95); opacity: 0.5; }
  25% { transform: rotate(-2deg) scale(1); opacity: 1; }
  45% { transform: translate(80px, -60px) rotate(0deg) scale(0.4); opacity: 0; }
  46%, 100% { transform: rotate(-3deg) scale(0); opacity: 0; }
}

@keyframes vdxFloatOut1 {
  0%, 45% { transform: scale(0); opacity: 0; }
  55% { transform: scale(1.1); opacity: 0.8; }
  65%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes vdxFloatOut2 {
  0%, 50% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 0.8; }
  70%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes vdxFloatOut3 {
  0%, 55% { transform: scale(0); opacity: 0; }
  65% { transform: scale(1.1); opacity: 0.8; }
  75%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes vdxSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes vdxPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes vdxDash {
  to { stroke-dashoffset: -24; }
}

/* === Ingestion Animation CSS END === */

/* === VENDOR ATLAS ANIMATION CSS START === */

.vendor-atlas {
  --paper: #F7F2E8;
  --ink: #2E221B;
  --terracotta: #CC5A2F;
  --gold: #F2B544;
  --olive: #5C8A3A;
  --sand: #E8DCC8;

  width: 100%;
  max-width: 100%;
  height: 300px;
  background: var(--paper);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.vendor-atlas::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.vendor-atlas .network-container {
  position: relative;
  width: 100%;
  height: 300px;
}

/* Connection lines SVG */
.vendor-atlas .connection-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.vendor-atlas .connection-line {
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 4;
  opacity: 0.6;
}

.vendor-atlas .connection-line.active {
  stroke-width: 2.5;
  opacity: 1;
  animation: vdxLinePulse 8s ease-in-out infinite;
}

.vendor-atlas .line-1 { animation-delay: 0s; }
.vendor-atlas .line-2 { animation-delay: 0.3s; }
.vendor-atlas .line-3 { animation-delay: 0.6s; }
.vendor-atlas .line-4 { animation-delay: 0.9s; }

/* Center home anchor */
.vendor-atlas .home-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  z-index: 10;
  opacity: 0;
  animation: vdxHomeAppear 8s ease-in-out infinite;
}

.vendor-atlas .home-anchor .home-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--sand);
  animation: vdxHomeRingPulse 3s ease-in-out infinite;
}

.vendor-atlas .home-anchor .home-core {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 rgba(46, 34, 27, 0.12);
}

/* Network nodes - the people */
.vendor-atlas .network-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.vendor-atlas .node-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 rgba(46, 34, 27, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vendor-atlas .node-avatar.friend {
  background: linear-gradient(135deg, rgba(92, 138, 58, 0.2), rgba(92, 138, 58, 0.4));
}

.vendor-atlas .node-avatar.neighbor {
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(242, 181, 68, 0.4));
}

.vendor-atlas .node-avatar.realtor {
  background: linear-gradient(135deg, rgba(204, 90, 47, 0.2), rgba(204, 90, 47, 0.4));
}

.vendor-atlas .node-avatar.builder {
  background: linear-gradient(135deg, rgba(46, 34, 27, 0.1), rgba(46, 34, 27, 0.2));
}

.vendor-atlas .node-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
  opacity: 0.7;
}

/* Position each node around the center */
.vendor-atlas .node-friend {
  top: 10px;
  left: 5px;
  opacity: 0;
  animation: vdxNodeFloat1 8s ease-in-out infinite;
}

.vendor-atlas .node-neighbor {
  top: 10px;
  right: 5px;
  opacity: 0;
  animation: vdxNodeFloat2 8s ease-in-out infinite;
}

.vendor-atlas .node-realtor {
  bottom: 10px;
  left: 5px;
  opacity: 0;
  animation: vdxNodeFloat3 8s ease-in-out infinite;
}

.vendor-atlas .node-builder {
  bottom: 10px;
  right: 5px;
  opacity: 0;
  animation: vdxNodeFloat4 8s ease-in-out infinite;
}

/* Trust signal particles */
.vendor-atlas .trust-signal {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 15;
}

.vendor-atlas .trust-signal.checkmark {
  background: var(--olive);
}

.vendor-atlas .trust-signal.thumbsup {
  background: var(--gold);
}

.vendor-atlas .trust-signal.star {
  background: var(--terracotta);
}

.vendor-atlas .trust-signal.history {
  background: var(--ink);
}

.vendor-atlas .signal-1 {
  top: 40px;
  left: 8%;
  animation: vdxSignalTravel1 8s ease-in-out infinite;
}

.vendor-atlas .signal-2 {
  top: 40px;
  left: 92%;
  animation: vdxSignalTravel2 8s ease-in-out infinite;
}

.vendor-atlas .signal-3 {
  top: 240px;
  left: 8%;
  animation: vdxSignalTravel3 8s ease-in-out infinite;
}

.vendor-atlas .signal-4 {
  top: 240px;
  left: 92%;
  animation: vdxSignalTravel4 8s ease-in-out infinite;
}

/* Vendor card result */
.vendor-atlas .vendor-card {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--ink);
  padding: 12px;
  box-shadow: 4px 4px 0 rgba(46, 34, 27, 0.12);
  z-index: 20;
  opacity: 0;
  animation: vdxCardAppear 8s ease-in-out infinite;
}

.vendor-atlas .vendor-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.vendor-atlas .vendor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vendor-atlas .vendor-info {
  flex: 1;
  min-width: 0;
}

.vendor-atlas .vendor-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.vendor-atlas .vendor-type {
  font-size: 10px;
  color: var(--ink);
  opacity: 0.6;
}

.vendor-atlas .trust-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vendor-atlas .trust-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  opacity: 0;
}

.vendor-atlas .badge-history {
  background: rgba(46, 34, 27, 0.1);
  color: var(--ink);
  animation: vdxBadgeAppear1 8s ease-in-out infinite;
}

.vendor-atlas .badge-friends {
  background: rgba(92, 138, 58, 0.15);
  color: var(--olive);
  animation: vdxBadgeAppear2 8s ease-in-out infinite;
}

.vendor-atlas .badge-pros {
  background: rgba(204, 90, 47, 0.15);
  color: var(--terracotta);
  animation: vdxBadgeAppear3 8s ease-in-out infinite;
}

.vendor-atlas .badge-icon {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Thought bubble */
.vendor-atlas .thought-container {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 25;
  opacity: 0;
  animation: vdxThoughtContainer 8s ease-in-out infinite;
}

.vendor-atlas .thought-bubble {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 3px 3px 0 rgba(46, 34, 27, 0.12);
}

.vendor-atlas .thought-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  border-top-color: #fff;
  border-left-color: #fff;
}

.vendor-atlas .thought-bubble::before {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.vendor-atlas .thought-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* Keyframe animations */
@keyframes vdxThoughtContainer {
  0%, 3% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.9); }
  8% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  35% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  42% { opacity: 0; transform: translateX(-50%) translateY(-5px) scale(0.95); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-5px) scale(0.95); }
}

@keyframes vdxHomeAppear {
  0%, 3% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  8% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  92% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
}

@keyframes vdxHomeRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes vdxNodeFloat1 {
  0%, 3% { opacity: 0; transform: translate(0, 0) rotate(-3deg) scale(0.8); }
  8% { opacity: 1; transform: translate(0, 0) rotate(-3deg) scale(1); }
  50% { opacity: 1; transform: translate(3px, -5px) rotate(0deg) scale(1); }
  92% { opacity: 1; transform: translate(0, 0) rotate(-3deg) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) rotate(-3deg) scale(0.9); }
}

@keyframes vdxNodeFloat2 {
  0%, 3% { opacity: 0; transform: translate(0, 0) rotate(3deg) scale(0.8); }
  8% { opacity: 1; transform: translate(0, 0) rotate(3deg) scale(1); }
  50% { opacity: 1; transform: translate(-3px, -5px) rotate(0deg) scale(1); }
  92% { opacity: 1; transform: translate(0, 0) rotate(3deg) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) rotate(3deg) scale(0.9); }
}

@keyframes vdxNodeFloat3 {
  0%, 3% { opacity: 0; transform: translate(0, 0) rotate(2deg) scale(0.8); }
  8% { opacity: 1; transform: translate(0, 0) rotate(2deg) scale(1); }
  50% { opacity: 1; transform: translate(4px, 3px) rotate(-1deg) scale(1); }
  92% { opacity: 1; transform: translate(0, 0) rotate(2deg) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) rotate(2deg) scale(0.9); }
}

@keyframes vdxNodeFloat4 {
  0%, 3% { opacity: 0; transform: translate(0, 0) rotate(-2deg) scale(0.8); }
  8% { opacity: 1; transform: translate(0, 0) rotate(-2deg) scale(1); }
  50% { opacity: 1; transform: translate(-4px, 3px) rotate(1deg) scale(1); }
  92% { opacity: 1; transform: translate(0, 0) rotate(-2deg) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) rotate(-2deg) scale(0.9); }
}

@keyframes vdxLinePulse {
  0%, 3% { stroke-dashoffset: 0; opacity: 0; }
  8% { stroke-dashoffset: 0; opacity: 0.4; }
  40%, 60% { stroke-dashoffset: -50; opacity: 1; }
  70%, 92% { stroke-dashoffset: -100; opacity: 0.5; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes vdxSignalTravel1 {
  0%, 38% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  42% { opacity: 1; transform: translate(0, 0) scale(1); }
  54% { opacity: 1; transform: translate(162px, 110px) scale(0.8); }
  58%, 100% { opacity: 0; transform: translate(162px, 110px) scale(0); }
}

@keyframes vdxSignalTravel2 {
  0%, 40% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  44% { opacity: 1; transform: translate(0, 0) scale(1); }
  56% { opacity: 1; transform: translate(-162px, 110px) scale(0.8); }
  60%, 100% { opacity: 0; transform: translate(-162px, 110px) scale(0); }
}

@keyframes vdxSignalTravel3 {
  0%, 42% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  46% { opacity: 1; transform: translate(0, 0) scale(1); }
  58% { opacity: 1; transform: translate(162px, -90px) scale(0.8); }
  62%, 100% { opacity: 0; transform: translate(162px, -90px) scale(0); }
}

@keyframes vdxSignalTravel4 {
  0%, 44% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  48% { opacity: 1; transform: translate(0, 0) scale(1); }
  60% { opacity: 1; transform: translate(-162px, -90px) scale(0.8); }
  64%, 100% { opacity: 0; transform: translate(-162px, -90px) scale(0); }
}

@keyframes vdxCardAppear {
  0%, 60% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.9); }
  67% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.02); }
  72%, 92% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.95); }
}

@keyframes vdxBadgeAppear1 {
  0%, 67% { opacity: 0; transform: scale(0.8); }
  72%, 92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

@keyframes vdxBadgeAppear2 {
  0%, 70% { opacity: 0; transform: scale(0.8); }
  75%, 92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

@keyframes vdxBadgeAppear3 {
  0%, 73% { opacity: 0; transform: scale(0.8); }
  78%, 92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

/* === VENDOR ATLAS ANIMATION CSS END === */

/* ========================================
   Page-Specific Styles
======================================== */

/* Contact Page */
.page-header {
    padding-top: calc(var(--space-sm) + 80px);
    padding-bottom: var(--space-md);
    text-align: center;
}

.page-header.section-lg {
    padding-bottom: var(--space-md);
}

/* Adjust page header when announcement banner is present */
.has-announcement .page-header {
    padding-top: calc(1.75rem + var(--space-sm) + 80px);
}

.page-content {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
}

.page-content.contact-page {
    padding-top: calc(var(--space-sm) + 100px);
}

/* Adjust contact page when announcement banner is present */
.has-announcement .page-content.contact-page {
    padding-top: calc(1.75rem + var(--space-sm) + 100px);
}

.contact-info {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--sand);
}

.contact-info h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: var(--space-sm);
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-email {
    font-size: 1.25rem;
    color: var(--terracotta);
    font-weight: 500;
}

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

/* Contact Form */
.contact-form {
    text-align: left;
    margin-top: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.form-group label .required {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--sand);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px var(--terracotta-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Form Error States */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #c53030;
    background-color: rgba(197, 48, 48, 0.04);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    border-color: #c53030;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.15);
}

.form-error {
    display: block;
    font-size: 0.8125rem;
    color: #c53030;
    margin-top: var(--space-xs);
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: var(--space-xl);
}

.form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: var(--olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--text-secondary);
}

/* Button States */
.btn.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Honeypot field - hidden from users */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-actions {
    margin-top: var(--space-lg);
    text-align: center;
}

.form-actions .btn {
    min-width: 160px;
}

.contact-alt {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--sand);
    font-size: 0.9375rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Legal Pages (Terms, Privacy) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
}

.legal-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.legal-content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    margin-bottom: var(--space-md);
}

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

.legal-content li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

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

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-content h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--space-md);
}

.error-content p {
    margin-bottom: var(--space-xl);
}
