:root {
    --bg: #f2f0e9;
    --surface: rgba(255, 255, 255, 0.68);
    --surface-strong: rgba(255, 255, 255, 0.82);
    --surface-dark: rgba(18, 24, 21, 0.72);
    --text: #1a1a1a;
    --text-soft: rgba(26, 26, 26, 0.72);
    --primary: #2e4036;
    --primary-deep: #18211c;
    --accent: #cc5833;
    --accent-soft: rgba(204, 88, 51, 0.18);
    --border: rgba(46, 64, 54, 0.12);
    --border-strong: rgba(46, 64, 54, 0.24);
    --shadow: 0 24px 80px rgba(22, 30, 26, 0.12);
    --radius-xl: 2rem;
    --radius-2xl: 3rem;
    --transition-smooth: 480ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 620ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(204, 88, 51, 0.18), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(46, 64, 54, 0.16), transparent 22%),
        linear-gradient(180deg, #fbfaf7 0%, #f2f0e9 100%);
    color: var(--text);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    z-index: 999;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

a,
button,
input,
select,
textarea {
    transition:
        transform var(--transition-smooth),
        color var(--transition-smooth),
        background-color var(--transition-smooth),
        border-color var(--transition-smooth),
        box-shadow var(--transition-smooth),
        opacity var(--transition-smooth);
}

a {
    color: inherit;
}

a[href]:not(.magnetic):not(.support-link):not(.desktop-cta-link):not(.mobile-cta-link) {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover,
button:hover,
.interactive:hover {
    transform: translateY(-1px);
}

a[href]:not(.magnetic):not(.support-link):not(.desktop-cta-link):not(.mobile-cta-link):hover {
    text-decoration-color: currentColor;
}

.app-shell {
    position: relative;
    overflow: clip;
}

.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.glass-panel-strong {
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(24px);
    box-shadow: 0 32px 100px rgba(20, 28, 23, 0.16);
}

.dark-panel {
    background: linear-gradient(160deg, rgba(17, 24, 21, 0.95), rgba(31, 42, 36, 0.94));
    color: #f7f4ec;
}

#floating-nav .brand-title {
    color: inherit;
}

#floating-nav nav a {
    position: relative;
    padding-bottom: 0.2rem;
    text-decoration: none;
}

#floating-nav nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0.75;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

#floating-nav nav a:hover {
    color: rgba(247, 244, 236, 0.92);
}

#floating-nav nav a:hover::after {
    transform: scaleX(1);
}

#floating-nav.is-scrolled nav a:hover {
    color: var(--accent);
}

#floating-nav .brand-meta {
    color: rgba(247, 244, 236, 0.78);
}

#floating-nav.is-scrolled .brand-meta {
    color: rgba(46, 64, 54, 0.72);
}

#floating-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(46, 64, 54, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(16, 21, 18, 0.12);
}

#floating-nav.is-scrolled .logo-badge {
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 20, 17, 0.08);
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 2.9rem;
    padding: 0.55rem 0.8rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(15, 20, 17, 0.12);
}

.logo-badge img {
    display: block;
    height: 1.05rem;
    width: auto;
}

.magnetic {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform-origin: center;
}

.magnetic-fill {
    position: absolute;
    inset: 0;
    transform: translateX(-102%);
    transition: transform var(--transition-smooth);
    z-index: -1;
}

.magnetic-label {
    position: relative;
    z-index: 1;
    color: inherit;
}

.magnetic:hover {
    transform: scale(1.03) translateY(-1px);
}

.magnetic:hover .magnetic-fill {
    transform: translateX(0%);
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 33, 28, 0.08) 0%, rgba(24, 33, 28, 0.84) 72%, rgba(7, 9, 8, 0.96) 100%);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero-copy {
    max-width: 40rem;
}

.hero-actions {
    align-items: stretch;
}

.hero-proof-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-proof-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.7rem 1rem;
    color: rgba(247, 244, 236, 0.92);
    font-size: 0.88rem;
    line-height: 1.45;
}

