/* ═══════════════════════════════════════════════════════
   KumbukTree Design System
   Palette: Forest Green + Warm Amber + Natural Cream
   Fonts: Plus Jakarta Sans (headings) + DM Sans (body)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
    /* Primary greens */
    --color-primary: #1B4332;
    --color-primary-light: #2D6A4F;
    --color-primary-soft: #40916C;
    --color-primary-pale: #74C69D;
    --color-primary-mist: #D8F3DC;

    /* Accent amber/gold */
    --color-accent: #E59500;
    --color-accent-light: #F0A830;
    --color-accent-soft: #FBC56D;
    --color-accent-pale: #FFF1D0;

    /* Neutrals */
    --color-bg: #FAFAF5;
    --color-bg-alt: #F2F0E8;
    --color-surface: #FFFFFF;
    --color-surface-hover: #F7F7F2;
    --color-text: #1A1A18;
    --color-text-secondary: #5A5A52;
    --color-text-muted: #8A8A80;
    --color-border: #E0DFD6;
    --color-border-light: #EDECE4;

    /* Dark section bg */
    --color-dark-bg: #0C2218;
    --color-dark-surface: #142E22;
    --color-dark-text: #E8E8E2;
    --color-dark-muted: #A0A098;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.06), 0 1px 2px rgba(27, 67, 50, 0.04);
    --shadow-md: 0 4px 12px rgba(27, 67, 50, 0.08), 0 2px 4px rgba(27, 67, 50, 0.04);
    --shadow-lg: 0 12px 32px rgba(27, 67, 50, 0.10), 0 4px 8px rgba(27, 67, 50, 0.04);
    --shadow-xl: 0 24px 64px rgba(27, 67, 50, 0.12), 0 8px 16px rgba(27, 67, 50, 0.04);
    --shadow-glow: 0 0 30px rgba(229, 149, 0, 0.15);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

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

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.35s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Layout */
    --max-width: 1200px;
    --content-width: 800px;
    --navbar-height: 72px;
}

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

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

ul,
ol {
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.4em;
}

/* ── Utility ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.section-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: var(--space-xl);
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 12px rgba(229, 149, 0, 0.3);
}

.btn-primary:hover {
    background: #D08700;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 149, 0, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-surface);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.85rem;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    background: rgba(250, 250, 245, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(224, 223, 214, 0.5);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(250, 250, 245, 0.92);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-primary);
    text-decoration: none;
}

.navbar-logo svg {
    width: 32px;
    height: 32px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    padding: 0;
}

.navbar-links a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.navbar-links a:hover {
    color: var(--color-primary);
}

.navbar-cta .btn {
    font-size: 0.85rem;
    padding: 10px 22px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 34, 24, 0.88) 0%, rgba(27, 67, 50, 0.75) 50%, rgba(45, 106, 79, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: var(--space-3xl) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-accent-soft);
    margin-bottom: var(--space-lg);
}

.hero h1 {
    color: #fff;
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.hero h1 span {
    color: var(--color-accent-soft);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Decorative floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(229, 149, 0, 0.08);
    animation: float 20s ease-in-out infinite;
}

.hero-shapes .shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -80px;
    animation-delay: 0s;
}

.hero-shapes .shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 80px;
    right: 20%;
    animation-delay: -7s;
}

.hero-shapes .shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ── Stats Bar ── */
.stats-bar {
    background: var(--color-primary);
    padding: var(--space-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-item {
    padding: var(--space-md);
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--color-accent-soft);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Feature Cards ── */
.features {
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-soft), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--color-primary-mist);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ── How It Works ── */
.how-it-works {
    background: var(--color-bg-alt);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-pale), var(--color-accent-soft));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.2);
}

.step h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.step p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ── About ── */
.about {
    background: var(--color-bg);
}

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

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-text h2 {
    margin-bottom: var(--space-md);
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.team-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.team-card h4 {
    margin-bottom: 2px;
}

.team-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.team-card p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}

/* ── Communication Transparency ── */
.communication {
    background: var(--color-dark-bg);
    color: var(--color-dark-text);
}

.communication .section-title {
    color: #fff;
}

