/* ================================================
   CANDOR - Editorial Warmth Design System
   Typography: Libre Baskerville + DM Sans
   Palette: Terracotta, Cream, Forest Green
   ================================================ */

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

:root {
    /* Warm, earthy palette - Light Mode */
    --color-bg: #faf7f2;
    --color-bg-warm: #f5efe6;
    --color-bg-elevated: #ffffff;
    --color-surface: #ede8df;

    /* Text colors */
    --color-text: #1a1612;
    --color-text-secondary: #4a4540;
    --color-text-muted: #8a847a;

    /* Accent colors */
    --color-terracotta: #c45d3a;
    --color-terracotta-light: #e07a58;
    --color-terracotta-dark: #a34a2d;
    --color-forest: #2d4a3e;
    --color-forest-light: #3d6352;
    --color-sage: #8fa892;
    --color-cream: #f9f6f0;
    --color-gold: #c9a55c;

    /* Problem section red tones */
    --color-danger: #b54a4a;
    --color-danger-bg: rgba(181, 74, 74, 0.08);

    /* Borders */
    --color-border: rgba(26, 22, 18, 0.1);
    --color-border-strong: rgba(26, 22, 18, 0.2);

    /* Typography */
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Layout */
    --container-max: 1180px;
    --section-padding: 140px;
    --border-radius: 16px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Nav background for theme toggle */
    --nav-bg: rgba(250, 247, 242, 0.85);
}

/* ================================================
   DARK MODE - Automatic (System Preference)
   ================================================ */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #141210;
        --color-bg-warm: #1a1816;
        --color-bg-elevated: #1f1c1a;
        --color-surface: #262320;

        --color-text: #f5f2ed;
        --color-text-secondary: #b5b0a8;
        --color-text-muted: #7a756d;

        --color-terracotta: #e07a58;
        --color-terracotta-light: #f0956f;
        --color-terracotta-dark: #c45d3a;
        --color-forest: #3d6352;
        --color-forest-light: #4d7a66;
        --color-sage: #7a9a7f;

        --color-danger: #e06b6b;
        --color-danger-bg: rgba(224, 107, 107, 0.12);

        --color-border: rgba(255, 255, 255, 0.08);
        --color-border-strong: rgba(255, 255, 255, 0.15);

        --nav-bg: rgba(20, 18, 16, 0.9);
    }
}

/* Manual dark mode override */
[data-theme="dark"] {
    --color-bg: #141210;
    --color-bg-warm: #1a1816;
    --color-bg-elevated: #1f1c1a;
    --color-surface: #262320;

    --color-text: #f5f2ed;
    --color-text-secondary: #b5b0a8;
    --color-text-muted: #7a756d;

    --color-terracotta: #e07a58;
    --color-terracotta-light: #f0956f;
    --color-terracotta-dark: #c45d3a;
    --color-forest: #3d6352;
    --color-forest-light: #4d7a66;
    --color-sage: #7a9a7f;

    --color-danger: #e06b6b;
    --color-danger-bg: rgba(224, 107, 107, 0.12);

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.15);

    --nav-bg: rgba(20, 18, 16, 0.9);
}

/* Smooth theme transitions */
html {
    scroll-behavior: smooth;
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-terracotta);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-forest);
    outline-offset: 2px;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Dark mode grain adjustment */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .grain-overlay {
        opacity: 0.04;
        mix-blend-mode: overlay;
    }
}

[data-theme="dark"] .grain-overlay {
    opacity: 0.04;
    mix-blend-mode: overlay;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

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

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--color-terracotta);
    border-radius: 50%;
    margin-bottom: 8px;
}

.nav-cta {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1.5px solid var(--color-border-strong);
    transition: var(--transition);
    background: transparent;
}

.nav-cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* Theme Toggle Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--color-border-strong);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text);
    padding: 0;
}

.theme-toggle:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-text-muted);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

/* Dark mode icon swap */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

/* ================================================
   HAMBURGER MENU (Mobile)
   ================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hamburger-line:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger-line:nth-child(3) {
    transform: translateY(6px);
}

/* Hamburger active state (X shape) */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg-elevated);
    z-index: 1010;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: none;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 100px 32px 40px;
}