.hero-proof-dot {
    width: 0.45rem;
    height: 0.45rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #f2c8b9;
}

.eyebrow {
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.card-stack {
    position: relative;
    min-height: 280px;
}

.stack-item {
    position: absolute;
    inset: 0;
    border-radius: 1.8rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, rgba(244, 241, 232, 0.98), rgba(229, 236, 229, 0.9));
    border: 1px solid rgba(46, 64, 54, 0.14);
    box-shadow: 0 20px 50px rgba(28, 38, 32, 0.12);
    transition: transform var(--transition-bounce), opacity var(--transition-bounce);
}

.telemetry-line {
    min-height: 1.8em;
}

.cursor-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(204, 88, 51, 0.42);
    animation: pulse-dot 1.6s infinite;
}

.type-cursor {
    display: inline-block;
    width: 0.75ch;
    color: var(--accent);
    animation: blink 1s steps(1) infinite;
}

.schedule-cell {
    border-radius: 1rem;
    border: 1px solid rgba(46, 64, 54, 0.12);
    background: rgba(255, 255, 255, 0.68);
    min-height: 64px;
    display: grid;
    place-items: center;
    font-weight: 600;
}

.schedule-cell.active {
    background: linear-gradient(145deg, rgba(204, 88, 51, 0.22), rgba(204, 88, 51, 0.3));
    border-color: rgba(204, 88, 51, 0.44);
}

.scheduler-cursor {
    position: absolute;
    width: 28px;
    height: 36px;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.parallax-media {
    transform: translateY(var(--parallax-offset, 0px)) scale(1.06);
    transition: transform 120ms linear;
}

.protocol-stage {
    position: relative;
    min-height: 300vh;
}

.protocol-card {
    position: sticky;
    top: 14vh;
    min-height: 72vh;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(19, 26, 22, 0.95), rgba(31, 42, 36, 0.92));
    box-shadow: 0 40px 100px rgba(12, 17, 14, 0.28);
    transition: transform 360ms ease, filter 360ms ease, opacity 360ms ease;
}

.protocol-card.is-dimmed {
    transform: scale(0.9);
    filter: blur(20px);
    opacity: 0.5;
}

.laser-line {
    animation: scan 3.4s linear infinite;
}

.wave-path {
    stroke-dasharray: 10;
    animation: dash 2.8s linear infinite;
}

.office-strip img {
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(204, 88, 51, 0.12);
}

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

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 1.7rem;
    bottom: -1.2rem;
    width: 1px;
    background: rgba(46, 64, 54, 0.18);
}

.timeline-item:last-child::after {
    display: none;
}

.form-field {
    border-radius: 1.25rem;
    border: 1px solid rgba(46, 64, 54, 0.16);
    background: rgba(255, 255, 255, 0.76);
    min-height: 58px;
    width: 100%;
    padding: 0.95rem 1rem;
    color: var(--text);
    outline: none;
}

.form-field:focus {
    border-color: rgba(204, 88, 51, 0.46);
    box-shadow: 0 0 0 4px rgba(204, 88, 51, 0.12);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-pill .live {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: #77d46d;
    box-shadow: 0 0 0 0 rgba(119, 212, 109, 0.42);
    animation: pulse-dot 1.8s infinite;
}

.trust-grid {
    display: grid;
    gap: 1rem;
}

.contact-assurance-bar {
    display: grid;
    gap: 0.8rem;
}

.contact-assurance-item {
    border-radius: 1.3rem;
    border: 1px solid rgba(46, 64, 54, 0.1);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(246, 242, 234, 0.82));
    padding: 0.95rem 1rem;
}

.contact-quick-grid {
    display: grid;
    gap: 0.9rem;
}

.contact-quick-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(46, 64, 54, 0.12);
    background: rgba(255, 255, 255, 0.82);
    padding: 1rem;
}

.submit-cluster {
    display: grid;
    gap: 0.9rem;
}

.support-actions {
    display: grid;
    gap: 0.75rem;
}

.support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(46, 64, 54, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    padding: 0.85rem 1rem;
}

