:root {
    /* Warm, beige-first palette */
    --sand-50: #f8fafc;
    --sand-100: #f1f5f9;
    --sand-200: #e2e8f0;
    --sand-300: #cbd5e1;
    --sand-400: #94a3b8;
    --sand-500: #6366f1;
    --sand-600: #4f46e5;
    --ink-700: #111827;
    --ink-800: #0f172a;
    --sage-500: #22d3ee;
    --sage-600: #0ea5e9;
    --clay-500: #a855f7;
    --clay-600: #7c3aed;

    --gradient-start: #6366f1;
    --gradient-middle: #7c3aed;
    --gradient-end: #22d3ee;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --accent-500: #22d3ee;
    --accent-600: #0ea5e9;
    --secondary-500: #7c3aed;
    --secondary-600: #6d28d9;
    --primary-rgb: 99, 102, 241;
    --secondary-rgb: 124, 58, 237;
    --accent-rgb: 34, 211, 238;
    --brand-gradient-strong: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95) 0%, rgba(var(--secondary-rgb), 0.9) 50%, rgba(var(--accent-rgb), 0.95) 100%);
    --brand-gradient-soft: linear-gradient(150deg, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--secondary-rgb), 0.18) 50%, rgba(var(--accent-rgb), 0.16) 100%);
    --brand-gradient-muted: linear-gradient(160deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--secondary-rgb), 0.1) 45%, rgba(var(--accent-rgb), 0.12) 100%);
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-800: #1f2937;
    --neutral-900: #0f172a;
    --success-500: #22c55e;
    --danger-500: #ef4444;
    --warning-500: #f59e0b;
    --info-500: #0ea5e9;
    --glass: rgba(15, 23, 42, 0.35);
    --glass-border: rgba(99, 102, 241, 0.25);
}

.brand-gradient {
    background: var(--brand-gradient-strong);
}

.brand-gradient-soft {
    background: var(--brand-gradient-soft);
}

.brand-gradient-muted {
    background: var(--brand-gradient-muted);
}

.brand-gradient-banner {
    position: relative;
    background: var(--brand-gradient-strong);
    color: rgba(249, 250, 252, 0.95);
    overflow: hidden;
}

.brand-gradient-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 19, 17, 0.35), rgba(7, 19, 17, 0.12));
    opacity: 0.65;
    pointer-events: none;
}

.brand-gradient-banner > * {
    position: relative;
    z-index: 1;
}

.brand-gradient-panel {
    background: var(--brand-gradient-soft);
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
}

.brand-chip {
    background: rgba(var(--secondary-rgb), 0.2);
    color: var(--primary-700);
    border-radius: 999px;
}

.brand-chip--solid {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.95), rgba(var(--primary-rgb), 0.95));
    color: #fff;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.25);
    border-radius: 999px;
}

.brand-ambient {
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.18), transparent 65%);
}

.brand-ambient--accent {
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 65%);
}

.brand-gradient-surface {
    background: var(--brand-gradient-muted);
}

.brand-focus-field:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 0 0 2px rgba(var(--secondary-rgb), 0.25), 0 0 0 5px rgba(var(--primary-rgb), 0.2);
}

/* Premium landing canvas */
.hero-canvas {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 8rem) 1.5rem clamp(4rem, 8vw, 6rem);
    background: linear-gradient(160deg, rgba(var(--secondary-rgb), 0.25), rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.2));
    color: var(--neutral-900);
}

.hero-canvas__glow {
    position: absolute;
    inset: -40% 10% auto;
    height: 60%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.35), transparent 70%);
    filter: blur(50px);
    opacity: 0.7;
}

.hero-canvas__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 120px 120px;
    mix-blend-mode: soft-light;
    opacity: 0.3;
}

.hero-frame {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: clamp(3rem, 6vw, 4.5rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin-top: 1.5rem;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-copy p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: rgba(15, 23, 42, 0.75);
    max-width: 38rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.015em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-btn.primary {
    background: linear-gradient(130deg, rgba(var(--primary-rgb), 0.95), rgba(var(--accent-rgb), 0.95));
    color: #fff;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.35);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(var(--primary-rgb), 0.35);
}

.hero-btn.secondary {
    border: 1px solid rgba(var(--secondary-rgb), 0.4);
    color: var(--primary-700);
    background: rgba(255, 255, 255, 0.35);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.55);
}

.hero-glance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.hero-glance div {
    padding: 1.2rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    backdrop-filter: blur(10px);
}

.hero-glance dt {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(15, 23, 42, 0.55);
}

.hero-glance dd {
    margin-top: 0.35rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.hero-glance p {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.6);
}

.hero-stage {
    display: grid;
    gap: 1.5rem;
}

.hero-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
}

