:root {
    color-scheme: dark;
    /* TapBios design tokens (--tb-*) */
    --tb-bg: #06080f;
    --tb-surface: #111827;
    --tb-surface-2: #1a2332;
    --tb-primary: #00d9f5;
    --tb-primary-hover: #5cebff;
    --tb-accent: #00b4c8;
    --tb-text: #f1f5f9;
    --tb-muted: #94a3b8;
    --tb-border: #243044;
    --tb-success: #34d399;
    --tb-warning: #fbbf24;
    --tb-danger: #f87171;
    --tb-radius-sm: 8px;
    --tb-radius-md: 12px;
    --tb-radius-lg: 16px;
    --tb-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);

    /* Violet secondary accent */
    --tb-violet: #7c3aed;
    --tb-violet-hover: #6d28d9;
    --tb-violet-soft: rgba(124, 58, 237, 0.12);
    --tb-violet-rgb: 124, 58, 237;

    /* Gradient overlays */
    --tb-gradient-hero:
        radial-gradient(ellipse 90% 70% at 50% -10%,
            rgba(0, 217, 245, 0.16) 0%,
            rgba(124, 58, 237, 0.07) 50%,
            transparent 80%);
    --tb-gradient-card:
        radial-gradient(ellipse 80% 140% at 0% 0%,
            rgba(0, 217, 245, 0.08), transparent 60%);

    /* Refined shadow system */
    --tb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
    --tb-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.30), 0 2px 6px rgba(0, 0, 0, 0.15);
    --tb-shadow-glow: 0 0 0 1px rgba(0, 217, 245, 0.2), 0 4px 20px rgba(0, 217, 245, 0.12);
    --tb-shadow-violet: 0 4px 20px rgba(124, 58, 237, 0.15);

    --color-bg: var(--tb-bg);
    --color-surface: var(--tb-surface);
    --color-surface-elevated: var(--tb-surface-2);
    --color-primary: var(--tb-primary);
    --color-primary-hover: var(--tb-primary-hover);
    --color-secondary: var(--tb-accent);
    --color-text: var(--tb-text);
    --color-muted: var(--tb-muted);
    --color-border: var(--tb-border);
    --color-success: var(--tb-success);
    --color-error: var(--tb-danger);
    --color-warning: var(--tb-warning);
    --color-primary-rgb: 0, 217, 245;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-accent: 0 4px 20px rgba(var(--color-primary-rgb), 0.2);
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
    --font-sans: var(--font-body);
    --max-width: 1120px;
    --header-height: 4rem;

    /* Legacy aliases */
    --bg: var(--color-bg);
    --surface: var(--color-surface-elevated);
    --text: var(--color-text);
    --muted: var(--color-muted);
    --accent: var(--color-primary);
    --border: var(--color-border);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(var(--max-width), 92vw);
    margin: 0 auto;
}

.container-narrow {
    width: min(720px, 92vw);
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    font-family: var(--font-display);
    text-wrap: balance;
}

h1, h2 {
    letter-spacing: -0.025em;
}

h3, h4 {
    letter-spacing: -0.01em;
}

.eyebrow {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.6875rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-muted);
    max-width: 42rem;
}

.muted {
    color: var(--color-muted);
}

.small {
    font-size: 0.875rem;
}

code {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.96);
}

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

.btn-primary {
    background: var(--color-primary);
    color: #06080f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 217, 245, 0.15);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #06080f;
    box-shadow: var(--tb-shadow-glow);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
    background: rgba(var(--color-primary-rgb), 0.08);
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-muted);
}

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

.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

/* Cards & panels */
.card,
.panel {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.panel-error h1 {
    margin-top: 0;
}

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

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    font-size: 0.9375rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

/* Public site header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* TapBios wordmark (transparent PNG) */
.tapbios-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    line-height: 0;
}

.tapbios-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 2rem;
    max-width: min(11rem, 42vw);
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.tapbios-logo--sidebar {
    max-height: 2.125rem;
    max-width: 9.5rem;
}

.tapbios-logo--login {
    max-height: 2.5rem;
    max-width: 12rem;
}

.tapbios-logo--hero {
    max-height: 3.5rem;
    max-width: 15rem;
    margin-bottom: 1.5rem;
}

.tapbios-logo--footer {
    max-height: 1.875rem;
    max-width: 10rem;
}

.tapbios-logo--compact {
    max-height: 1.75rem;
    max-width: 8.5rem;
}

.tapbios-brand-suffix {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-muted);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--color-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--color-text);
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    font: inherit;
}

