/* ============================================================
   DUTY BLUE LANDING PAGE — STYLES
   duty.blue
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --bg-primary:    #0f172a;
    --bg-secondary:  #1e293b;
    --bg-tertiary:   #162032;
    --text-primary:  #f1f5f9;
    --text-muted:    #94a3b8;
    --text-faint:    #475569;

    --accent-indigo: #4f46e5;
    --accent-violet: #7c3aed;
    --accent-cyan:   #06b6d4;
    --accent-emerald:#10b981;
    --accent-amber:  #f59e0b;
    --accent-rose:   #ef4444;

    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --gradient-text: linear-gradient(90deg, #818cf8, #06b6d4);

    --card-bg:     rgba(30, 41, 59, 0.65);
    --card-border: rgba(255, 255, 255, 0.07);
    --glass-bg:    rgba(255, 255, 255, 0.04);
    --glass-border:rgba(255, 255, 255, 0.1);

    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', system-ui, sans-serif;

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  24px;
    --shadow-card:0 4px 24px rgba(0,0,0,0.35);
    --shadow-glow:0 0 40px rgba(79,70,229,0.18);

    --section-gap:  120px;
    --container-max:1200px;
    --ease-out:     cubic-bezier(0.4, 0, 0.2, 1);
    --transition:   all 0.3s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scroll Animation Base ─────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-fade {
    opacity: 0;
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal       { transform: translateY(40px); }
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-fade  { transform: none; }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-fade.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.10s; }
[data-delay="2"] { transition-delay: 0.20s; }
[data-delay="3"] { transition-delay: 0.30s; }
[data-delay="4"] { transition-delay: 0.40s; }
[data-delay="5"] { transition-delay: 0.50s; }
[data-delay="6"] { transition-delay: 0.60s; }

/* ── Typography helpers ────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    padding: 4px 13px;
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.3);
    border-radius: 100px;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.section-body {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.72;
    max-width: 560px;
    margin-bottom: 16px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(79,70,229,0.38);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79,70,229,0.55);
}

.btn--ghost {
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}
.btn--ghost:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.07);
}

.btn--large { padding: 15px 36px; font-size: 1rem; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.nav.scrolled {
    background: rgba(15,23,42,0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.logo-peel { color: white; }
.logo-dot  { color: var(--accent-cyan); animation: dotPulse 2.4s ease-in-out infinite; display: inline-block; margin: 0 1px; }
.logo-pot  { color: var(--accent-indigo); }

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

.nav__links {
    display: flex;
    align-items: center;
    gap: 34px;
    flex: 1;
}
.nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav__links a:hover { color: white; }

.nav__cta {
    padding: 8px 22px;
    background: var(--gradient-main);
    color: white;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 14px rgba(79,70,229,0.3);
}
.nav__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(79,70,229,0.5);
}

/* Right-aligned cluster holding Login + Request Demo */
.nav__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav__login {
    padding: 8px 20px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.nav__login:hover {
    border-color: var(--accent-cyan);
    color: white;
    background: var(--glass-bg);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav menu */
.nav__links.nav--mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 18px;
}
.nav__links.nav--mobile-open a { font-size: 1rem; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

/* Background */
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}
.blob--1 {
    width: 680px; height: 680px;
    background: var(--accent-indigo);
    top: -200px; right: -80px;
    opacity: 0.18;
    animation: blobFloat1 11s ease-in-out infinite;
}
.blob--2 {
    width: 520px; height: 520px;
    background: var(--accent-cyan);
    bottom: -120px; left: -100px;
    opacity: 0.13;
    animation: blobFloat2 13s ease-in-out infinite;
}
.blob--3 {
    width: 320px; height: 320px;
    background: var(--accent-violet);
    top: 35%; left: 42%;
    opacity: 0.09;
    animation: blobFloat3 9s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
    33%       { transform: translate(-35px, 35px) scale(1.04); border-radius: 50% 60% 40% 60% / 40% 50% 60% 50%; }
    66%       { transform: translate(28px, -25px) scale(0.97); border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
}
@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(50px, -55px) scale(1.07); }
}
@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.09; }
    50%       { transform: translate(-28px, 38px); opacity: 0.14; }
}