.hero-card.orbit header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-label {
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.5);
}

.hero-card.orbit ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card.orbit li span {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.55);
}

.hero-card.orbit li strong {
    display: block;
    font-size: 1.05rem;
    margin-top: 0.4rem;
}

.hero-card.pulse {
    display: grid;
    grid-template-columns: minmax(0, 120px) 1fr;
    gap: 1.5rem;
    align-items: center;
}

.pulse-chart {
    position: relative;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18), transparent 65%);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.pulse-ring {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px dashed rgba(var(--primary-rgb), 0.4);
    animation: pulse 6s linear infinite;
}

.pulse-needle {
    position: absolute;
    width: 2px;
    height: 40%;
    background: rgba(var(--primary-rgb), 0.8);
    top: 10%;
    left: 50%;
    transform-origin: bottom center;
    animation: sweep 8s ease-in-out infinite;
}

@keyframes pulse {
    from { transform: scale(0.9); opacity: 0.4; }
    to { transform: scale(1.1); opacity: 1; }
}

@keyframes sweep {
    0% { transform: rotate(-30deg); }
    50% { transform: rotate(25deg); }
    100% { transform: rotate(-30deg); }
}

.pulse-body strong {
    font-size: 1.4rem;
}

.pulse-body small {
    display: block;
    margin-top: 0.35rem;
    color: rgba(15, 23, 42, 0.55);
}

.hero-card.timeline .timeline-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-card.timeline .timeline-row:last-child {
    border-bottom: none;
}

.hero-card.timeline span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(var(--primary-rgb), 0.8);
}

.hero-card.timeline p {
    margin: 0;
    color: rgba(15, 23, 42, 0.75);
}

.systems-stack {
    padding: clamp(4rem, 8vw, 6rem) 1.5rem;
    background: #fff;
}

.systems-stack .eyebrow {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    color: var(--primary-700);
}

.systems-stack h2 {
    margin-top: 1rem;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.systems-stack p {
    margin-top: 0.8rem;
    max-width: 44rem;
    color: rgba(15, 23, 42, 0.7);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.systems-card {
    padding: 2rem;
    border-radius: 24px;
    background: rgba(var(--secondary-rgb), 0.08);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.systems-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 65px rgba(15, 23, 42, 0.12);
}

.systems-card .badge {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(var(--primary-rgb), 0.8);
}

.systems-card h3 {
    margin-top: 0.5rem;
    font-size: 1.4rem;
}

.systems-card ul {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: rgba(15, 23, 42, 0.7);
}

.panorama {
    padding: clamp(4rem, 9vw, 7rem) 1.5rem;
    background: var(--brand-gradient-soft);
}

.panorama-track {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.panorama-card {
    border-radius: 20px;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    min-height: 180px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.panorama-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 55px rgba(15, 23, 42, 0.12);
}

.panorama-card header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.panorama-card header span {
    font-size: 0.85rem;
    color: rgba(var(--primary-rgb), 0.8);
}

.proof {
    padding: clamp(4rem, 8vw, 7rem) 1.5rem;
    background: #fff;
}

.proof-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.proof-card {
    border-radius: 24px;
    padding: 2rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.proof-card.highlight {
    background: linear-gradient(140deg, rgba(var(--secondary-rgb), 0.2), rgba(var(--accent-rgb), 0.35));
    color: rgba(15, 23, 42, 0.9);
}

.proof-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.proof-card div {
    margin-top: 1.4rem;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}

.finale {
    margin: clamp(4rem, 9vw, 7rem) 1.5rem clamp(5rem, 10vw, 8rem);
    border-radius: 32px;
    padding: clamp(3rem, 6vw, 4.5rem);
    box-shadow: 0 35px 75px rgba(15, 23, 42, 0.25);
}

.finale-body {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.finale h2 {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
}

.finale p {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: rgba(240, 249, 255, 0.9);
}

.finale-cta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-btn.secondary,
.finale .hero-btn.secondary {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(15, 23, 42, 0.25);
}

@media (max-width: 960px) {
    .hero-card.pulse {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
    }
    .hero-btn {
        width: 100%;
    }
    .proof-card {
        padding: 1.5rem;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--neutral-900);
    background: #ffffff;
    min-height: 100vh;
    letter-spacing: 0.005em;
}

body.theme-body {
    background: #ffffff;
    color: rgba(31, 26, 22, 0.95);
    position: relative;
}

body.theme-body::before,
body.theme-body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body.theme-body::before {
    background: radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), 0.12), transparent 70%);
    filter: blur(0px);
}

body.theme-body::after {
    background:
        radial-gradient(circle at 20% 85%, rgba(var(--primary-rgb), 0.12), transparent 60%),
        radial-gradient(circle at 85% 85%, rgba(var(--secondary-rgb), 0.12), transparent 60%);
    opacity: 0.55;
}

main {
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top, rgba(var(--primary-rgb), 0.12), transparent 70%);
    z-index: 0;
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.page-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(var(--primary-rgb), 0.12) 1px, transparent 0),
        radial-gradient(rgba(var(--accent-rgb), 0.1) 1px, transparent 0);
    background-size: 120px 120px;
    background-position: 0 0, 60px 60px;
    opacity: 0.3;
    z-index: -1;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.page-section {
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 28px;
    padding: 2.75rem;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.16),
        0 2px 8px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.page-section.dark {
    background: rgba(15, 23, 42, 0.78);
    color: rgba(248, 250, 252, 0.98);
}

.content-surface {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(18px);
}

.glass-panel {
    position: relative;
    border-radius: 24px;
    padding: 2.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 28px 50px rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.glass-panel.dark {
    background: linear-gradient(135deg, #e6fffb, #fff9e3);
    border-color: rgba(148, 163, 184, 0.25);
    color: rgba(30, 41, 59, 0.9);
}

.glow-card {
    position: relative;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(var(--accent-rgb), 0.9));
    color: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    border: 1px solid rgba(var(--secondary-rgb), 0.35);
    box-shadow:
        0 25px 60px rgba(var(--primary-rgb), 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.glow-card::before,
.glow-card::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(55px);
    transform: translate(-50%, -50%);
}

.glow-card::before {
    top: 0%;
    left: 35%;
    width: 320px;
    height: 320px;
    background: rgba(var(--primary-rgb), 0.45);
}

.glow-card::after {
    bottom: -35%;
    right: -10%;
    width: 340px;
    height: 340px;
    background: rgba(var(--accent-rgb), 0.45);
}

.glow-card > * {
    position: relative;
    z-index: 1;
}

.floating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--secondary-rgb), 0.25);
    color: var(--primary-700);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 3vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(15, 23, 42, 0.95);
    margin-bottom: 0.75rem;
}