.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition), transform var(--transition);
    display: block;
}

.mobile-nav-link:hover {
    color: var(--color-terracotta);
    transform: translateX(8px);
}

.mobile-menu-footer {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.theme-toggle-mobile {
    width: auto;
    padding: 12px 20px;
    border-radius: 100px;
    gap: 12px;
}

.theme-toggle-mobile .theme-label {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .mobile-menu-overlay {
        display: block;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-terracotta);
    color: white;
    box-shadow: 0 4px 20px rgba(196, 93, 58, 0.25);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 93, 58, 0.35);
}

.btn-primary svg {
    transition: transform var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-bg-element {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 93, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-element-2 {
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45, 74, 62, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 14px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    animation: fadeInDown 0.8s ease-out;
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--color-sage);
    border-radius: 50%;
    position: relative;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--color-sage);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.4;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0; }
}

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

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 4.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }

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

.hero-highlight {
    color: var(--color-terracotta);
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -0.05em;
    right: -0.05em;
    height: 0.35em;
    background: rgba(196, 93, 58, 0.15);
    z-index: -1;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 620px;
    margin: 0 auto 44px;
    line-height: 1.75;
    animation: fadeInUp 0.8s ease-out backwards;
    animation-delay: 0.4s;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out backwards;
    animation-delay: 0.5s;
}

.hero-decoration {
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out backwards;
    animation-delay: 0.6s;
}

.squiggle {
    width: 120px;
    height: 20px;
    color: var(--color-terracotta);
    opacity: 0.4;
}

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-header {
    margin-bottom: 64px;
}

.section-header-center {
    text-align: center;
}

.section-header-center .section-intro {
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-terracotta);
    margin-bottom: 20px;
    position: relative;
    padding-left: 24px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: var(--color-terracotta);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 4vw, 2.875rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 720px;
    margin-bottom: 18px;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* ================================================
   PROBLEM SECTION
   ================================================ */
.problem {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 36px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-danger), transparent);
    opacity: 0;
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-border-strong);
}

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

.problem-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-danger-bg);
    border-radius: 14px;
    color: var(--color-danger);
    margin-bottom: 24px;
}

.problem-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

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

.problem-content strong {
    color: var(--color-danger);
    font-weight: 600;
}

.card-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* ================================================
   SOLUTION / PROMISE SECTION
   ================================================ */
.solution {
    padding: var(--section-padding) 0;
    background: var(--color-bg-warm);
    position: relative;
}

.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

.promise-list {
    max-width: 720px;
}

.promise-item {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    position: relative;
}

.promise-item:last-child {
    padding-bottom: 0;
}

.promise-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.promise-number {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-terracotta);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 93, 58, 0.1);
    border-radius: 50%;
}

.promise-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-terracotta), transparent);
    margin-top: 16px;
    min-height: 60px;
}

.promise-content h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.promise-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

/* ================================================
   STATS SECTION
   ================================================ */
.stats {
    padding: 100px 0;
    background: var(--color-forest);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.stats .container {
    position: relative;
    z-index: 1;
}

.stats-header {
    text-align: center;
    margin-bottom: 60px;
}

.stats-header .section-label {
    color: var(--color-sage);
}

.stats-header .section-label::before {
    background: var(--color-sage);
}

.stats-tagline {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: white;
    line-height: 1;
    margin-bottom: 16px;
}

.stat-symbol {
    font-size: 0.5em;
    color: var(--color-terracotta-light);
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 180px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ================================================
   FAIRNESS SECTION
   ================================================ */
.fairness {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.fairness-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fairness-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.fairness-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-forest), transparent);
    opacity: 0;
    transition: var(--transition);
}

.fairness-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-forest);
}

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

.fairness-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 74, 62, 0.08);
    border-radius: 14px;
    color: var(--color-forest);
    margin-bottom: 24px;
}

.fairness-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* ================================================
   PRICING SECTION
   ================================================ */
.pricing-preview {
    padding: var(--section-padding) 0;
    background: var(--color-bg-warm);
    position: relative;
}

.pricing-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-bg-elevated);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 44px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.pricing-featured {
    border-color: var(--color-terracotta);
    background: linear-gradient(180deg, rgba(196, 93, 58, 0.03), var(--color-bg-elevated));
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-terracotta);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.pricing-header h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price {
    font-family: var(--font-serif);
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    color: var(--color-text);
}