.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* Content */
.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__text { max-width: 560px; }

.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(79,70,229,0.14);
    border: 1px solid rgba(79,70,229,0.4);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 22px;
}

.hero__headline {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 26px;
}

.hero__sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.72;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.proof-items {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8125rem;
    color: var(--text-faint);
    font-weight: 500;
}

/* Floating cards */
.hero__visuals {
    position: relative;
    height: 460px;
}

.floating-card {
    position: absolute;
    background: rgba(15,23,42,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease;
}
.floating-card:hover { transform: translateY(-8px) !important; }

.card--progress {
    top: 16px; right: 56px;
    width: 186px;
    text-align: center;
    animation: floatP 8s ease-in-out infinite;
}
@keyframes floatP {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50%       { transform: translateY(-14px) rotate(2deg); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    justify-content: center;
}
.card-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.card-dot--green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.progress-ring   { margin: 0 auto 8px; }
.card-label      { font-size: 0.75rem; color: var(--text-faint); }

.card--evidence {
    bottom: 80px; right: 14px;
    width: 228px;
    animation: floatE 7s ease-in-out infinite;
}
@keyframes floatE {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-11px); }
}
.evidence-type-badge {
    display: inline-block;
    background: rgba(79,70,229,0.18);
    border: 1px solid rgba(79,70,229,0.4);
    color: #a5b4fc;
    font-size: 0.6875rem;
    padding: 3px 9px;
    border-radius: 5px;
    margin-bottom: 8px;
}
.card-title    { font-size: 0.875rem; font-weight: 600; color: white; margin-bottom: 8px; }
.evidence-status {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.75rem; color: #6ee7b7; margin-bottom: 8px;
}
.evidence-meta {
    display: flex; justify-content: space-between;
    font-size: 0.6875rem; color: var(--text-faint);
}

.card--grade {
    top: 150px; left: 0;
    width: 178px;
    text-align: center;
    animation: floatG 9s ease-in-out infinite;
}
@keyframes floatG {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%       { transform: translateY(-13px) rotate(-3deg); }
}
.grade-icon    { margin: 0 auto 8px; width: 38px; }
.grade-label   { font-size: 0.6875rem; color: var(--text-muted); margin-bottom: 4px; }
.grade-value   { font-size: 1.125rem; font-weight: 800; font-family: var(--font-heading); color: white; margin-bottom: 5px; }
.grade-assessor{ font-size: 0.6875rem; color: #6ee7b7; }

/* Scroll hint */
.hero__scroll-hint {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-faint);
    z-index: 1;
    animation: scrollHint 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes scrollHint {
    0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 0.9;  transform: translateX(-50%) translateY(5px); }
}


/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 52px 40px;
}
.stats__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1;
}
.stat-label {
    font-size: 0.8125rem;
    color: var(--text-faint);
    font-weight: 500;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: var(--section-gap) 40px; }
.about__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.highlight-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(16,185,129,0.07);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6ee7b7;
}

.about__visual { display: flex; justify-content: center; }
.role-diagram  {
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 8px 36px rgba(79,70,229,0.2));
}


/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 0 40px var(--section-gap); }