.page-title.gradient {
    background: linear-gradient(120deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(15, 23, 42, 0.65);
    max-width: 58ch;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(47, 42, 37, 0.8);
    position: relative;
    transition: all 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-rgb), 0.12));
    opacity: 1;
    transition: border-color 0.2s ease, background 0.2s ease;
    z-index: -1;
}

.nav-link:hover {
    color: rgba(31, 26, 22, 0.95);
    transform: translateY(-1px);
    background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.16), rgba(var(--accent-rgb), 0.16));
}

.nav-link.active {
    color: #0f172a;
    background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.18), rgba(var(--secondary-rgb), 0.18));
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(31, 26, 22, 0.9);
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.14);
    transition: all 0.25s ease;
}

.mobile-nav-link.active {
    background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.18), rgba(var(--secondary-rgb), 0.18));
    color: #0f172a;
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.18);
}

.mobile-nav-link:hover {
    transform: translateX(4px);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(var(--secondary-rgb), 0.2);
    color: var(--primary-600);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 14px;
    padding: 0.65rem 1.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, var(--primary-600), var(--primary-700));
    box-shadow: 0 18px 30px rgba(93, 70, 255, 0.28);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 35px rgba(93, 70, 255, 0.35);
}

.btn:hover::after {
    opacity: 0.75;
}

.btn.secondary {
    background: rgba(15, 23, 42, 0.85);
    color: rgba(248, 250, 252, 0.98);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
}

.btn.ghost {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-600);
    box-shadow: none;
}

.btn.ghost:hover {
    background: rgba(var(--primary-rgb), 0.2);
}

.flash-message {
    position: relative;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}

.flash-message.success {
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.3);
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.28);
}

.flash-message.info {
    background: rgba(var(--secondary-rgb), 0.15);
    color: var(--primary-700);
    border-color: rgba(var(--secondary-rgb), 0.4);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    color: rgba(15, 23, 42, 0.92);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow:
        0 0 0 4px rgba(var(--primary-rgb), 0.15),
        0 4px 16px rgba(var(--primary-rgb), 0.12);
}

