/* OptiVault homepage — compact heritage navigation and white-mode refinement */

:root {
    --old-nav-width: 900px;
    --ink: #090b08;
    --sage-line: rgba(24, 32, 19, 0.12);
}

/* Compact navbar: restored from the original site proportions */

.site-header {
    top: 20px;
    padding: 0;
}

.site-nav {
    grid-template-columns: minmax(145px, 1fr) auto minmax(145px, 1fr);
    width: min(90%, var(--old-nav-width));
    min-height: 58px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.site-header.scrolled .site-nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 35px rgba(25, 35, 19, 0.11), inset 0 1px 0 #fff;
}

.brand {
    min-width: 0;
    gap: 10px;
}

.brand .brand-mark {
    width: 24px;
    height: 24px;
    animation-duration: 10s;
}

.brand .brand-wordmark {
    width: 97px;
    height: 20px;
}

.nav-links {
    justify-self: center;
    gap: 8px;
}

.nav-links .nav-pill {
    position: relative;
    min-height: 36px;
    padding: 8px 14px;
    overflow: hidden;
    gap: 6px;
    border-color: rgba(0, 0, 0, 0.18);
    color: #626860;
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    isolation: isolate;
}

.nav-pill img {
    width: 12px;
    height: 12px;
}

.nav-links .nav-pill:hover,
.nav-links .nav-pill:focus-visible {
    color: #11150f;
    border-color: rgba(0, 0, 0, 0.42);
    transform: translateY(-2px);
}

.nav-links .nav-pill.active {
    color: #4d750c;
    border-color: #7fc61a;
    background: rgba(132, 204, 22, 0.09);
}

.nav-download {
    justify-self: end;
    min-width: 108px;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 50px;
    color: #080a07;
    border-color: transparent;
    background: #86d10c;
    box-shadow: 0 4px 15px rgba(132, 204, 22, 0.3);
    font-size: 0.75rem;
    animation: nav-cta-pulse 4.8s ease-in-out infinite;
}

.nav-download:hover,
.nav-download:focus-visible {
    color: #080a07;
    background: #a7eb32;
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.42);
}

.nav-download svg {
    width: 15px;
    height: 17px;
}

/* Original black App Store button language, with premium interaction feedback */

.button {
    min-height: 56px;
    padding: 0 28px;
    border-radius: 999px;
}

.button.nav-download {
    min-width: 108px;
    min-height: 40px;
    padding: 8px 18px;
}

.button-primary:not(.nav-download) {
    color: #fff;
    border-color: #050605;
    background: #050605;
    box-shadow: 0 13px 30px rgba(10, 13, 9, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button-primary:not(.nav-download):hover,
.button-primary:not(.nav-download):focus-visible {
    color: #fff;
    border-color: #050605;
    background: #11150f;
    box-shadow: 0 18px 40px rgba(10, 13, 9, 0.24), 0 0 0 6px rgba(200, 243, 74, 0.12);
}

.button-secondary {
    color: #10140e;
    border-color: rgba(16, 20, 14, 0.2);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(30, 40, 24, 0.06), inset 0 1px 0 #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: #0a0d09;
    border-color: rgba(16, 20, 14, 0.42);
    background: #fff;
    box-shadow: 0 14px 32px rgba(30, 40, 24, 0.11), inset 0 1px 0 #fff;
}

.button-primary:not(.nav-download)::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -100%;
    z-index: 1;
    width: 48%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.76), transparent);
    transform: skewX(-20deg);
    animation: old-button-shimmer 4.8s 1.1s ease-in-out infinite;
}

.interaction-ripple {
    position: absolute !important;
    z-index: 5 !important;
    width: var(--ripple-size, 24px);
    height: var(--ripple-size, 24px);
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.42);
    transform: translate(-50%, -50%) scale(0);
    animation: interaction-ripple 680ms ease-out forwards;
}

.button-secondary .interaction-ripple,
.nav-pill .interaction-ripple,
.prompt-chip .interaction-ripple,
.faq-item button .interaction-ripple,
.menu-toggle .interaction-ripple {
    background: rgba(139, 205, 26, 0.2);
}