.communication .section-subtitle {
    color: var(--color-dark-muted);
}

.comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.comm-card {
    background: var(--color-dark-surface);
    border: 1px solid rgba(116, 198, 157, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.comm-card:hover {
    border-color: rgba(116, 198, 157, 0.3);
    transform: translateY(-2px);
}

.comm-card h3 {
    color: var(--color-accent-soft);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comm-card p,
.comm-card li {
    color: var(--color-dark-muted);
    font-size: 0.92rem;
}

.comm-card ul {
    list-style: none;
    padding: 0;
}

.comm-card ul li {
    padding: 4px 0;
    padding-left: 1.2em;
    position: relative;
}

.comm-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary-pale);
    font-weight: 700;
}

/* ── Infrastructure ── */
.infrastructure {
    background: var(--color-bg-alt);
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.infra-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.infra-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.infra-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.infra-card h4 {
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.infra-card p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* ── Newsletter Section ── */
.newsletter {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(116, 198, 157, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 149, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.newsletter-text h2 {
    margin-bottom: var(--space-md);
}

.newsletter-text>p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.newsletter-perks {
    list-style: none;
    padding: 0;
}

.newsletter-perks li {
    padding: 6px 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.newsletter-perks li::first-letter {
    color: var(--color-accent);
}

/* Newsletter Card */
.newsletter-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-soft), var(--color-accent), var(--color-primary-pale));
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.newsletter-card-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.newsletter-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.newsletter-card-header h3 {
    margin-bottom: 4px;
    font-size: 1.3rem;
}

.newsletter-card-header p {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Form Styles */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
}

.form-group label .required {
    color: #E53E3E;
}

.form-group label .optional {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--color-primary-soft);
    box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
    background: var(--color-surface);
}

/* Checkbox */
.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary-soft);
    cursor: pointer;
    border-radius: 4px;
}

.form-checkbox label {
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--color-primary-light);
    text-decoration: underline;
    font-weight: 500;
}

.form-checkbox label a:hover {
    color: var(--color-accent);
}

/* Subscribe Button */
.btn-subscribe {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    margin-top: var(--space-sm);
    position: relative;
}

.btn-subscribe:disabled {
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-loader:not([hidden]) {
    display: flex;
}

/* Success State */
.newsletter-success {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

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

.newsletter-success p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 149, 0, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

/* ── Footer ── */
.footer {
    background: var(--color-dark-bg);
    color: var(--color-dark-muted);
    padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-brand .navbar-logo {
    color: #fff;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-dark-muted);
    max-width: 300px;
}

.footer h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-dark-muted);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

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

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

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

.footer-bottom-links a {
    color: var(--color-dark-muted);
    font-size: 0.82rem;
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: transform var(--transition-base);
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

.cookie-banner a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ── Legal Pages ── */
.legal-hero {
    background: var(--color-dark-bg);
    padding: calc(var(--navbar-height) + var(--space-2xl)) 0 var(--space-2xl);
    text-align: center;
}

.legal-hero h1 {
    color: #fff;
    margin-bottom: var(--space-sm);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.legal-hero .legal-date {
    color: var(--color-dark-muted);
    font-size: 0.9rem;
}

.legal-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.legal-content .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

.legal-content .back-link:hover {
    color: var(--color-accent);
}

.legal-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary-mist);
    font-size: 1.4rem;
}

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

.legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 0.92rem;
}

.legal-content table th,
.legal-content table td {
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
}

.legal-content table th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-primary);
}

.legal-contact {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.legal-contact h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* ── Trust Center Cards ── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.trust-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.trust-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.trust-card .trust-icon {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
}

.trust-card h3 {
    margin-bottom: var(--space-sm);
}

.trust-card p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

/* ── Scroll Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

/* ── Glass Card (used in Trust Center etc.) ── */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

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

    .about-image img {
        height: 300px;
    }

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

    .steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .navbar-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .navbar-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .newsletter-inner {
        gap: var(--space-lg);
    }

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

    .infra-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero {
        min-height: 80vh;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

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

    :root {
        --space-3xl: 64px;
        --space-2xl: 48px;
    }
}