label {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
    letter-spacing: 0.01em;
}

.form-help {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.85);
    margin-top: 0.35rem;
}

.table-wrapper {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: rgba(71, 85, 105, 0.85);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 1rem 1.25rem;
}

tbody td {
    padding: 1.05rem 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(15, 23, 42, 0.85);
}

tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.06);
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
    color: var(--primary-600);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(71, 85, 105, 0.85);
    letter-spacing: 0.02em;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.45), rgba(var(--accent-rgb), 0.35));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.25rem;
    top: 0.4rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(var(--accent-rgb), 0.8));
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.28);
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--secondary-rgb), 0.2);
    color: var(--primary-700);
    font-weight: 600;
    font-size: 0.8rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(var(--secondary-rgb), 0.2);
    color: var(--primary-600);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(var(--accent-rgb), 0.8));
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.shadow-sheen {
    position: relative;
    overflow: hidden;
}

.shadow-sheen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.shadow-sheen:hover::after {
    opacity: 1;
}

/* Landing page */
.landing-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 12vw, 10rem) 1.5rem clamp(4rem, 10vw, 8rem);
    color: var(--neutral-900);
}

.landing-hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% -15%, rgba(var(--secondary-rgb), 0.45), transparent 60%),
        radial-gradient(circle at 88% 5%, rgba(var(--accent-rgb), 0.3), transparent 58%),
        linear-gradient(125deg, rgba(var(--secondary-rgb), 0.25), rgba(var(--primary-rgb), 0.3), rgba(var(--accent-rgb), 0.25));
    z-index: -2;
}

.landing-hero::after {
    content: '';
    position: absolute;
    inset: 25% -20% auto -20%;
    height: clamp(18rem, 35vw, 28rem);
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.35), transparent 60%),
                radial-gradient(circle at 65% 35%, rgba(var(--accent-rgb), 0.25), transparent 70%);
    filter: blur(35px);
    z-index: -1;
}

.landing-hero__inner {
    display: grid;
    gap: clamp(3rem, 6vw, 6rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 960px) {
    .landing-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    }
}

.landing-hero__copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.landing-hero__copy p {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(15, 23, 42, 0.72);
    max-width: 40rem;
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-700);
    background: rgba(var(--secondary-rgb), 0.2);
    border: 1px solid rgba(var(--secondary-rgb), 0.35);
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.landing-btn.primary {
    color: #fff;
    background: linear-gradient(120deg, var(--primary-600), var(--primary-700));
    box-shadow: 0 25px 45px rgba(var(--primary-rgb), 0.28);
}

.landing-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 55px rgba(var(--primary-rgb), 0.35);
}

.landing-btn.ghost {
    color: var(--primary-600);
    background: rgba(var(--secondary-rgb), 0.18);
    border: 1px solid rgba(var(--secondary-rgb), 0.35);
}

.landing-btn.ghost:hover {
    transform: translateY(-4px);
    background: rgba(var(--secondary-rgb), 0.25);
}

.landing-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: clamp(1.5rem, 2.5vw, 2.75rem);
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.landing-metrics dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
}

.landing-metrics dd {
    margin-top: 0.65rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--primary-600);
}

.landing-hero__preview {
    position: relative;
    display: grid;
    gap: 1.75rem;
}

.preview-card {
    position: relative;
    border-radius: 32px;
    padding: clamp(1.8rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 35px 55px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}

.preview-card.depth-1 {
    translate: 0 -10px;
}

.preview-card.depth-2 {
    translate: clamp(0px, 8vw, 40px) 0;
}

.preview-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.preview-card p {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.64);
}

.preview-sparkline {
    margin-top: 2rem;
    height: 120px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(var(--primary-rgb), 0.12), transparent),
        url('data:image/svg+xml,%3Csvg width="320" height="120" viewBox="0 0 320 120" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 100L40 90C80 80 160 60 200 75C240 90 280 130 320 110" stroke="%2336C2AB" stroke-width="4" stroke-linecap="round"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-size: cover;
}

.preview-bubble {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 24px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.preview-bubble + .preview-bubble {
    margin-top: 1rem;
}

.preview-bubble .emoji {
    font-size: 1.5rem;
}

.preview-bubble strong {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.85);
}

.preview-bubble .muted {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: rgba(71, 85, 105, 0.75);
}

.preview-orb {
    position: absolute;
    inset: auto 15% -20% auto;
    width: clamp(220px, 28vw, 320px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4), transparent 60%);
    filter: blur(45px);
    opacity: 0.8;
    z-index: -1;
}

