:root {
    /* ─── Stitch Design System Colors ─── */
    --background: #091421;
    --surface: #091421;
    --surface-dim: #091421;
    --surface-bright: #303a48;
    --surface-container: #16202e;
    --surface-container-high: #212b39;
    --surface-container-highest: #2b3544;
    --surface-container-low: #121c2a;
    --surface-container-lowest: #050f1c;
    --on-surface: #d9e3f6;
    --on-surface-variant: #e0bfbc;
    --on-background: #d9e3f6;
    --primary: #ffb3ac;
    --primary-container: #8b1a1a;
    --on-primary: #680007;
    --on-primary-container: #ff9a91;
    --secondary: #c8c6c5;
    --secondary-container: #4a4949;
    --tertiary: #c3c7cd;
    --outline: #a78a87;
    --outline-variant: #58413f;
    --error: #ffb4ab;
    --inverse-surface: #d9e3f6;
    --inverse-on-surface: #27313f;
    --inverse-primary: #ac322e;
    --surface-tint: #ffb3ac;

    /* ─── Spacing ─── */
    --container-max: 1280px;
    --gutter: 24px;
    --margin-mobile: 16px;
    --margin-desktop: 40px;
    --unit: 8px;
}

/* ─── Base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
}

/* ─── Text Gradient ─── */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #ffb3ac, #d9e3f6);
}

/* ─── Material Symbols ─── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Custom Input Styles ─── */
.ts-input {
    background-color: #1F2937;
    border: 1px solid rgba(229, 231, 235, 0.2);
    color: var(--on-surface);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.ts-input:focus {
    border-color: var(--primary-container);
    box-shadow: 0 0 0 2px rgba(139, 26, 26, 0.2);
    outline: none;
}
.ts-input::placeholder {
    color: var(--on-surface-variant);
    opacity: 0.5;
}

/* ─── Ambient Shadow for Cards ─── */
.ambient-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(229, 231, 235, 0.1);
}

/* ─── Mobile Menu ─── */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
    transform: translateX(0);
}
.mobile-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ─── FAQ Accordion ─── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-item .faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ─── Scroll Indicator Animation ─── */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(8px) translateX(-50%); }
}
.scroll-indicator {
    animation: float 2s ease-in-out infinite;
}

/* ─── Page Header Background ─── */
.page-header-bg {
    background: linear-gradient(135deg, var(--surface-container-lowest) 0%, var(--surface) 50%, var(--surface-container-low) 100%);
    position: relative;
}
.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(139, 26, 26, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ─── Legal Page Styles ─── */
.legal-content h2 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--on-surface);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.legal-content h3 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--on-surface);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.legal-content p {
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
    line-height: 1.7;
}
.legal-content ul, .legal-content ol {
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Skip Link (Accessibility) ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-container);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    font-size: 14px;
}
.skip-link:focus {
    top: 0;
}