.price span {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    flex-shrink: 0;
    color: var(--color-forest);
}

.pricing-description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

.pricing-featured .pricing-description {
    color: var(--color-terracotta);
    font-weight: 500;
    font-style: normal;
}

.pricing-note {
    font-size: 0.875rem;
    color: var(--color-forest);
    font-weight: 600;
    text-align: center;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
}

.pricing-comparison {
    text-align: center;
    margin-top: 48px;
    padding: 24px 32px;
    background: var(--color-bg-elevated);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-comparison p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ================================================
   WAITLIST SECTION
   ================================================ */
.waitlist {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.waitlist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 93, 58, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.waitlist-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-decoration {
    margin-bottom: 32px;
}

.heart-doodle {
    width: 64px;
    height: 64px;
    color: var(--color-terracotta);
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

.waitlist h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.875rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.waitlist > .container > .waitlist-content > p:first-of-type {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.waitlist-form {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    padding: 16px 24px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-bg-elevated);
    border: 1.5px solid var(--color-border-strong);
    border-radius: 100px;
    color: var(--color-text);
    outline: none;
    transition: var(--transition);
}

.waitlist-form input::placeholder {
    color: var(--color-text-muted);
}

.waitlist-form input:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 4px rgba(196, 93, 58, 0.1);
}

.form-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.error-message {
    font-size: 0.875rem;
    color: var(--color-danger);
    margin-top: 12px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 24px;
    animation: fadeInUp 0.5s ease-out;
}

.success-message svg {
    margin-bottom: 20px;
    color: var(--color-forest);
}

.success-message h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

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

/* ================================================
   FOOTER
   ================================================ */
.footer {
    padding: 80px 0 48px;
    background: var(--color-forest);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    margin-bottom: 64px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-dot {
    background: var(--color-terracotta-light);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 14px;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 72px;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 8px 0;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.problem-card.fade-in:nth-child(1) { transition-delay: 0s; }
.problem-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.problem-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.problem-card.fade-in:nth-child(4) { transition-delay: 0.3s; }

.fairness-card.fade-in:nth-child(1) { transition-delay: 0s; }
.fairness-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fairness-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fairness-card.fade-in:nth-child(4) { transition-delay: 0.3s; }

.promise-item.fade-in:nth-child(1) { transition-delay: 0s; }
.promise-item.fade-in:nth-child(2) { transition-delay: 0.1s; }
.promise-item.fade-in:nth-child(3) { transition-delay: 0.2s; }
.promise-item.fade-in:nth-child(4) { transition-delay: 0.3s; }
.promise-item.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 968px) {
    :root {
        --section-padding: 100px;
    }

    .problem-grid,
    .fairness-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 48px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 14px 20px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .section-header h2 {
        font-size: 1.75rem;
    }

    .promise-item {
        flex-direction: column;
        gap: 16px;
        padding: 32px 0;
    }

    .promise-marker {
        flex-direction: row;
        gap: 16px;
    }

    .promise-line {
        height: 2px;
        width: auto;
        flex: 1;
        margin-top: 0;
        min-height: auto;
        background: linear-gradient(90deg, var(--color-terracotta), transparent);
    }

    .form-group {
        flex-direction: column;
    }

    .waitlist-form input,
    .waitlist-form button {
        width: 100%;
    }

    .stat-number {
        font-size: 3rem;
    }

    .pricing-card {
        padding: 32px;
    }

    .price {
        font-size: 2.5rem;
    }
}

/* ================================================
   ABOUT PAGE
   ================================================ */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out backwards;
    animation-delay: 0.1s;
}

.about-mission,
.about-story,
.about-company {
    padding: 100px 0;
}

.about-mission {
    background: var(--color-bg-warm);
}

.about-story {
    background: var(--color-bg);
}

.about-values {
    padding: 100px 0;
    background: var(--color-bg-warm);
}

.about-company {
    background: var(--color-bg);
}

.about-content {
    max-width: 720px;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 36px;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-terracotta);
}

.value-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

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

@media (max-width: 968px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 120px 0 60px;
    }

    .about-mission,
    .about-story,
    .about-values,
    .about-company {
        padding: 60px 0;
    }

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

/* ================================================
   CAREERS PAGE
   ================================================ */
.careers-intro {
    padding: 100px 0;
    background: var(--color-bg-warm);
}

.careers-positions {
    padding: 100px 0;
    background: var(--color-bg);
}

.careers-values {
    padding: 100px 0;
    background: var(--color-bg-warm);
}

.position-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 48px;
    max-width: 800px;
}

