@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-base: #0f1720;
    --bg-surface: #1a2e32;
    --bg-surface-glass: rgba(30, 30, 30, 0.6);
    --bg-surface-glass-light: rgba(30, 30, 30, 0.4);

    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20.2%, 65.1%);
    --text-tertiary: #a1a1aa;

    --accent-primary: #438d9d;
    --accent-secondary: #cd9494;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-glass: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.05);
    --shadow-glass-hover: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
    --shadow-glow: 0 0 40px rgba(67, 141, 157, 0.2);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --navbar-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    -webkit-text-size-adjust: 100%;
}

body {
    background: linear-gradient(135deg, #0f1720 0%, #1a2e32 50%, #2d2424 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.875rem, 4vw + 0.5rem, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem); }

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

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   GLASSMORPHISM
   ============================================ */
.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glass-hover);
}

.glass-card {
    background: var(--bg-surface-glass-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glass-hover);
    border-color: var(--border-strong);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    border: none;
    outline: none;
    gap: 0.5rem;
    white-space: nowrap;
    min-height: 48px;
    line-height: 1;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 141, 157, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(67, 141, 157, 0.6);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Primary CTA — hero spotlight button */
.btn-cta-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    background-size: 200% 200%;
    color: white;
    font-size: clamp(1rem, 2vw + 0.25rem, 1.25rem);
    font-weight: 700;
    padding: 1.125rem 2.5rem;
    box-shadow: 0 8px 30px rgba(67, 141, 157, 0.45), 0 0 60px rgba(67, 141, 157, 0.15);
    animation: gradientShift 4s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.55s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(67, 141, 157, 0.6), 0 0 80px rgba(67, 141, 157, 0.25);
    color: white;
}

.btn-cta-primary:hover::before {
    transform: translateX(100%);
}

.btn-cta-primary svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-logo-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    width: 3.25rem;
    height: 3.25rem;
    box-shadow: 0 10px 15px -3px rgba(67, 141, 157, 0.2);
    border: 2px solid rgba(67, 141, 157, 0.4);
    background: linear-gradient(to bottom right, rgba(67, 141, 157, 0.2), rgba(205, 148, 148, 0.1), rgba(67, 141, 157, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.nav-logo-container img {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.nav-logo-container:hover { transform: scale(1.05); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-fast);
    white-space: nowrap;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.375rem;
    font-size: 0.9375rem;
    min-height: 40px;
}

/* Mobile toggle */
.nav-mobile-toggle {
    display: none;
    color: var(--text-primary);
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: 0.375rem;
    border-radius: 0.625rem;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
}

.nav-mobile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

.nav-mobile-toggle svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

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

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 5s linear infinite;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ============================================
   BACKGROUND DECORATIONS
   ============================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right,  rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    z-index: -1;
    pointer-events: none;
}

.glow-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67,141,157,0.15) 0%, rgba(205,148,148,0.08) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

.glow-top-right   { top: -200px; right: -200px; }
.glow-bottom-left { bottom: -200px; left: -200px; }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.hero-content {
    max-width: 820px;
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1rem;
}

/* Primary CTA row */
.hero-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    max-width: 440px;
    margin-top: 0.5rem;
}

.hero-cta-subtitle {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* Secondary action row */
.hero-actions-secondary {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-tertiary);
    text-decoration: none;
    animation: bounce 2s ease-in-out infinite;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.scroll-hint:hover { color: var(--text-secondary); }
.scroll-hint svg   { width: 28px; height: 28px; }

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 141, 157, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent-primary);
    border: 1px solid rgba(67, 141, 157, 0.2);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.glass-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* ============================================
   DASHBOARD PREVIEW
   ============================================ */
.dashboard-preview {
    position: relative;
    width: 100%;
}

.dashboard-mockup {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.5),
        0 0 100px rgba(67, 141, 157, 0.15);
    overflow: hidden;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.dashboard-placeholder {
    width: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 3rem 2rem;
}

.dashboard-placeholder img {
    width: 110px;
    opacity: 0.75;
}

.dashboard-placeholder h3 {
    color: rgba(255,255,255,0.45);
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
}

/* ============================================
   CTA BANNER SECTION
   ============================================ */
.section-cta {
    padding-top: 0;
    padding-bottom: 6rem;
}

