/* Chinmay Technosoft - Orbit Motion System
   Rich-look layer: hero 3D canvas, aurora ambience, tilt cards,
   micro-interactions. All motion respects prefers-reduced-motion. */

/* ==================== AURORA AMBIENT LAYER ==================== */
/* Body becomes transparent so the fixed aurora shows through
   sections that have no background of their own. */
html {
    background-color: var(--white);
}

body {
    background-color: transparent;
}

.fx-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.fx-aurora .fx-blob {
    position: absolute;
    display: block;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
}

.fx-aurora .b1 {
    top: -20%;
    left: -12%;
    background: radial-gradient(circle, rgba(46, 139, 192, 0.17) 0%, transparent 65%);
    animation: fx-blob-drift 46s ease-in-out infinite alternate;
}

.fx-aurora .b2 {
    bottom: -25%;
    right: -15%;
    background: radial-gradient(circle, rgba(93, 173, 226, 0.15) 0%, transparent 65%);
    animation: fx-blob-drift 58s ease-in-out infinite alternate-reverse;
}

.fx-aurora .b3 {
    top: 30%;
    left: 45%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(26, 75, 110, 0.13) 0%, transparent 65%);
    animation: fx-blob-drift 70s ease-in-out infinite alternate;
}

@keyframes fx-blob-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(6vw, -4vh) scale(1.15); }
    100% { transform: translate(-4vw, 5vh) scale(0.95); }
}

.fx-aurora .fx-ring {
    position: absolute;
    will-change: transform;
}

.fx-aurora .r1 {
    top: 6%;
    right: -18%;
    width: 55vw;
    height: 30vw;
    animation: fx-ring-spin 90s linear infinite;
}

.fx-aurora .r2 {
    bottom: 4%;
    left: -22%;
    width: 60vw;
    height: 34vw;
    animation: fx-ring-spin 120s linear infinite reverse;
}

.fx-aurora .r3 {
    top: 38%;
    left: -8%;
    width: 116vw;
    height: 46vw;
    animation: fx-ring-spin 180s linear infinite;
}

.fx-aurora .fx-ring ellipse {
    fill: none;
    stroke: rgba(46, 139, 192, 0.18);
    stroke-width: 1.2;
    stroke-dasharray: 7 9;
}

.fx-aurora .r3 ellipse {
    stroke: rgba(46, 139, 192, 0.10);
}

.fx-aurora .fx-ring circle {
    fill: rgba(93, 173, 226, 0.5);
}

@keyframes fx-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Subtle grid-dot texture: visible only on sections without their own
   background (the pseudo sits behind the section background at z:-1). */
main .section:not(.cta-section)::before,
main .section-sm:not(.cta-section)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(13, 33, 55, 0.07) 1px, transparent 1.5px);
    background-size: 26px 26px;
    pointer-events: none;
}

.bg-light-gradient {
    background:
        radial-gradient(rgba(13, 33, 55, 0.06) 1px, transparent 1.5px) 0 0 / 26px 26px,
        linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

/* ==================== HERO 3D ORBIT CANVAS ==================== */
.hero-orbit-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* The old frosted panel dilutes the 3D scene - remove it on the hero */
.hero-section .hero-image-wrapper::before {
    display: none;
}

/* Anchor box the 3D atom aligns to (replaces the old CSS sphere).
   The ::before is a static-gradient fallback sphere shown until the
   WebGL scene reports in with .live (also covers no-JS / no-WebGL). */
.hero-3d-anchor {
    position: relative;
    width: 430px;
    height: 430px;
    margin: 0 auto;
}

.hero-3d-anchor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    background: var(--gradient-sphere);
    border-radius: 50%;
    box-shadow:
        0 0 60px rgba(46, 139, 192, 0.4),
        inset 0 -20px 40px rgba(0, 0, 0, 0.2),
        inset 0 20px 40px rgba(255, 255, 255, 0.2);
    transition: opacity 0.6s ease;
}

.hero-3d-anchor.live::before {
    opacity: 0;
}

/* ==================== SECTION ORBIT DIVIDERS ==================== */
.section,
.section-sm {
    position: relative;
}

.fx-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, 92vw);
    height: 60px;
    pointer-events: none;
    opacity: 0.5;
}

.fx-divider svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.fx-divider .fx-divider-arc {
    fill: none;
    stroke-width: 1.5;
}

.fx-divider .fx-divider-dot {
    fill: var(--accent-light);
    filter: drop-shadow(0 0 4px rgba(93, 173, 226, 0.9));
}

/* ==================== SCROLL REVEAL ==================== */
/* Hidden state is applied by JS only after the Motion library has
   loaded, so content is never stuck invisible. */
.fx-will-reveal {
    opacity: 0;
}

/* ==================== 3D TILT CARDS ==================== */
.fx-tilt {
    transform-style: preserve-3d;
    will-change: transform;
}

.fx-tilt .fx-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
        rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.05) 38%, transparent 62%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 3;
}

.fx-tilt:hover .fx-glare {
    opacity: 1;
}

/* ==================== ELECTRON DOT ON ICON HOVER ==================== */
.feature-icon,
.product-icon-wrapper {
    position: relative;
}

.feature-card:hover .feature-icon::after,
.product-card:hover .product-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: var(--tertiary);
    box-shadow: 0 0 8px var(--tertiary), 0 0 16px rgba(93, 173, 226, 0.5);
    animation: fx-icon-orbit 1.4s linear infinite;
}

@keyframes fx-icon-orbit {
    from { transform: rotate(0deg) translateX(52px); }
    to   { transform: rotate(360deg) translateX(52px); }
}

/* ==================== NAV ELECTRON DOT ==================== */
/* Rides the existing ::after underline: dot fades in and slides to
   the leading edge of the line, like an electron on its orbit. */
.navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 15%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-light);
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
    opacity: 1;
    left: 82%;
    transform: scale(1);
}

/* ==================== BACK-TO-TOP PROGRESS RING ==================== */
.fx-progress-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.fx-progress-ring circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ==================== LOGO INTRO OVERLAY ==================== */
/* Pre-paint curtain: an inline head script flags <html> before CSS
   loads, so the homepage never flashes before the intro overlay. */
html.fx-intro-pending body {
    overflow: hidden;
}

html.fx-intro-pending::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: linear-gradient(135deg, #0A1929 0%, #0D2137 40%, #1A4B6E 100%);
}

.fx-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    cursor: pointer;
}

.fx-intro svg {
    width: min(270px, 60vw);
    height: auto;
    overflow: visible;
}

.fx-intro .fx-intro-shield {
    fill: none;
    stroke: #bfe3f7;
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(93, 173, 226, 0.9));
}

.fx-intro .fx-intro-tag {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.28em;
    fill: var(--accent-light);
}

.fx-intro .fx-intro-hint {
    position: absolute;
    bottom: 4vh;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.fx-intro .fx-intro-ring {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}

.fx-intro .fx-intro-nucleus {
    transform-origin: 150px 150px;
}

.fx-intro .fx-intro-dot {
    filter: drop-shadow(0 0 6px rgba(93, 173, 226, 0.9));
}

.fx-intro .fx-intro-word {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: 0.32em;
    fill: rgba(255, 255, 255, 0.92);
}

/* ==================== MAGNETIC BUTTONS ==================== */
.fx-magnetic {
    will-change: transform;
}

/* ==================== HERO TRUST CHIPS ==================== */
.hero-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: -0.75rem 0 1.75rem;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(46, 139, 192, 0.14);
    border: 1px solid rgba(93, 173, 226, 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.trust-chip i {
    color: var(--accent-light);
    font-size: 0.95rem;
}

/* ==================== TRUST BAR ==================== */
.trust-bar {
    background: var(--gradient-primary);
    border-top: 1px solid rgba(93, 173, 226, 0.25);
    padding: 1.4rem 0;
    position: relative;
}

.trust-bar-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem 2rem;
    overflow: hidden;
    padding: 0.35rem 0.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.trust-item i {
    font-size: 1.9rem;
    color: var(--accent-light);
    filter: drop-shadow(0 0 10px rgba(93, 173, 226, 0.45));
}

.trust-item strong {
    display: block;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    line-height: 1.25;
}

.trust-item small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
}

.trust-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}

/* ==================== PRIVACY VAULT SECTION ==================== */
.privacy-vault-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    background: var(--gradient-hero);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    aspect-ratio: 13 / 11;
}

.privacy-vault-wrap canvas,
.privacy-vault-wrap .vault-static {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.privacy-vault-wrap .vault-static {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15%;
    color: var(--accent-light);
}

.privacy-vault-wrap.live .vault-static {
    display: none;
}

.privacy-promises {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.privacy-promises li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.privacy-promises .promise-check {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
}

.privacy-promises .promise-check circle,
.privacy-promises .promise-check path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.privacy-promises .promise-check circle {
    stroke: rgba(46, 139, 192, 0.35);
}

.privacy-promises strong {
    display: block;
    color: var(--gray-900);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.privacy-promises span {
    color: var(--gray-600);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* ==================== COMPACT NAVBAR ==================== */
/* Slimmer top bar so the hero can own the full first screen. */
.navbar {
    padding: 0.3rem 0;
}

/* Bigger logo without growing the bar: transform scales visually but
   keeps the 52px layout box, so the bar height stays fixed. The logo's
   white background disappears against the white navbar. */
.navbar-logo {
    height: 52px;
    transform: scale(1.3);
    transform-origin: left center;
}

.navbar.scrolled {
    padding: 0.25rem 0;
}

.navbar.scrolled .navbar-logo {
    height: 44px;
    transform: scale(1.25);
}

/* Hero + navbar together fill exactly one viewport */
.hero-section {
    min-height: calc(100vh - 72px);
}

/* ==================== FOOTER LOGO ==================== */
/* Transparent dark-footer variant needs no white-box padding,
   so give the mark real presence. */
.footer-logo {
    height: 100px;
}

/* ==================== TRUST MICRO-CUES ==================== */
.fx-form-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.fx-form-trust i {
    color: var(--accent);
    font-size: 1rem;
}

.fx-pulse {
    display: inline-block;
    position: relative;
    width: 8px;
    height: 8px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--success);
    vertical-align: middle;
}

.fx-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--success);
    animation: fx-pulse-ring 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes fx-pulse-ring {
    0%   { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    html.fx-intro-pending body { overflow: auto; }
    html.fx-intro-pending::after { content: none; }

    .fx-aurora .fx-blob,
    .fx-aurora .fx-ring,
    .orbit,
    .orbit-node,
    .floating-card,
    .hero-sphere,
    .fx-pulse::after,
    .trust-sweep {
        animation: none !important;
    }

    .feature-card:hover .feature-icon::after,
    .product-card:hover .product-icon-wrapper::after {
        animation: none !important;
        content: none;
    }

    .fx-will-reveal {
        opacity: 1;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==================== MOBILE TUNING ==================== */
@media (max-width: 991.98px) {
    .hero-3d-anchor {
        width: 330px;
        height: 330px;
    }

    .hero-3d-anchor::before {
        width: 150px;
        height: 150px;
    }

    .trust-bar-inner {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero-3d-anchor {
        display: none;
    }

    .fx-aurora .fx-blob {
        filter: blur(40px);
    }

    .fx-divider {
        height: 40px;
    }

    .trust-bar-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .hero-trust-chips {
        margin-top: 0;
    }
}