.features__header {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-bottom: 80px;
    text-align: center;
}
.features__header .section-body {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feature-row {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 64px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.feature-row--reverse .feature-row__text   { order: 2; }
.feature-row--reverse .feature-row__visual { order: 1; }

.feature-number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    opacity: 0.65;
}
.feature-title {
    font-size: clamp(1.5rem, 2.5vw, 2.05rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}
.feature-body {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.72;
    margin-bottom: 24px;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-list li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.feature-illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 36px rgba(0,0,0,0.45));
}


/* ============================================================
   ACCESSIBILITY THEMES
   ============================================================ */
.themes {
    background: var(--bg-secondary);
    padding: var(--section-gap) 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.themes__container  { max-width: var(--container-max); margin: 0 auto; }
.themes__header     { text-align: center; margin-bottom: 56px; }
.themes__header .section-body {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.themes__demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    margin-bottom: 64px;
}

.theme-swatches {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 28px; /* room for labels */
}

.swatch {
    position: relative;
    width: 50px; height: 50px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.swatch:hover  { transform: scale(1.12); }
.swatch.active {
    transform: scale(1.18);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.45);
}
.swatch-label {
    position: absolute;
    bottom: -22px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-faint);
    white-space: nowrap;
    font-weight: 500;
    pointer-events: none;
}

/* ── Live Theme Preview ────────────────────────────────────── */
.theme-preview {
    width: 100%;
    max-width: 700px;
    height: 270px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 24px 64px rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.4s ease;

    /* Default (light) CSS variables */
    --tp-bg:            #f0f2f5;
    --tp-sidebar-bg:    #2c3e50;
    --tp-sidebar-text:  rgba(255,255,255,0.8);
    --tp-text:          #212529;
    --tp-text-muted:    #6c757d;
    --tp-accent:        #0d6efd;
    --tp-accent-text:   white;
    --tp-card-bg:       white;
    --tp-border:        rgba(0,0,0,0.08);
    --tp-progress-bg:   rgba(0,0,0,0.08);
}

/* Theme variable sets */
.theme-preview[data-active-theme="light"] {
    --tp-bg:           #f0f2f5;
    --tp-sidebar-bg:   #2c3e50;
    --tp-sidebar-text: rgba(255,255,255,0.8);
    --tp-text:         #212529;
    --tp-text-muted:   #6c757d;
    --tp-accent:       #0d6efd;
    --tp-accent-text:  white;
    --tp-card-bg:      white;
    --tp-border:       rgba(0,0,0,0.08);
    --tp-progress-bg:  rgba(0,0,0,0.08);
}
.theme-preview[data-active-theme="dark"] {
    --tp-bg:           #1a1d23;
    --tp-sidebar-bg:   #12151a;
    --tp-sidebar-text: rgba(220,228,255,0.75);
    --tp-text:         #e4e6ea;
    --tp-text-muted:   #8a9ab5;
    --tp-accent:       #5b98ff;
    --tp-accent-text:  white;
    --tp-card-bg:      #22262e;
    --tp-border:       rgba(255,255,255,0.07);
    --tp-progress-bg:  rgba(255,255,255,0.07);
}
.theme-preview[data-active-theme="high-contrast"] {
    --tp-bg:           #000000;
    --tp-sidebar-bg:   #000000;
    --tp-sidebar-text: #ffffff;
    --tp-text:         #ffffff;
    --tp-text-muted:   #cccccc;
    --tp-accent:       #ffff00;
    --tp-accent-text:  #000000;
    --tp-card-bg:      #1a1a1a;
    --tp-border:       rgba(255,255,255,0.45);
    --tp-progress-bg:  rgba(255,255,255,0.2);
}
.theme-preview[data-active-theme="warm-muted"] {
    --tp-bg:           #f5f0e8;
    --tp-sidebar-bg:   #3d3630;
    --tp-sidebar-text: rgba(255,240,220,0.85);
    --tp-text:         #3d3630;
    --tp-text-muted:   #7a6a5a;
    --tp-accent:       #7a6450;
    --tp-accent-text:  white;
    --tp-card-bg:      #faf6ef;
    --tp-border:       rgba(100,80,60,0.12);
    --tp-progress-bg:  rgba(100,80,60,0.1);
}
.theme-preview[data-active-theme="soft-blue"] {
    --tp-bg:           #dce8f5;
    --tp-sidebar-bg:   #1a3a5f;
    --tp-sidebar-text: rgba(210,230,255,0.85);
    --tp-text:         #1a3a5f;
    --tp-text-muted:   #4a6a8a;
    --tp-accent:       #2860a8;
    --tp-accent-text:  white;
    --tp-card-bg:      #eaf2fc;
    --tp-border:       rgba(40,96,168,0.12);
    --tp-progress-bg:  rgba(40,96,168,0.1);
}
.theme-preview[data-active-theme="mint-green"] {
    --tp-bg:           #e0f5ed;
    --tp-sidebar-bg:   #1a4a30;
    --tp-sidebar-text: rgba(200,240,220,0.9);
    --tp-text:         #1a4a30;
    --tp-text-muted:   #3a7a55;
    --tp-accent:       #2e8b6a;
    --tp-accent-text:  white;
    --tp-card-bg:      #edfaf4;
    --tp-border:       rgba(46,139,106,0.15);
    --tp-progress-bg:  rgba(46,139,106,0.1);
}
.theme-preview[data-active-theme="peach-rose"] {
    --tp-bg:           #fdf0f0;
    --tp-sidebar-bg:   #4a1520;
    --tp-sidebar-text: rgba(255,210,210,0.9);
    --tp-text:         #4a1520;
    --tp-text-muted:   #8a3a4a;
    --tp-accent:       #c44060;
    --tp-accent-text:  white;
    --tp-card-bg:      #fff5f5;
    --tp-border:       rgba(196,64,96,0.12);
    --tp-progress-bg:  rgba(196,64,96,0.1);
}

/* Preview sub-elements */
.tp-sidebar {
    width: 148px;
    background: var(--tp-sidebar-bg);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-shrink: 0;
    transition: background 0.4s;
}
.tp-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tp-accent);
    transition: color 0.4s;
}
.tp-nav { display: flex; flex-direction: column; gap: 4px; }
.tp-nav-item {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tp-sidebar-text);
    opacity: 0.65;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    user-select: none;
}
.tp-nav-item.active {
    background: var(--tp-accent);
    color: var(--tp-accent-text);
    opacity: 1;
    transition: background 0.4s, color 0.4s;
}

