/* Base & Reset */
:root {
    /* Color Palette - Premium Corporate B2B Theme */
    --bg-base: #F8FAFC;
    /* Slate 50 */
    --bg-surface: #FFFFFF;
    --bg-surface-light: #F1F5F9;
    /* Slate 100 */

    --primary: #0F172A;
    /* Deep Navy */
    --primary-light: #1E293B;
    --secondary: #1E293B;
    --accent: #059669;
    /* Emerald Green */
    --accent-light: #10B981;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    --border-color: #E2E8F0;
    /* Slate 200 */

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

    /* Spacing */
    --container-max: 1200px;
    --section-pad: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-gradient {
    /* Changed gradient to solid accent for B2B trust */
    color: var(--accent);
}

.bg-darker {
    background-color: #F1F5F9;
}

/* Replaced glassmorphism with clean, flat corporate cards */
.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.section {
    padding: var(--section-pad);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    /* Sharper corners for B2B */
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    background: var(--bg-surface);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-base);
    border-color: var(--primary-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-logo-ui {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.1rem;
    cursor: pointer;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-spectra {
    color: var(--primary);
    /* Deep Navy */
}

.logo-id-wrapper {
    position: relative;
    padding: 4px 6px;
    margin-left: 2px;
}

.logo-id {
    color: var(--accent);
    /* Emerald Green */
}

.bracket {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 3.5px solid var(--primary);
}

.bracket.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.bracket.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bracket.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bracket.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

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

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: #ECFDF5;
    /* Emerald 50 */
    border: 1px solid #D1FAE5;
    /* Emerald 100 */
    border-radius: 100px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 3rem;
}

.hero-trust p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-badges.new-style {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-top: 1rem;
}

/* HIPAA Logo Style */
.badge-hipaa {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0A244E;
    /* Deep Caduceus Blue */
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.badge-hipaa svg {
    width: 48px;
    height: 48px;
}

.hipaa-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.hipaa-text span:first-child {
    font-size: 1.25rem;
    font-weight: 800;
}

.hipaa-text span:last-child {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Shield Badge Style (BIPA/GDPR) */
.badge-shield {
    position: relative;
    width: 64px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}

.badge-shield:hover {
    transform: translateY(-4px);
}

.badge-shield svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.badge-shield .shield-text {
    position: absolute;
    bottom: 12px;
    z-index: 2;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Visual Mockup - Adapted for Light Theme */
.device-mockup {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 2px;
    background: var(--border-color);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    /* Subtle shadow */
    overflow: hidden;
}

.device-mockup::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--primary);
    /* Keep the device screen dark */
    border-radius: 23px;
    z-index: 0;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 15px 3px var(--accent);
    z-index: 2;
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

.face-mesh {
    position: absolute;
    inset: 15%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-outline {
    stroke-dasharray: 8 6;
    animation: rotateDash 20s linear infinite;
}

.bio-smile {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawSmile 4s infinite ease-in-out;
}

@keyframes rotateDash {
    to {
        stroke-dashoffset: -100;
    }
}

@keyframes drawSmile {

    0%,
    20% {
        stroke-dashoffset: 50;
    }

    40%,
    80% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 50;
    }
}

.success-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.check-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 24px;
    background: var(--bg-surface-light);
    color: var(--primary);
}

/* No more multi-color glows, just solid corporate icons */
.bg-primary-glow,
.bg-secondary-glow,
.bg-accent-glow {
    background: #F1F5F9;
    /* Slate 100 */
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
}

.pricing-card.highlight {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.price {
    font-size: 1rem;
    color: var(--text-secondary);
}

.price span {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
}

.price-context {
    font-size: 0.85rem !important;
    margin-top: 8px;
    margin-bottom: 0 !important;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features li svg {
    color: var(--accent);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* CTA Section */
.cta-container {
    padding: 60px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    /* overrides glass panel border */
}

.cta-container .section-title {
    color: #fff;
}

.cta-container .section-subtitle {
    color: #CBD5E1;
    /* Slate 300 */
}

.demo-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.input-field {
    flex-grow: 1;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
    background: var(--bg-surface);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-up.active,
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .device-mockup {
        max-width: 300px;
        margin-top: 2rem;
    }

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

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

    .nav-links {
        display: none;
    }

    .demo-form {
        flex-direction: column;
    }
}