.site-main {
    padding: 0;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand p {
    margin: 0.5rem 0 0;
    max-width: 24rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

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

.footer-copy {
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* Landing page */
.landing-hero {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(4.5rem, 11vw, 8rem);
    overflow: hidden;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--tb-gradient-hero);
    pointer-events: none;
}

.landing-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--color-primary-rgb), 0.25) 40%,
        rgba(var(--tb-violet-rgb), 0.15) 60%,
        transparent);
    pointer-events: none;
}

.landing-hero .container {
    position: relative;
}

.landing-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    margin: 0 0 1.25rem;
    letter-spacing: -0.035em;
    max-width: 16ch;
    font-weight: 800;
}

.landing-hero .lead {
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.landing-section {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.landing-section-alt {
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

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

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin: 0 0 0.75rem;
}

.section-header p {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--color-muted);
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.45);
    box-shadow: var(--shadow-accent);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg,
        rgba(var(--color-primary-rgb), 0.15),
        rgba(var(--tb-violet-rgb), 0.08));
    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.125rem;
}

.feature-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step-card {
    position: relative;
    padding-top: 0.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #06080f;
    font-weight: 800;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
}

.step-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-card-featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-accent);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #06080f;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.pricing-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.pricing-features li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.pricing-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.cta-band {
    text-align: center;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(135deg,
        rgba(var(--color-primary-rgb), 0.08),
        rgba(var(--tb-violet-rgb), 0.06));
    border: 1px solid rgba(var(--tb-violet-rgb), 0.15);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%,
        rgba(var(--color-primary-rgb), 0.08), transparent 60%);
    pointer-events: none;
}

.cta-band h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
    margin: 0 auto 1.5rem;
    max-width: 32rem;
    color: var(--color-muted);
}

.checklist {
    padding-left: 1.25rem;
}

.param-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
}

/* Mobile public nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
    }

    .site-header.is-nav-open .site-nav {
        display: flex;
    }

    .site-nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
    }

    .site-nav-actions .btn {
        width: 100%;
    }

    .site-header .container {
        position: relative;
        flex-wrap: wrap;
    }
}

.public-status-page {
    padding: 4rem 0 5rem;
    text-align: center;
}

.public-status-page .narrow {
    max-width: 32rem;
    margin: 0 auto;
}

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

.public-status-page .lead {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-md);
    padding: 0.25rem 1rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.75rem 0;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 0 0 1rem;
    color: var(--tb-muted);
}

/* Bootstrap theme layer */
.form-control,
.form-select {
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(12, 18, 29, 0.82);
    color: var(--color-text);
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.72);
}

.form-control:focus,
.form-select:focus {
    background: rgba(10, 16, 28, 0.95);
    color: var(--color-text);
    border-color: rgba(var(--color-primary-rgb), 0.6);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.18);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.92);
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    color: #fecaca;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.7rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.18);
}

.btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.18);
}

/* Marketing layout refresh */
.layout-public-marketing {
    background:
        radial-gradient(circle at top center, rgba(var(--color-primary-rgb), 0.12), transparent 42%),
        linear-gradient(180deg, #06080f 0%, #070b12 35%, #05070d 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(6, 8, 15, 0.72);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header .container {
    gap: 1rem;
}

.site-header .navbar-collapse {
    align-items: center;
}

.site-header .nav-link {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    transition: color 0.18s cubic-bezier(0.2, 0, 0, 1), opacity 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
    color: var(--color-text);
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-main {
    position: relative;
}

.site-footer {
    margin-top: 0;
    padding: 3.25rem 0 2.4rem;
    background: linear-gradient(180deg, rgba(6, 8, 15, 0), rgba(9, 13, 22, 0.96));
}

.site-footer .container {
    gap: 1.75rem;
}

.marketing-home .container {
    position: relative;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.18);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.15rem;
}

.marketing-home h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

.marketing-home .lead {
    max-width: 40rem;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-stat-grid {
    margin-top: 2rem;
}

.hero-stat-card {
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(15, 23, 36, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: var(--tb-shadow-sm);
}

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.hero-stat-label {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    text-wrap: pretty;
}

.hero-showcase {
    position: relative;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(160deg, #0d1826 0%, #081018 100%);
    border: 1px solid rgba(0, 217, 245, 0.12);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 217, 245, 0.06);
    overflow: hidden;
}

.hero-showcase::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 245, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-showcase-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 1.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill-live {
    background: rgba(0, 217, 245, 0.1);
    color: #67e8f9;
    border: 1px solid rgba(0, 217, 245, 0.2);
}

.status-pill-live::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
    flex-shrink: 0;
}

.hero-showcase-stack {
    position: relative;
    display: grid;
    gap: 0.75rem;
}

.signal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, border-color 0.2s;
}

.signal-card:hover {
    background: rgba(0, 217, 245, 0.04);
    border-color: rgba(0, 217, 245, 0.14);
}

.signal-label {
    margin: 0 0 0.2rem;
    color: var(--color-primary);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.8;
}

.signal-card h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
}