.cta-banner {
    padding: 4rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cta-banner h2 {
    max-width: 600px;
}

.cta-banner p {
    max-width: 480px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.footer-links-group h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.875rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-cta-btn {
    padding: 0.5rem 1.375rem;
    font-size: 0.9375rem;
    min-height: 40px;
}

/* ============================================
   CONTENT PAGES (Privacy, ToS)
   ============================================ */
.content-page {
    padding-top: calc(var(--navbar-height) + 4rem);
    padding-bottom: 6rem;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.content-page h1 { margin-bottom: 0.75rem; }

.content-page .last-updated {
    color: var(--text-tertiary);
    margin-bottom: 3rem;
    font-size: 0.875rem;
    display: block;
}

.content-page h2 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.625rem);
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
    color: var(--text-primary);
}

.content-page p,
.content-page ul {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.content-page ul  { padding-left: 1.5rem; }
.content-page li  { margin-bottom: 0.5rem; }

/* ============================================
   HTMX UTILITIES
   ============================================ */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

/* ============================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE — MOBILE  (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    :root { --navbar-height: 64px; }

    .container { padding: 0 1.25rem; }

    /* Nav */
    .nav-mobile-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(12, 20, 28, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 1.25rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
        gap: 0.25rem;
        text-align: center;
    }

    .nav-links.active { display: flex; }

    .nav-link {
        padding: 0.75rem 0;
        width: 100%;
        border-radius: 8px;
    }

    .nav-link::after { display: none; }

    .nav-cta {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--navbar-height) + 2rem);
        padding-bottom: 5rem;
        min-height: 100svh;
    }

    .hero-logo { max-width: 260px; }

    .hero-content { gap: 1rem; }

    .hero-cta-row {
        width: 100%;
        max-width: 100%;
        margin-top: 0.25rem;
    }

    .btn-cta-primary {
        width: 100%;
        padding: 1.0625rem 1.5rem;
        font-size: 1.0625rem;
    }

    .hero-actions-secondary {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions-secondary .btn { width: 100%; }

    /* Sections */
    .section { padding: 4rem 0; }

    .section-header { margin-bottom: 2.5rem; }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .glass-card { padding: 1.5rem; }

    /* Dashboard */
    .dashboard-placeholder {
        min-height: 280px;
        padding: 2.5rem 1.5rem;
    }

    /* CTA banner */
    .cta-banner {
        padding: 2.5rem 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-brand { max-width: 100%; }

    .nav-logo { justify-content: center; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

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

    /* Content pages */
    .content-page {
        padding-top: calc(var(--navbar-height) + 2.5rem);
        padding-bottom: 4rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-logo { max-width: 210px; }

    .btn-cta-primary {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .btn-cta-primary svg { width: 18px; height: 18px; }

    .container { padding: 0 1rem; }

    .section { padding: 3rem 0; }

    .features-grid { gap: 1rem; }

    .glass-card { padding: 1.25rem; }

    .feature-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .feature-icon svg { width: 24px; height: 24px; }

    .cta-banner { padding: 2rem 1.25rem; }

    .dashboard-placeholder { min-height: 220px; }
}

/* ============================================
   LARGE SCREENS  (≥ 1440px)
   ============================================ */
@media (min-width: 1440px) {
    .container    { max-width: 1400px; }
    .hero-content { max-width: 920px; }
}

/* ============================================
   TOUCH DEVICE OPTIMISATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .btn           { min-height: 48px; }
    .btn-cta-primary { min-height: 56px; }

    .glass-card:hover        { transform: none; }
    .nav-logo-container:hover { transform: none; }
    .btn-primary:hover       { transform: none; }
    .btn-secondary:hover     { transform: none; }
    .btn-cta-primary:hover   { transform: none; }

    .nav-link { padding: 0.875rem 0; }
}

/* ============================================
   CONTENT PAGES — ENHANCED LAYOUT
   ============================================ */

/* Override base content-page for the new layout */
.content-page {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 6rem;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ---- Page Header ---- */
.content-page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.content-page-icon {
    width: 56px;
    height: 56px;
    background: rgba(67, 141, 157, 0.12);
    border: 1px solid rgba(67, 141, 157, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.content-page-icon svg {
    width: 28px;
    height: 28px;
}

.content-page-header h1 {
    margin: 0;
    line-height: 1.15;
}

/* Override base last-updated */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 0.3rem 0.875rem;
}

.last-updated svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ---- Lead card ---- */
.content-lead {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 16px 16px 0;
}

.content-lead p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
}

/* ---- Warning banner ---- */
.content-warning {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(205, 148, 148, 0.08);
    border: 1px solid rgba(205, 148, 148, 0.25);
    border-left: 3px solid var(--accent-secondary);
    border-radius: 0 14px 14px 0;
    padding: 1.125rem 1.375rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.content-warning svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-secondary);
    margin-top: 2px;
}

.content-warning p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.content-warning strong {
    color: var(--accent-secondary);
}

/* ---- Numbered section ---- */
.content-section {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem 0;
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section-label {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.125rem;
}

.section-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    background: rgba(67, 141, 157, 0.1);
    border: 1px solid rgba(67, 141, 157, 0.2);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.content-section-label h2 {
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.375rem);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.content-section-body > p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.content-section-body > p:last-child {
    margin-bottom: 0;
}

/* ---- Icon list ---- */
.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.content-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color var(--transition-fast);
}

.content-list li:first-child { padding-top: 0.5rem; }
.content-list li:last-child  { border-bottom: none; padding-bottom: 0; }

.content-list li > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-primary);
    margin-top: 3px;
}

.content-list li > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.content-list li > div strong {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.content-list li > div p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* Definitions variant — slightly larger icons */
.content-list--definitions li > svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

/* Simple list — icon acts as bullet, no bold heading */
.content-list--simple li > svg {
    color: rgba(205, 148, 148, 0.7);
    margin-top: 2px;
}

/* ---- Security highlight block ---- */
.content-highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(67, 141, 157, 0.06);
    border: 1px solid rgba(67, 141, 157, 0.2);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 14px 14px 0;
    padding: 1.125rem 1.375rem;
}

.content-highlight svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-primary);
    margin-top: 2px;
}

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

/* ---- Footer nav (link to sibling page) ---- */
.content-page-footer-nav {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

/* ============================================
   CONTENT PAGES — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .content-page {
        padding-top: calc(var(--navbar-height) + 2rem);
        padding-bottom: 4rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .content-page-header { gap: 0.625rem; margin-bottom: 2rem; }

    .content-page-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .content-page-icon svg { width: 24px; height: 24px; }

    .content-lead { margin-bottom: 1.75rem; }

    .content-warning { margin-bottom: 1.75rem; }

    .content-section { padding: 1.5rem 0; }

    .content-section-label { gap: 0.75rem; }

    .content-list li { gap: 0.75rem; padding: 0.875rem 0; }

    .content-page-footer-nav {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .content-page-footer-nav .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .content-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .content-section-label { flex-direction: column; gap: 0.375rem; }

    .section-number { align-self: flex-start; }
}

.hero-purpose-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    max-width: 500px;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-legal-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-legal-links span {
    color: var(--border-strong);
}