.prompt-chip,
.faq-item button,
.menu-toggle {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Bouncing hero signal and expanding circular language */

.motion-ready .hero-copy > .eyebrow {
    animation:
        hero-block-enter 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
        hero-eyebrow-bob 3s 1.05s ease-in-out infinite;
}

.eyebrow-dot,
.bank-network-dot {
    position: relative;
}

.eyebrow-dot::after,
.bank-network-dot::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(103, 151, 15, 0.52);
    border-radius: 50%;
    animation: signal-ripple 2.7s ease-out infinite;
}

.section-kicker::before,
.native-eyebrow::before {
    animation: signal-ring 2.7s ease-in-out infinite;
}

/* Requested showcase, now fully white mode */

.bank-network-section {
    color: var(--text);
    border-color: var(--sage-line);
    background:
        radial-gradient(circle at 12% 75%, rgba(200, 243, 74, 0.2), transparent 24rem),
        radial-gradient(circle at 87% 35%, rgba(160, 215, 66, 0.11), transparent 24rem),
        rgba(255, 255, 252, 0.91);
}

.native-showcase {
    color: var(--text);
    border-bottom: 1px solid var(--sage-line);
    background:
        radial-gradient(circle at 7% 65%, rgba(200, 243, 74, 0.18), transparent 27rem),
        radial-gradient(circle at 92% 26%, rgba(116, 235, 184, 0.1), transparent 26rem),
        rgba(250, 251, 247, 0.92);
}

.bank-grid-glow,
.native-grid {
    opacity: 1;
    background-image:
        linear-gradient(rgba(27, 36, 22, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 36, 22, 0.06) 1px, transparent 1px);
}

.bank-network-label,
.native-eyebrow,
.native-showcase-heading p {
    color: #667060;
}

.bank-network-label strong,
.native-showcase h2 {
    color: var(--text);
}

.native-showcase h2 > span {
    color: var(--text);
    background: linear-gradient(transparent 68%, rgba(200, 243, 74, 0.72) 68%);
}

.bank-network-dot {
    background: #78aa16;
    box-shadow: 0 0 0 5px rgba(120, 170, 22, 0.1), 0 0 18px rgba(120, 170, 22, 0.42);
}

.bank-item {
    color: rgba(28, 36, 24, 0.38);
}

.bank-item:hover {
    color: #294100;
    text-shadow: 0 0 22px rgba(128, 181, 26, 0.22);
}

.phone-frame {
    border-color: #171a16;
    box-shadow: 0 28px 62px rgba(28, 36, 24, 0.18), 0 0 0 1px rgba(17, 21, 15, 0.06);
}

.phone-frame:hover {
    border-color: #20251e;
    box-shadow: 0 38px 76px rgba(28, 36, 24, 0.24), 0 0 34px rgba(135, 190, 31, 0.16);
}

.bank-ticker-track,
.phone-track {
    animation-play-state: paused;
}

.bank-network-section.section-active .bank-ticker-track,
.native-showcase.section-active .phone-track {
    animation-play-state: running;
}

.bank-ticker:hover .bank-ticker-track,
.bank-ticker:focus-within .bank-ticker-track,
.phone-viewport:hover .phone-track,
.phone-viewport:focus-within .phone-track {
    animation-play-state: paused;
}

.motion-ready .native-showcase .phone-frame img {
    clip-path: inset(7% 0 0 0 round 32px);
    filter: saturate(0.72) brightness(1.04);
    transform: scale(1.045);
}

.motion-ready .native-showcase.section-active .phone-frame img {
    animation: phone-screen-awake 920ms var(--ease-premium) both;
}

.native-showcase.section-active .phone-frame:nth-child(2) img,
.native-showcase.section-active .phone-frame:nth-child(5) img { animation-delay: 80ms; }
.native-showcase.section-active .phone-frame:nth-child(3) img,
.native-showcase.section-active .phone-frame:nth-child(6) img { animation-delay: 160ms; }

/* Rebuilt category comparison: three readable product states */

.comparison-wrap {
    display: block;
    min-height: 0;
    scroll-margin-top: 100px;
    overflow: hidden;
    border: 1px solid rgba(27, 36, 22, 0.12);
    border-radius: 42px;
    background: rgba(255, 255, 252, 0.9);
    box-shadow: 0 30px 75px rgba(35, 47, 27, 0.1), inset 0 1px 0 #fff;
}