.landing-showcase {
    padding: clamp(4rem, 10vw, 7rem) 1.5rem;
    background: var(--brand-gradient-muted);
}

.landing-showcase__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 960px) {
    .landing-showcase__inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: center;
    }
}

.showcase-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.showcase-copy p {
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.7);
}

.showcase-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 2.25rem;
    color: rgba(15, 23, 42, 0.72);
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.showcase-list i {
    font-size: 0.35rem;
    color: rgba(var(--primary-rgb), 0.9);
}

.showcase-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature-pane {
    position: relative;
    border-radius: 24px;
    padding: 2.1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    min-height: 240px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-pane:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 55px rgba(15, 23, 42, 0.16);
}

.feature-pane header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-pane .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-600);
    font-weight: 700;
}

.feature-pane h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-pane .muted {
    margin-top: 1.15rem;
    font-size: 0.92rem;
    color: rgba(71, 85, 105, 0.7);
}

.feature-glow {
    position: absolute;
    inset: 65% -20% -10% -20%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.landing-journey {
    padding: clamp(5rem, 12vw, 8rem) 1.5rem;
    background: var(--brand-gradient-soft);
}

.landing-journey__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.journey-head h2 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.journey-head p {
    color: rgba(15, 23, 42, 0.68);
    max-width: 40rem;
}

.journey-timeline {
    position: relative;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    display: grid;
    gap: 2.5rem;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 clamp(1.2rem, 4vw, 2.5rem);
    width: 2px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.4), rgba(var(--accent-rgb), 0.35));
}

.journey-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: clamp(2.5rem, 8vw, 3.6rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.journey-timeline .step {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.4rem, 7vw, 3.2rem);
    height: clamp(2.4rem, 7vw, 3.2rem);
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary-600);
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.journey-card {
    border-radius: 20px;
    padding: 1.9rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.journey-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.journey-card p {
    font-size: 0.95rem;
    color: rgba(71, 85, 105, 0.76);
}

.landing-marquee {
    padding: clamp(3rem, 8vw, 6rem) 0;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.08));
}

.landing-marquee__track {
    display: flex;
    gap: 2rem;
    animation: marquee 18s linear infinite;
}

.landing-marquee__track article {
    flex: 0 0 auto;
    min-width: 260px;
    padding: 1.4rem 1.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing-marquee__track .emoji {
    font-size: 1.5rem;
}

.landing-marquee__track p {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.75);
}

.landing-cta {
    padding: clamp(5rem, 12vw, 8rem) 1.5rem clamp(6rem, 14vw, 10rem);
    background: var(--brand-gradient-strong);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 20, 16, 0.3), rgba(8, 20, 16, 0.12));
    pointer-events: none;
}

.landing-cta > * {
    position: relative;
    z-index: 1;
}