.signal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.18);
    flex-shrink: 0;
}

.signal-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.workflow-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.125rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.workflow-strip span {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 217, 245, 0.06);
    border: 1px solid rgba(0, 217, 245, 0.12);
    color: #67e8f9;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

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

.section-header-left p {
    margin-left: 0;
}

.use-case-card,
.request-demo-panel {
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: var(--tb-shadow-sm);
}

.use-case-card {
    padding: 1.4rem;
}

.use-case-label {
    margin: 0 0 0.7rem;
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.request-demo-panel {
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

.request-demo-inline-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.demo-request-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.demo-form-feedback {
    margin-top: 1rem;
}

.demo-request-meta {
    font-variant-numeric: tabular-nums;
}

.demo-modal {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(9, 13, 22, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    box-shadow: var(--tb-shadow-md);
}

.modal-backdrop.show {
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    .site-nav-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 1rem;
    }

    .site-nav-actions .btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .marketing-home h1 {
        max-width: 12ch;
    }

    .hero-showcase,
    .request-demo-panel,
    .use-case-card {
        border-radius: 20px;
    }
}

/* Midnight Luxe design system overrides */
:root {
    --tb-bg: #071019;
    --tb-surface: #101b29;
    --tb-surface-2: #182638;
    --tb-primary: #34dfff;
    --tb-primary-hover: #7becff;
    --tb-accent: #88dec8;
    --tb-text: #f7f2e8;
    --tb-muted: #aeb9cb;
    --tb-border: #2a3950;
    --tb-success: #4ad8a0;
    --tb-warning: #e7bf79;
    --tb-shadow-sm: 0 18px 40px rgba(2, 10, 22, 0.28);
    --tb-shadow-md: 0 26px 68px rgba(2, 10, 22, 0.42);
    --tb-shadow-glow: 0 0 0 1px rgba(52, 223, 255, 0.18), 0 20px 44px rgba(52, 223, 255, 0.14);
    --tb-shadow-violet: 0 16px 40px rgba(136, 222, 200, 0.12);
    --surface-base: #0a131d;
    --surface-raised: #111c2a;
    --surface-hero: #162536;
    --surface-glass: rgba(16, 26, 40, 0.78);
    --text-strong: #fffaf2;
    --text-default: #f7f2e8;
    --text-secondary: #c3ccdb;
    --text-subtle: #95a4ba;
    --border-soft: rgba(148, 163, 184, 0.08);
    --border-default: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(148, 163, 184, 0.24);
    --accent-primary: var(--tb-primary);
    --accent-primary-soft: rgba(52, 223, 255, 0.14);
    --accent-success: var(--tb-success);
    --accent-warm: #e7bf79;
    --color-bg: var(--tb-bg);
    --color-surface: var(--tb-surface);
    --color-surface-elevated: var(--tb-surface-2);
    --color-primary: var(--tb-primary);
    --color-primary-hover: var(--tb-primary-hover);
    --color-secondary: var(--tb-accent);
    --color-text: var(--tb-text);
    --color-muted: var(--tb-muted);
    --color-border: var(--tb-border);
    --color-success: var(--tb-success);
    --color-warning: var(--tb-warning);
    --color-primary-rgb: 52, 223, 255;
    --bg: var(--color-bg);
    --surface: var(--color-surface-elevated);
    --text: var(--color-text);
    --muted: var(--color-muted);
    --accent: var(--color-primary);
    --border: var(--color-border);
}

::selection {
    background: rgba(var(--color-primary-rgb), 0.22);
    color: var(--text-strong);
}

body {
    background:
        radial-gradient(circle at 50% -10%, rgba(var(--color-primary-rgb), 0.14), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(231, 191, 121, 0.1), transparent 18%),
        linear-gradient(180deg, #09131d 0%, #08111a 52%, #070f18 100%);
    color: var(--text-default);
}

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

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

.muted,
.text-body-secondary,
.public-footer-copy.muted,
.public-powered-by.muted {
    color: var(--text-secondary) !important;
}

.text-muted,
.text-body-tertiary {
    color: var(--text-subtle) !important;
}

.small,
small {
    color: inherit;
}

.lead {
    color: var(--text-secondary);
}

code,
.tapbios-code {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    background: rgba(8, 14, 22, 0.84);
    border: 1px solid var(--border-default);
    color: #ff93df;
    font-size: 0.83em;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.card,
.panel {
    background:
        linear-gradient(180deg, rgba(23, 34, 48, 0.94), rgba(13, 20, 31, 0.94)),
        var(--tb-gradient-card);
    border: 1px solid var(--border-default);
    border-radius: 22px;
    box-shadow: var(--tb-shadow-sm);
    color: var(--text-default);
}

.card > :last-child,
.panel > :last-child {
    margin-bottom: 0;
}

.panel-error h1,
.card h3,
.panel h3,
.card h4,
.panel h4 {
    color: var(--text-strong);
}

.btn {
    min-height: 2.9rem;
    padding: 0.78rem 1.25rem;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #05111b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(52, 223, 255, 0.16);
}

.btn-primary:hover {
    color: #05111b;
    transform: translateY(-1px);
    box-shadow: var(--tb-shadow-glow);
}

.btn-secondary {
    background: rgba(12, 18, 28, 0.72);
    border-color: var(--border-default);
    color: var(--text-default);
}

.btn-secondary:hover {
    background: rgba(16, 25, 38, 0.92);
    border-color: rgba(var(--color-primary-rgb), 0.34);
    color: var(--text-strong);
}

.btn-ghost {
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-default);
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"] {
    background: rgba(8, 14, 22, 0.76);
    border: 1px solid var(--border-default);
    border-radius: 14px;
    color: var(--text-default);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
    color: var(--text-subtle);
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
    color: var(--text-default);
    background: rgba(10, 16, 25, 0.92);
    border-color: rgba(var(--color-primary-rgb), 0.42);
    box-shadow: 0 0 0 0.22rem rgba(var(--color-primary-rgb), 0.15);
}

.alert {
    border-radius: 18px;
    border: 1px solid var(--border-default);
    background: rgba(16, 23, 34, 0.84);
    color: var(--text-default);
}

.alert-warning {
    border-color: rgba(231, 191, 121, 0.28);
    background: rgba(39, 28, 11, 0.74);
    color: #f8e5b8;
}

.alert-error,
.alert-danger {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(54, 18, 22, 0.74);
    color: #fecaca;
}

.status-pill,
.dashboard-pill {
    border: 1px solid rgba(var(--color-primary-rgb), 0.22);
}

.public-footer {
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border-soft);
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    text-align: center;
}

.public-footer-text,
.public-footer-legal,
.public-powered-by {
    margin: 0;
}

.public-footer-text {
    color: var(--text-secondary);
}

.public-footer-copy,
.public-footer-legal,
.public-powered-by {
    color: var(--text-subtle);
}

.public-footer-legal a,
.public-powered-by a {
    color: var(--accent-primary);
}

.layout-public-marketing {
    background:
        radial-gradient(circle at top center, rgba(var(--color-primary-rgb), 0.14), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(231, 191, 121, 0.1), transparent 16%),
        linear-gradient(180deg, #08111a 0%, #09131d 45%, #071018 100%);
}

.site-header {
    background: rgba(8, 14, 22, 0.76);
    border-bottom: 1px solid var(--border-soft);
}

.site-header .nav-link {
    color: var(--text-secondary);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
    color: var(--text-strong);
}

.hero-kicker,
.workflow-strip span,
.feature-icon,
.signal-icon,
.hero-stat-card,
.hero-showcase,
.use-case-card,
.request-demo-panel,
.faq-item,
.feature-card,
.step-card,
.cta-band {
    border-color: var(--border-default);
}

.hero-stat-card,
.feature-card,
.use-case-card,
.step-card,
.faq-item {
    background:
        linear-gradient(180deg, rgba(22, 34, 49, 0.92), rgba(12, 19, 30, 0.92)),
        var(--tb-gradient-card);
    box-shadow: var(--tb-shadow-sm);
}

.hero-showcase,
.request-demo-panel,
.cta-band {
    background:
        radial-gradient(circle at top right, rgba(var(--color-primary-rgb), 0.12), transparent 34%),
        linear-gradient(180deg, rgba(20, 31, 46, 0.96), rgba(10, 17, 28, 0.96));
}

.signal-card,
.workflow-strip {
    background: rgba(9, 15, 24, 0.54);
}

.signal-label,
.hero-stat-label,
.section-header p,
.use-case-card p,
.feature-card p,
.cta-band p,
.faq-item p {
    color: var(--text-secondary);
}

.section-header h2,
.feature-card h3,
.use-case-card h3,
.step-card h3,
.cta-band h2,
.signal-card h3 {
    color: var(--text-strong);
}