.support-link:hover,
.desktop-cta-link:hover,
.mobile-cta-link:hover {
    border-color: rgba(204, 88, 51, 0.28);
    box-shadow: 0 16px 34px rgba(22, 30, 26, 0.1);
}

.support-link:hover,
.desktop-cta-link.secondary:hover,
.mobile-cta-link.secondary:hover {
    background: rgba(204, 88, 51, 0.08);
    color: var(--accent);
}

.trust-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(46, 64, 54, 0.12);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(248, 246, 239, 0.78));
    padding: 1rem;
}

.trust-metric {
    border-radius: 1.35rem;
    border: 1px solid rgba(204, 88, 51, 0.16);
    background: rgba(204, 88, 51, 0.08);
    padding: 0.9rem 1rem;
}

.mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.85rem 0.9rem calc(0.85rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(19, 25, 22, 0.06), rgba(19, 25, 22, 0.94) 24%);
    backdrop-filter: blur(18px);
}

.mobile-cta-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 42rem;
    margin: 0 auto;
    padding: 0.75rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(19, 25, 22, 0.88);
    box-shadow: 0 20px 50px rgba(7, 10, 9, 0.28);
}

.mobile-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    padding: 0.95rem 1rem;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
}

.mobile-cta-link.secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f7f4ec;
    background: rgba(255, 255, 255, 0.06);
}

.desktop-cta-rail {
    position: fixed;
    right: 1.25rem;
    bottom: 1.4rem;
    z-index: 55;
    width: min(360px, calc(100vw - 2rem));
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition:
        opacity 240ms ease,
        transform 240ms ease;
}

.desktop-cta-rail.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.desktop-cta-shell {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(46, 64, 54, 0.12);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(16, 21, 18, 0.16);
}

.desktop-cta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.desktop-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    padding: 0.9rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.desktop-cta-link.secondary {
    border: 1px solid rgba(46, 64, 54, 0.14);
    background: rgba(46, 64, 54, 0.04);
    color: var(--primary);
}

.dark-glass-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.dark-label {
    color: rgba(247, 244, 236, 0.82);
}

.dark-copy {
    color: rgba(247, 244, 236, 0.9);
}

.dark-copy-strong {
    color: rgba(255, 252, 245, 0.96);
}

.dark-copy-soft {
    color: rgba(247, 244, 236, 0.78);
}

.dark-status {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.reveal-up,
.reveal-fade {
    opacity: 0;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 88, 51, 0.42);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(204, 88, 51, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 88, 51, 0);
    }
}

@keyframes scan {
    0% {
        transform: translateY(0%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(240px);
        opacity: 0;
    }
}

@keyframes dash {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 80;
    }
}

@media (max-width: 1024px) {
    .protocol-card {
        min-height: 66vh;
        top: 10vh;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 6.75rem;
    }

    #floating-nav {
        gap: 0.9rem;
        padding: 0.75rem 0.9rem;
        border-radius: 1.35rem;
    }

    .logo-badge {
        min-height: 2.5rem;
        padding: 0.5rem 0.7rem;
    }

    .logo-badge img {
        height: 0.95rem;
    }

    .card-stack {
        min-height: 250px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-proof-grid {
        grid-template-columns: 1fr;
    }

    .contact-assurance-bar,
    .contact-quick-grid,
    .support-actions,
    .submit-cluster {
        grid-template-columns: 1fr;
    }


@media (min-width: 640px) {
    .hero-proof-grid,
    .contact-assurance-bar,
    .contact-quick-grid,
    .support-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submit-cluster {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}
    .protocol-stage {
        min-height: auto;
    }

    .protocol-card {
        position: relative;
        top: auto;
        min-height: auto;
        margin-bottom: 1.5rem;
    }

    .protocol-card.is-dimmed {
        transform: none;
        filter: none;
        opacity: 1;
    }
}

@media (min-width: 769px) {
    .mobile-cta-bar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .desktop-cta-rail {
        display: none;
    }
}