.tp-main {
    flex: 1;
    background: var(--tp-bg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    transition: background 0.4s;
}
.tp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tp-greeting {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tp-text);
    transition: color 0.4s;
}
.tp-badge {
    font-size: 0.625rem;
    padding: 3px 9px;
    background: var(--tp-accent);
    color: var(--tp-accent-text);
    border-radius: 100px;
    font-weight: 600;
    transition: background 0.4s, color 0.4s;
}

.tp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-card {
    background: var(--tp-card-bg);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--tp-border);
    transition: background 0.4s, border-color 0.4s;
}
.tp-card-label {
    font-size: 0.6875rem;
    color: var(--tp-text-muted);
    margin-bottom: 4px;
    transition: color 0.4s;
}
.tp-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-text);
    margin-bottom: 8px;
    transition: color 0.4s;
}
.tp-progress {
    height: 5px;
    background: var(--tp-progress-bg);
    border-radius: 3px;
    overflow: hidden;
    transition: background 0.4s;
}
.tp-progress-bar {
    height: 100%;
    background: var(--tp-accent);
    border-radius: 3px;
    transition: background 0.4s;
}

.tp-btn {
    align-self: flex-start;
    padding: 8px 18px;
    background: var(--tp-accent);
    color: var(--tp-accent-text);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.4s, color 0.4s;
}

/* Theme feature cards grid */
.themes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.theme-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    transition: var(--transition);
}
.theme-feature-card:hover {
    border-color: rgba(79,70,229,0.3);
    transform: translateY(-4px);
    background: rgba(79,70,229,0.06);
}
.tfc-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 12px;
}
.theme-feature-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}
.theme-feature-card p {
    font-size: 0.75rem;
    color: var(--text-faint);
    line-height: 1.5;
}


/* ============================================================
   WHO IT'S FOR
   ============================================================ */
.roles { padding: var(--section-gap) 40px; }
.roles__container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}
.roles__container .section-body {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.roles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}
.role-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: var(--transition);
}
.role-card:hover {
    border-color: rgba(79,70,229,0.3);
    background: rgba(79,70,229,0.05);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}
.role-icon { width: 54px; height: 54px; margin-bottom: 18px; }
.role-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}
.role-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}
.role-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.role-tags span {
    font-size: 0.6875rem;
    padding: 4px 8px;
    background: rgba(79,70,229,0.12);
    border: 1px solid rgba(79,70,229,0.25);
    border-radius: 5px;
    color: #a5b4fc;
    font-weight: 500;
}


/* ============================================================
   COMPLIANCE & SECURITY
   ============================================================ */
.compliance {
    background: var(--bg-secondary);
    padding: var(--section-gap) 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.compliance__container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}