.comparison-wrap::after {
    display: none;
}

.motion-ready .comparison-wrap.reveal {
    --reveal-y: 20px;
    --reveal-scale: 0.975;
    filter: none;
}

.comparison-intro {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    min-height: 0;
    padding: 40px 44px 35px;
    border-right: 0;
    border-bottom: 1px solid rgba(27, 36, 22, 0.1);
    background:
        linear-gradient(115deg, rgba(200, 243, 74, 0.18), transparent 55%),
        rgba(249, 251, 245, 0.94);
}

.comparison-overline {
    display: block;
    margin-bottom: 12px;
    color: #668d15;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.comparison-intro strong {
    display: block;
    max-width: 660px;
    color: #0d110b;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.comparison-intro p {
    max-width: 330px;
    margin: 0;
    color: #5e6859;
    font-size: 0.8rem;
    line-height: 1.65;
}

.comparison-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 36px;
    margin: 24px 24px 0;
}

.comparison-progress-line {
    position: absolute;
    top: 11px;
    right: calc(16.666% - 5px);
    left: calc(16.666% - 5px);
    height: 1px;
    background: linear-gradient(90deg, rgba(98, 112, 90, 0.25), rgba(119, 169, 19, 0.7));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-premium) 320ms;
}

.comparison-wrap.revealed .comparison-progress-line {
    transform: scaleX(1);
}

.comparison-progress i {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #899084;
    box-shadow: 0 0 0 1px rgba(53, 65, 45, 0.18);
}

.comparison-progress i:last-child {
    background: #78a916;
    box-shadow: 0 0 0 5px rgba(120, 169, 22, 0.11);
}

.comparison-progress i:last-child::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(120, 169, 22, 0.42);
    border-radius: 50%;
    animation: signal-ripple 2.4s 900ms ease-out infinite;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 24px 28px;
}

.comparison-card {
    position: relative;
    min-height: 370px;
    padding: 27px 26px 23px;
    overflow: hidden;
    border: 1px solid rgba(27, 36, 22, 0.11);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform-origin: center bottom;
}

.comparison-card-chat {
    background: linear-gradient(180deg, rgba(248, 250, 245, 0.96), rgba(255, 255, 255, 0.86));
}

.comparison-card-optivault {
    border-color: rgba(112, 154, 25, 0.26);
    background:
        radial-gradient(circle at 85% 8%, rgba(200, 243, 74, 0.5), transparent 13rem),
        linear-gradient(155deg, #f7fbdc, #edf7cc);
    box-shadow: 0 22px 48px rgba(82, 112, 22, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.comparison-card-optivault::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #6b9812, var(--lime));
}

.comparison-card-optivault::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -55%;
    width: 35%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.64), transparent);
    transform: skewX(-16deg);
}

.comparison-wrap.revealed .comparison-card-optivault::after {
    animation: comparison-card-sheen 1.25s 950ms var(--ease-premium) 1 forwards;
}

.comparison-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.comparison-card-index,
.comparison-card-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comparison-card-index {
    color: #7d8578;
}

.comparison-card-index img {
    width: 15px;
    height: 15px;
}

.comparison-card-state {
    padding: 6px 9px;
    border: 1px solid rgba(27, 36, 22, 0.11);
    border-radius: 999px;
    color: #697164;
    background: rgba(255, 255, 255, 0.64);
}

.comparison-card-optivault .comparison-card-state {
    color: #476b00;
    border-color: rgba(91, 132, 10, 0.25);
}

.comparison-card h3 {
    margin: 32px 0 0;
    color: #10140e;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.comparison-card > p {
    min-height: 62px;
    margin: 13px 0 22px;
    color: #687063;
    font-size: 0.76rem;
    line-height: 1.58;
}

.comparison-card dl,
.comparison-card dl div {
    margin: 0;
}

.comparison-card dl div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid rgba(27, 36, 22, 0.1);
}

.comparison-card dt {
    color: #858d81;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comparison-card dd {
    margin: 0;
    color: #23291f;
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.45;
}

.motion-ready .comparison-wrap.reveal .comparison-card {
    opacity: 0;
    transform: translateY(42px) rotateX(-9deg) scale(0.97);
    transition: opacity 520ms ease, transform 780ms var(--ease-premium);
}