.position-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.position-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 93, 58, 0.1);
    border-radius: 16px;
    color: var(--color-terracotta);
    flex-shrink: 0;
}

.position-title h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.position-type {
    font-size: 0.9375rem;
    color: var(--color-terracotta);
    font-weight: 500;
}

.position-content {
    margin-bottom: 40px;
}

.position-content > p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
}

.position-content h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 32px;
    color: var(--color-text);
}

.position-content h4:first-of-type {
    margin-top: 0;
}

.position-list {
    list-style: none;
    padding: 0;
}

.position-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.position-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-terracotta);
    border-radius: 50%;
    opacity: 0.6;
}

.position-cta {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.apply-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 16px;
}

@media (max-width: 640px) {
    .careers-intro,
    .careers-positions,
    .careers-values {
        padding: 60px 0;
    }

    .position-card {
        padding: 28px;
    }

    .position-header {
        flex-direction: column;
        gap: 16px;
    }

    .position-title h3 {
        font-size: 1.375rem;
    }
}

/* ================================================
   LEGAL PAGES (Privacy, Terms)
   ================================================ */
.legal-content {
    padding: 80px 0 120px;
    background: var(--color-bg);
}

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

.legal-updated {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.legal-intro {
    padding: 32px;
    background: var(--color-bg-warm);
    border-radius: var(--border-radius);
    margin-bottom: 48px;
    border-left: 4px solid var(--color-terracotta);
}

.legal-intro p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin: 0;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.legal-body h3 {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.legal-body h3:first-child {
    margin-top: 0;
}

.legal-body p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

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

.legal-body ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.legal-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.legal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-terracotta);
    border-radius: 50%;
}

.legal-body ul li:last-child {
    margin-bottom: 0;
}

.legal-body ul li strong {
    color: var(--color-text);
    font-weight: 600;
}

.legal-body a {
    color: var(--color-terracotta);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

@media (max-width: 640px) {
    .legal-content {
        padding: 60px 0 80px;
    }

    .legal-intro {
        padding: 24px;
    }

    .legal-section {
        margin-bottom: 36px;
        padding-bottom: 36px;
    }

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

/* ================================================
   BLOG
   ================================================ */
.blog-back-link {
    margin-bottom: 24px;
}

.blog-back-link a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.blog-back-link a:hover {
    color: var(--color-terracotta);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-top: 16px;
}

.meta-divider {
    opacity: 0.5;
}

/* Blog Post Content */
.blog-post {
    padding: 80px 0 120px;
    background: var(--color-bg);
}

.blog-post .container {
    max-width: 720px;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.post-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 48px;
    margin-bottom: 24px;
}

.post-content h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content a {
    color: var(--color-terracotta);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 12px;
}

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

.post-content em {
    font-style: italic;
}

.post-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--color-bg-warm);
    border-left: 4px solid var(--color-terracotta);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: italic;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.9em;
    background: var(--color-surface);
    padding: 2px 6px;
    border-radius: 4px;
}

.post-content pre {
    margin: 32px 0;
    padding: 24px;
    background: var(--color-surface);
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Blog List */
.blog-list {
    padding: 80px 0 120px;
    background: var(--color-bg);
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 36px;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-terracotta);
}

.post-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 12px;
}

.post-card h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.post-card h2 a:hover {
    color: var(--color-terracotta);
}

.post-card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.post-card-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.blog-empty {
    text-align: center;
    padding: 80px 0;
}

.blog-empty p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .blog-post {
        padding: 60px 0 80px;
    }

    .blog-list {
        padding: 60px 0 80px;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 40px;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .post-card {
        padding: 28px;
    }

    .post-card h2 {
        font-size: 1.25rem;
    }
}