.compliance__container .section-body {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}
.compliance__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: left;
}
.compliance-card {
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition);
}
.compliance-card:hover {
    border-color: rgba(79,70,229,0.2);
    transform: translateY(-4px);
}
.cc-icon { width: 58px; height: 58px; margin-bottom: 20px; }
.compliance-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}
.compliance-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.cc-list { display: flex; flex-direction: column; gap: 8px; }
.cc-list li {
    font-size: 0.8125rem;
    color: var(--text-faint);
    padding-left: 18px;
    position: relative;
}
.cc-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-indigo);
    font-size: 0.75rem;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    position: relative;
    padding: var(--section-gap) 40px;
    overflow: hidden;
    text-align: center;
}
.cta-section__bg { position: absolute; inset: 0; pointer-events: none; }
.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.12;
}
.cta-blob--1 { width: 520px; height: 520px; background: #4f46e5; top: -120px; left: 8%; }
.cta-blob--2 { width: 420px; height: 420px; background: #06b6d4; bottom: -120px; right: 8%; }

.cta-section__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.cta-headline {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, white 20%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-body {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.72;
    max-width: 540px;
    margin: 0 auto 36px;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.cta-domain { font-size: 0.875rem; color: var(--text-faint); letter-spacing: 0.05em; }
.cta-domain span {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 18px;
    border-radius: 100px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 40px 0;
}
.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__brand p {
    font-size: 0.875rem;
    color: var(--text-faint);
    line-height: 1.65;
    margin-top: 16px;
    max-width: 260px;
}
.footer-domain { margin-top: 8px !important; color: var(--accent-cyan) !important; font-size: 0.8125rem !important; }

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.footer-col a { font-size: 0.875rem; color: var(--text-faint); transition: color 0.2s; }
.footer-col a:hover { color: white; }

.footer__bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8125rem;
    color: var(--text-faint);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero__content          { grid-template-columns: 1fr; }
    .hero__visuals          { display: none; }
    .about__container       { grid-template-columns: 1fr; }
    .about__visual          { display: none; }
    .roles__grid            { grid-template-columns: repeat(2, 1fr); }
    .compliance__grid       { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    :root { --section-gap: 80px; }

    .nav__container { padding: 0 24px; }
    .nav__links     { display: none; }
    .nav__cta       { display: none; }
    /* Keep Login reachable on mobile; sit it beside the hamburger */
    .nav__actions   { margin-left: auto; gap: 10px; }
    .nav__login     { padding: 7px 16px; }
    .nav__toggle    { display: flex; margin-left: 4px; }

    .hero            { padding: 100px 24px 60px; }
    .stats           { padding: 40px 24px; }
    .about           { padding: 80px 24px; }
    .features        { padding: 0 24px 80px; }
    .themes          { padding: 80px 24px; }
    .roles           { padding: 80px 24px; }
    .compliance      { padding: 80px 24px; }
    .cta-section     { padding: 80px 24px; }
    .footer          { padding: 48px 24px 0; }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 44px 0;
    }
    .feature-row--reverse .feature-row__text   { order: unset; }
    .feature-row--reverse .feature-row__visual { order: unset; }

    .roles__grid       { grid-template-columns: 1fr; }
    .themes__grid      { grid-template-columns: repeat(4, 1fr); }
    .footer__container { grid-template-columns: 1fr; gap: 40px; }
    .footer__links     { grid-template-columns: repeat(2, 1fr); }
    .footer__bottom    { flex-direction: column; gap: 8px; text-align: center; padding: 18px 0; }
}

@media (max-width: 540px) {
    .hero__headline  { font-size: 2.2rem; }
    .hero__actions   { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .stats__container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item:last-child { grid-column: 1 / -1; }
    .themes__grid    { grid-template-columns: repeat(2, 1fr); }
    .footer__links   { grid-template-columns: 1fr; }
    .cta-actions     { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
    .theme-preview   { height: auto; min-height: 220px; }
}

/* ============================================================
   FOOTER POLICY / LEGAL LINK STRIP
   ============================================================ */
.footer-policy {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 24px 40px 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 4px;
    border-top: 1px solid var(--card-border);
}
.footer-policy a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-policy a:hover { color: white; }
.footer-policy__sep { color: var(--text-faint); margin: 0 6px; font-size: 0.75rem; }

@media (max-width: 540px) {
    .footer-policy { padding: 20px 24px 4px; }
}