.motion-ready .comparison-wrap.revealed .comparison-card {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
}

.comparison-wrap.revealed .comparison-card:nth-child(1) { transition-delay: 220ms; }
.comparison-wrap.revealed .comparison-card:nth-child(2) { transition-delay: 320ms; }
.comparison-wrap.revealed .comparison-card:nth-child(3) { transition-delay: 420ms; }

/* Stronger individual signals across the remaining sections */

.status-icon,
.intelligence-loop article > span,
.trust-card-icon {
    position: relative;
}

.status-grid.revealed .status-icon::after,
.intelligence-loop.revealed article > span::after,
.trust-card.revealed .trust-card-icon::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(104, 151, 15, 0.35);
    border-radius: inherit;
    pointer-events: none;
    animation: section-node-ring 1.15s var(--node-delay, 0ms) ease-out 2;
}

.status-grid > div:nth-child(1) .status-icon,
.intelligence-loop article:nth-of-type(1) > span { --node-delay: 100ms; }
.status-grid > div:nth-child(2) .status-icon,
.intelligence-loop article:nth-of-type(2) > span { --node-delay: 180ms; }
.status-grid > div:nth-child(3) .status-icon,
.intelligence-loop article:nth-of-type(3) > span { --node-delay: 260ms; }
.intelligence-loop article:nth-of-type(4) > span { --node-delay: 340ms; }
.intelligence-loop article:nth-of-type(5) > span { --node-delay: 420ms; }

.status-icon {
    border-radius: 50%;
}

.intelligence-loop::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 31px;
    z-index: 2;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #78a916;
    box-shadow: 0 0 0 5px rgba(120, 169, 22, 0.12), 0 0 18px rgba(120, 169, 22, 0.45);
    opacity: 0;
}

.intelligence-loop.revealed::after {
    animation: intelligence-packet 3.8s 1s ease-in-out infinite;
}

.trust-card.revealed .trust-card-icon::after {
    animation-delay: var(--reveal-delay, 0ms);
}

.roadmap-section.section-active .evolution-line {
    background-image: linear-gradient(100deg, transparent 0%, rgba(200, 243, 74, 0.24) 48%, transparent 56%);
    background-size: 260% 100%;
    animation: roadmap-tracer 4.8s 1.2s ease-in-out infinite;
}

/* Legible final call-to-action and footer */

.final-cta {
    padding: 110px 0 84px;
    border-top: 0;
    background: transparent;
}

.final-cta::before {
    bottom: -38rem;
    opacity: 0.7;
}

.final-cta::after {
    display: none;
}

.final-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    align-items: center;
    gap: 55px;
    max-width: 1200px;
    padding: 72px 72px 68px;
    overflow: hidden;
    border: 1px solid rgba(27, 36, 22, 0.13);
    border-radius: 50px;
    background:
        radial-gradient(circle at 88% 20%, rgba(200, 243, 74, 0.28), transparent 23rem),
        rgba(255, 255, 252, 0.94);
    box-shadow: 0 34px 85px rgba(37, 50, 28, 0.12), inset 0 1px 0 #fff;
    text-align: left;
    isolation: isolate;
}

.final-cta-copy {
    position: relative;
    z-index: 3;
}

.final-cta h2 {
    max-width: 720px;
    margin-top: 18px;
    color: #0b0e0a;
    font-size: clamp(3.2rem, 5.2vw, 5.5rem);
}

.final-cta p {
    max-width: 560px;
    margin: 25px 0 0;
    color: #5e6859;
}

.final-actions {
    justify-content: flex-start;
    margin-top: 31px;
}

.final-cta-visual {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: min(100%, 340px);
    aspect-ratio: 1;
    justify-self: end;
    opacity: 1;
    transform: scale(1) rotate(0);
    transition: opacity 650ms ease 260ms, transform 900ms var(--ease-premium) 260ms;
}

.motion-ready .final-cta-inner:not(.revealed) .final-cta-visual {
    opacity: 0;
    transform: scale(0.75) rotate(-12deg);
}

.cta-orbit {
    position: absolute;
    border: 1px solid rgba(67, 83, 56, 0.19);
    border-radius: 50%;
}