.landing-cta__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.landing-cta__inner h2 {
    font-size: clamp(2.3rem, 4vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-cta__inner p {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.82);
}

.landing-cta__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.landing-cta .landing-btn.ghost {
    color: rgba(226, 232, 240, 0.95);
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
}

.landing-cta .landing-btn.ghost:hover {
    background: rgba(148, 163, 184, 0.18);
}

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

[data-animate="slide"] {
    transform: translateY(40px);
}

[data-animate="float"] {
    transform: translateY(20px) scale(0.98);
}

[data-animate="stagger"] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.is-visible[data-animate="float"] {
    transform: translateY(0) scale(1);
}

.is-visible[data-animate="stagger"] > * {
    opacity: 1;
    transform: translateY(0);
}

.is-visible[data-animate="stagger"] > *:nth-child(2) {
    transition-delay: 0.1s;
}

.is-visible[data-animate="stagger"] > *:nth-child(3) {
    transition-delay: 0.2s;
}

.journey-timeline .is-visible {
    transform: translateY(0);
    opacity: 1;
}

.feedback-card-base {
    --feedback-surface: rgba(255, 255, 255, 0.96);
    --feedback-border: rgba(148, 163, 184, 0.28);
    --feedback-accent: rgba(var(--primary-rgb), 0.3);
    position: relative;
    margin-top: 1.5rem;
    border-radius: 22px;
    padding: clamp(1.4rem, 3vw, 1.9rem);
    background: var(--feedback-surface);
    border: 1px solid var(--feedback-border);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.feedback-card-base::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--feedback-accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.feedback-card-glow::before {
    opacity: 1;
}

.feedback-card-success {
    --feedback-surface: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(209, 250, 229, 0.92));
    --feedback-border: rgba(74, 222, 128, 0.45);
    --feedback-accent: rgba(74, 222, 128, 0.54);
    box-shadow: 0 28px 60px rgba(34, 197, 94, 0.25);
}

.feedback-card-partial {
    --feedback-surface: linear-gradient(135deg, rgba(254, 243, 199, 0.96), rgba(253, 230, 138, 0.9));
    --feedback-border: rgba(251, 191, 36, 0.45);
    --feedback-accent: rgba(251, 191, 36, 0.54);
    box-shadow: 0 28px 60px rgba(234, 179, 8, 0.22);
}

.feedback-card-error {
    --feedback-surface: linear-gradient(135deg, rgba(254, 226, 226, 0.96), rgba(252, 165, 165, 0.9));
    --feedback-border: rgba(248, 113, 113, 0.45);
    --feedback-accent: rgba(248, 113, 113, 0.54);
    box-shadow: 0 28px 60px rgba(248, 113, 113, 0.25);
}

.feedback-card-base:hover {
    transform: translateY(-2px);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .landing-hero__cta,
    .landing-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .journey-timeline::before {
        inset: 0 auto 0 clamp(0.8rem, 4vw, 1.5rem);
    }

    .journey-timeline li {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .landing-marquee__track {
        animation-duration: 24s;
    }

    .feedback-card-base {
        padding: 1.35rem;
    }
}

@media (max-width: 480px) {
    .feedback-card-base {
        padding: 1.15rem;
    }
}

.highlight {
    padding: 0.25rem 0.45rem;
    border-radius: 0.35rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.01em;
}

.highlight.red {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.highlight.green {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.highlight.yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #b45309;
}

/* Multi-color feedback highlights */
.highlight-base {
    --highlight-bg-color: rgba(253, 230, 138, 0.55);
    --highlight-border-color: rgba(217, 119, 6, 0.35);
    --highlight-text-color: #92400e;
    --highlight-underline-color: rgba(217, 119, 6, 0.75);
    position: relative;
    display: inline-flex;
    align-items: baseline;
    padding: 0.15rem 0.45rem;
    border-radius: 0.45rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.35;
    background: var(--highlight-bg-color);
    color: var(--highlight-text-color);
    box-shadow: inset 0 0 0 1px var(--highlight-border-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.highlight-base:hover {
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.06),
        0 10px 18px -14px rgba(15, 23, 42, 0.45);
}

.highlight-base.highlight-partial {
    padding-bottom: 0.35rem;
}

.highlight-base.highlight-partial::after {
    content: '';
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.15rem;
    border-bottom: 2px dotted var(--highlight-underline-color);
    opacity: 0.9;
}

.highlight-yellow {
    --highlight-bg-color: rgba(253, 230, 138, 0.65);
    --highlight-border-color: rgba(217, 119, 6, 0.45);
    --highlight-text-color: #92400e;
    --highlight-underline-color: rgba(217, 119, 6, 0.8);
}

.highlight-blue {
    --highlight-bg-color: rgba(191, 219, 254, 0.65);
    --highlight-border-color: rgba(59, 130, 246, 0.4);
    --highlight-text-color: #1d4ed8;
    --highlight-underline-color: rgba(37, 99, 235, 0.75);
}

.highlight-green {
    --highlight-bg-color: rgba(167, 243, 208, 0.7);
    --highlight-border-color: rgba(34, 197, 94, 0.4);
    --highlight-text-color: #047857;
    --highlight-underline-color: rgba(22, 163, 74, 0.75);
}

.highlight-pink {
    --highlight-bg-color: rgba(252, 207, 227, 0.7);
    --highlight-border-color: rgba(219, 39, 119, 0.4);
    --highlight-text-color: #be185d;
    --highlight-underline-color: rgba(190, 24, 93, 0.75);
}

.highlight-purple {
    --highlight-bg-color: rgba(221, 214, 254, 0.7);
    --highlight-border-color: rgba(168, 85, 247, 0.35);
    --highlight-text-color: #6d28d9;
    --highlight-underline-color: rgba(124, 58, 237, 0.7);
}

.highlight-indigo {
    --highlight-bg-color: rgba(199, 210, 254, 0.7);
    --highlight-border-color: rgba(99, 102, 241, 0.4);
    --highlight-text-color: #4338ca;
    --highlight-underline-color: rgba(79, 70, 229, 0.75);
}

.highlight-teal {
    --highlight-bg-color: rgba(153, 246, 228, 0.7);
    --highlight-border-color: rgba(20, 184, 166, 0.35);
    --highlight-text-color: #0f766e;
    --highlight-underline-color: rgba(13, 148, 136, 0.75);
}

.highlight-orange {
    --highlight-bg-color: rgba(254, 215, 170, 0.7);
    --highlight-border-color: rgba(234, 88, 12, 0.4);
    --highlight-text-color: #c2410c;
    --highlight-underline-color: rgba(194, 65, 12, 0.75);
}

.highlight-lime {
    --highlight-bg-color: rgba(217, 249, 157, 0.75);
    --highlight-border-color: rgba(132, 204, 22, 0.4);
    --highlight-text-color: #4d7c0f;
    --highlight-underline-color: rgba(101, 163, 13, 0.75);
}

.highlight-cyan {
    --highlight-bg-color: rgba(165, 243, 252, 0.7);
    --highlight-border-color: rgba(var(--primary-rgb), 0.35);
    --highlight-text-color: var(--primary-700);
    --highlight-underline-color: rgba(var(--primary-rgb), 0.75);
}

.highlight-multi-3 {
    --highlight-text-color: #312e81;
    --highlight-border-color: rgba(79, 70, 229, 0.35);
    background-image: linear-gradient(
        120deg,
        rgba(253, 230, 138, 0.55) 0%,
        rgba(196, 181, 253, 0.55) 50%,
        rgba(153, 246, 228, 0.55) 100%
    );
    color: var(--highlight-text-color);
    box-shadow: inset 0 0 0 1px var(--highlight-border-color);
}

.highlight-multi-4plus {
    --highlight-text-color: #1f2937;
    --highlight-border-color: rgba(15, 23, 42, 0.15);
    background-image: linear-gradient(
        115deg,
        rgba(253, 230, 138, 0.55),
        rgba(191, 219, 254, 0.55),
        rgba(167, 243, 208, 0.55),
        rgba(252, 207, 227, 0.55)
    );
    color: var(--highlight-text-color);
    box-shadow: inset 0 0 0 1px var(--highlight-border-color);
}

.brand-themed-page .bg-indigo-100 {
    background-color: rgba(var(--secondary-rgb), 0.2) !important;
}

.brand-themed-page .bg-indigo-50,
.brand-themed-page .hover\:bg-indigo-50:hover,
.brand-themed-page .hover\:bg-indigo-100:hover {
    background-color: rgba(var(--secondary-rgb), 0.12) !important;
}

.brand-themed-page .text-indigo-600,
.brand-themed-page .hover\:text-indigo-600:hover,
.brand-themed-page .group:hover .group-hover\:text-indigo-600 {
    color: var(--primary-600) !important;
}

.brand-themed-page .text-indigo-700 {
    color: var(--primary-700) !important;
}

.brand-themed-page .text-indigo-400 {
    color: rgba(var(--secondary-rgb), 0.8) !important;
}

.brand-themed-page .border-indigo-100 {
    border-color: rgba(var(--secondary-rgb), 0.25) !important;
}

.brand-themed-page .border-indigo-600 {
    border-color: rgba(var(--primary-rgb), 0.85) !important;
}

.brand-themed-page .bg-indigo-600,
.brand-themed-page .bg-indigo-500 {
    background-color: rgba(var(--primary-rgb), 0.92) !important;
}

.brand-themed-page .hover\:bg-indigo-700:hover,
.brand-themed-page .hover\:bg-indigo-500:hover {
    background-color: rgba(var(--primary-rgb), 1) !important;
}

.brand-themed-page .focus\:ring-indigo-500:focus,
.brand-themed-page .focus\:ring-indigo-500:focus-visible,
.brand-themed-page .focus\:ring-indigo-500:focus-within,
.brand-themed-page .focus\:ring-indigo-600:focus,
.brand-themed-page .focus\:ring-indigo-600:focus-visible {
    box-shadow: 0 0 0 2px rgba(var(--secondary-rgb), 0.28), 0 0 0 4px rgba(var(--primary-rgb), 0.2) !important;
}

.brand-themed-page .focus-visible\:outline-indigo-600:focus-visible {
    outline-color: rgba(var(--primary-rgb), 0.8) !important;
}

.highlight-base[data-count="5"] {
    background-image: linear-gradient(
        110deg,
        rgba(253, 230, 138, 0.55),
        rgba(191, 219, 254, 0.55),
        rgba(167, 243, 208, 0.55),
        rgba(252, 207, 227, 0.55),
        rgba(221, 214, 254, 0.55)
    );
}

@media (prefers-reduced-motion: reduce) {
    .highlight-base {
        transition: none;
    }
}

.strikethrough {
    text-decoration: line-through;
    color: rgba(100, 116, 139, 0.8);
}

.red {
    background: rgba(239, 68, 68, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-style: italic;
}

.green {
    background: rgba(34, 197, 94, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.yellow {
    background: rgba(234, 179, 8, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.scrollbar-soft {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.scrollbar-soft::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.scrollbar-soft::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 999px;
}

.scrollbar-soft::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.45), rgba(var(--accent-rgb), 0.45));
    border-radius: 999px;
}

.scrollbar-soft::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.6), rgba(var(--accent-rgb), 0.6));
}

.spinner {
    display: inline-block;
    width: 42px;
    height: 42px;
    border: 4px solid rgba(148, 163, 184, 0.25);
    border-top: 4px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.question-info p {
    margin-bottom: 0.65rem;
}

.checkmark {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.checkmark path {
    stroke: var(--success-500);
    stroke-width: 4;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: draw 0.55s ease forwards;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(12px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 1024px) {
    .page-section,
    .content-surface,
    .glass-panel,
    .glow-card {
        border-radius: 22px;
        padding: 2.25rem;
    }

    .page-shell {
        padding: 3rem 1.25rem;
    }

    .flash-message {
        padding: 0.9rem 1.25rem;
    }
}

@media (max-width: 768px) {
    body.theme-body {
        background: var(--neutral-50);
        color: rgba(15, 23, 42, 0.9);
    }

    body.theme-body::before,
    body.theme-body::after {
        display: none;
    }

    .page-shell {
        padding: 2.5rem 1rem;
    }

    .page-section,
    .content-surface,
    .glass-panel,
    .glow-card {
        border-radius: 20px;
        padding: 1.85rem;
    }

    .page-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .page-content {
        gap: 2.25rem;
    }

    main::before,
    .page-shell::before {
        display: none;
    }

    .glow-card::before,
    .glow-card::after {
        width: 220px;
        height: 220px;
    }

    .flash-message {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .flash-message > span {
        margin-bottom: 0.15rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline::before {
        left: 0.6rem;
    }

    .timeline-marker {
        left: -1.4rem;
    }

    .table-wrapper {
        overflow-x: auto;
        border-radius: 18px;
        -webkit-overflow-scrolling: touch;
        margin-inline: -0.5rem;
        padding-bottom: 0.75rem;
    }

    .table-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.4);
        border-radius: 999px;
    }

    table {
        min-width: 620px;
    }

    thead th,
    tbody td {
        padding: 0.85rem 1rem;
    }

    .metric-pill {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding: 2rem 0.85rem;
    }

    .page-section,
    .content-surface,
    .glass-panel,
    .glow-card {
        border-radius: 18px;
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    .page-title {
        font-size: clamp(1.85rem, 8vw, 2.2rem);
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .flash-message {
        font-size: 0.95rem;
    }

    .flash-message > span {
        margin-bottom: 0.35rem;
    }

    table {
        min-width: 560px;
    }
}

/* Tailwind utility overrides for cohesive theme */
.bg-white {
    background-color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 22px !important;
    box-shadow:
        0 18px 35px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(14px);
}

.bg-gray-50,
.bg-slate-50 {
    background-color: rgba(241, 245, 249, 0.7) !important;
    border-radius: 18px !important;
}

.border-gray-200,
.border-slate-200,
.border-gray-100 {
    border-color: rgba(148, 163, 184, 0.3) !important;
}

.shadow-sm,
.shadow,
.shadow-lg {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
}

/* Admin Dropdown Styles */
.nav-dropdown-panel {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.nav-dropdown-panel .admin-dropdown-link:first-child {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.nav-dropdown-panel .admin-dropdown-link:last-child {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.admin-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(71, 85, 105, 0.85);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.admin-dropdown-link:last-child {
    border-bottom: none;
}

.admin-dropdown-link:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: rgba(30, 41, 59, 0.95);
    padding-left: 1.25rem;
}

.admin-dropdown-link.active {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-600);
    font-weight: 600;
}

.admin-dropdown-link i {
    width: 1rem;
    text-align: center;
}

/* Mobile Admin Dropdown */
.mobile-admin-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(71, 85, 105, 0.85);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-admin-link:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: rgba(30, 41, 59, 0.95);
    padding-left: 1.25rem;
}

.mobile-admin-link.active {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-600);
    font-weight: 600;
}

.mobile-admin-link i {
    width: 1rem;
    text-align: center;
}