.cta-orbit-one {
    inset: 9%;
    border-style: dashed;
    animation: cta-orbit-turn 28s linear infinite;
}

.cta-orbit-two {
    inset: 24%;
    border-color: rgba(111, 158, 20, 0.28);
    animation: cta-orbit-turn 22s linear infinite reverse;
}

.cta-mark-wrap {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(26, 34, 21, 0.13);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 48px rgba(52, 70, 38, 0.13), inset 0 1px 0 #fff;
    animation: cta-mark-float 5s ease-in-out infinite;
}

.cta-mark-wrap img {
    width: 54px;
    height: 54px;
    animation: brand-turn 16s linear infinite;
}

.cta-signal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #79ad15;
    box-shadow: 0 0 0 6px rgba(121, 173, 21, 0.11), 0 0 20px rgba(121, 173, 21, 0.42);
    animation: cta-signal-orbit 8s linear infinite;
}

.cta-visual-label {
    position: absolute;
    bottom: 8%;
    padding: 8px 12px;
    border: 1px solid rgba(28, 36, 24, 0.12);
    border-radius: 999px;
    color: #526245;
    background: rgba(255, 255, 255, 0.78);
    font-family: var(--font-display);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-footer {
    color: #10140e;
    border-top: 1px solid rgba(27, 36, 22, 0.12);
    background:
        linear-gradient(rgba(27, 36, 22, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 36, 22, 0.035) 1px, transparent 1px),
        #edf1e8;
    background-size: 68px 68px, 68px 68px, auto;
}

.footer-brand p,
.footer-links a {
    color: #596354;
}

.footer-links strong {
    color: #141913;
}

.footer-bottom {
    color: #667061;
    border-color: rgba(27, 36, 22, 0.12);
}

/* Animation definitions */

@keyframes old-button-shimmer {
    0%, 68% { left: -100%; }
    100% { left: 190%; }
}

@keyframes interaction-ripple {
    0% { opacity: 0.72; transform: translate(-50%, -50%) scale(0); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes hero-eyebrow-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}

@keyframes signal-ripple {
    0% { opacity: 0.65; transform: scale(0.65); }
    72%, 100% { opacity: 0; transform: scale(3.2); }
}

@keyframes signal-ring {
    0%, 100% { opacity: 0.78; transform: scale(0.88); box-shadow: 0 0 0 0 rgba(111, 152, 24, 0.2); }
    45% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 7px rgba(111, 152, 24, 0.08); }
    75% { box-shadow: 0 0 0 11px rgba(111, 152, 24, 0); }
}

@keyframes phone-screen-awake {
    0% { clip-path: inset(7% 0 0 0 round 32px); filter: saturate(0.72) brightness(1.04); transform: scale(1.045); }
    100% { clip-path: inset(0 0 0 0 round 0); filter: saturate(1) brightness(1); transform: scale(1); }
}

@keyframes comparison-card-sheen {
    from { left: -55%; }
    to { left: 135%; }
}

@keyframes section-node-ring {
    0% { opacity: 0.55; transform: scale(0.75); }
    100% { opacity: 0; transform: scale(1.7); }
}

@keyframes intelligence-packet {
    0% { top: 30px; opacity: 0; }
    12% { opacity: 1; }
    82% { opacity: 1; }
    100% { top: calc(100% - 38px); opacity: 0; }
}

@keyframes roadmap-tracer {
    0%, 48% { background-position: 180% 0; }
    100% { background-position: -80% 0; }
}

@keyframes cta-orbit-turn {
    to { transform: rotate(360deg); }
}

@keyframes cta-mark-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes cta-signal-orbit {
    from { transform: translate(-50%, -50%) rotate(0) translateX(133px) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(133px) rotate(-360deg); }
}

/* Responsive refinements */

@media (min-width: 821px) {
    .menu-toggle {
        display: none;
    }

    .site-nav {
        grid-template-columns: minmax(145px, 1fr) auto minmax(145px, 1fr);
        width: min(90%, var(--old-nav-width));
        min-height: 58px;
        padding: 8px 20px;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        grid-template-columns: none;
        width: auto;
        max-height: none;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links .nav-pill {
        justify-content: center;
        min-height: 36px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .nav-links .nav-pill:last-child,
    .nav-download {
        grid-column: auto;
    }
}

@media (max-width: 920px) {
    .final-cta-inner {
        grid-template-columns: 1fr minmax(240px, 0.7fr);
        gap: 28px;
        padding: 58px 48px;
    }

    .final-cta-visual {
        width: 270px;
    }

    .cta-signal {
        animation-name: cta-signal-orbit-small;
    }
}

@media (max-width: 820px) {
    .site-header {
        top: 10px;
        padding: 0 10px;
    }

    .site-nav {
        grid-template-columns: auto auto 1fr auto;
        width: 100%;
        min-height: 60px;
        padding: 7px 8px 7px 13px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        min-width: 42px;
        margin-left: 7px;
    }

    .nav-links {
        top: 80px;
        right: 10px;
        left: 10px;
        grid-template-columns: 1fr;
        border-radius: 23px;
    }

    .nav-links .nav-pill,
    .nav-links .nav-pill:last-child {
        grid-column: auto;
    }

    .button.nav-download {
        grid-column: 4;
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        padding: 0;
    }

    .nav-download span {
        display: none;
    }

    .comparison-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 32px 28px;
    }

    .comparison-progress {
        display: none;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .comparison-card {
        min-height: 0;
    }

    .comparison-card > p {
        min-height: 0;
    }

    .motion-ready .comparison-wrap.reveal .comparison-card {
        transform: translateX(34px) scale(0.98);
    }

    .motion-ready .comparison-wrap.revealed .comparison-card {
        transform: translateX(0) scale(1);
    }

    .final-cta {
        padding: 82px 0 64px;
    }

    .final-cta-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        margin: 0 14px;
        padding: 48px 30px 38px;
        border-radius: 36px;
        text-align: center;
    }

    .final-cta h2,
    .final-cta p {
        margin-right: auto;
        margin-left: auto;
    }

    .final-actions {
        justify-content: center;
    }

    .final-cta-visual {
        width: min(100%, 260px);
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .button {
        width: 100%;
        min-height: 54px;
    }

    .button.nav-download {
        width: 44px;
    }

    .comparison-wrap {
        border-radius: 30px;
    }

    .comparison-intro {
        padding: 29px 22px;
    }

    .comparison-card {
        padding: 24px 21px 20px;
        border-radius: 23px;
    }

    .native-showcase h2 > span {
        background: linear-gradient(transparent 72%, rgba(200, 243, 74, 0.72) 72%);
    }

    .final-cta-inner {
        padding: 42px 20px 32px;
    }

    .final-cta h2 {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .final-cta-visual {
        width: 220px;
    }

    .cta-mark-wrap {
        width: 88px;
        height: 88px;
        border-radius: 28px;
    }

    .cta-mark-wrap img {
        width: 43px;
        height: 43px;
    }
}

@media (max-width: 340px) {
    .brand .brand-wordmark {
        display: none;
    }
}

@keyframes cta-signal-orbit-small {
    from { transform: translate(-50%, -50%) rotate(0) translateX(103px) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(103px) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .eyebrow,
    .eyebrow-dot::after,
    .bank-network-dot::after,
    .interaction-ripple,
    .comparison-progress i:last-child::after,
    .status-icon::after,
    .trust-card-icon::after,
    .intelligence-loop article > span::after,
    .intelligence-loop::after,
    .roadmap-section.section-active .evolution-line,
    .cta-orbit,
    .cta-mark-wrap,
    .cta-mark-wrap img,
    .cta-signal,
    .motion-ready .native-showcase.section-active .phone-frame img,
    .comparison-card-optivault::after,
    .button-primary:not(.nav-download)::after {
        animation: none !important;
    }

    .comparison-progress-line {
        transform: scaleX(1) !important;
        transition: none !important;
    }

    .bank-ticker-group[aria-hidden="true"],
    .phone-group[aria-hidden="true"] {
        display: none;
    }

    .motion-ready .native-showcase .phone-frame img,
    .motion-ready .native-showcase.section-active .phone-frame img,
    .motion-ready .comparison-wrap.reveal .comparison-card {
        opacity: 1 !important;
        clip-path: none !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}
