html {
    scroll-behavior: smooth
}

body {
    font-feature-settings: 'liga' 1, 'kern' 1;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1E5C64;
    letter-spacing: .04em;
}

.logo .accent {
    color: #52C1D0;
}

/* Premium white canvas & subtle grid */
.bg-grid {
    background-image: linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: -1px -1px;
}

/* Glow accents */
.glow {
    background: radial-gradient(60% 60% at 50% 0%, rgba(82, 193, 208, .10), transparent 60%),
        radial-gradient(60% 60% at 100% 100%, rgba(30, 92, 100, .10), transparent 60%);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Typewriter caret */
.caret::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    background: currentColor;
    margin-left: 4px;
    animation: blink 1s steps(1) infinite;
    vertical-align: -2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Buttons – subtle shine */
.shine {
    position: relative;
    overflow: hidden
}

.shine::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .55) 20%, transparent 40%);
    transform: translateX(-120%);
}

.shine:hover::after {
    animation: shine 1.2s ease
}

@keyframes shine {
    to {
        transform: translateX(120%)
    }
}

/* Header sticky styles */
.header.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(250, 250, 250, .9);
    box-shadow: 0 6px 28px -18px rgba(2, 6, 23, .35)
}

/* Marquee (testimonials) */
@keyframes marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(calc(-1 * var(--distance, 0px)))
    }
}

.marquee:hover .track {
    animation-play-state: paused
}

.track {
    animation: marquee var(--speed, 32s) linear infinite;
    will-change: transform
}

.fade-edges {
    -webkit-mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
    mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
}

/* Cards */
.card {
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1)
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 46px -16px rgba(2, 6, 23, .28)
}

/* Orbit */
.stage {
    position: relative;
    width: min(92vw, 560px);
    aspect-ratio: 1/1;
    margin: auto
}

.center-badge {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    display: grid;
    place-items: center;
    z-index: 2
}

.guide-ring {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    border-radius: 9999px;
    border: 2px dashed #e5e7eb
}

.orbit {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    transform-origin: 50% 50%;
    animation: spin 28s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.orbit li {
    --n: 8;
    --i: 0;
    --r: 210px;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 90px;
    height: 90px;
    margin: -45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(calc(360deg/var(--n)*var(--i))) translate(var(--r)) rotate(calc(-360deg/var(--n)*var(--i)))
}

.orbit li:nth-child(1) {
    --i: 0
}

.orbit li:nth-child(2) {
    --i: 1
}

.orbit li:nth-child(3) {
    --i: 2
}

.orbit li:nth-child(4) {
    --i: 3
}

.orbit li:nth-child(5) {
    --i: 4
}

.orbit li:nth-child(6) {
    --i: 5
}

.orbit li:nth-child(7) {
    --i: 6
}

.orbit li:nth-child(8) {
    --i: 7
}

.node {
    width: 76px;
    height: 76px;
    border-radius: 9999px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    animation: spinRev 28s linear infinite;
    transform-origin: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.node:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    border-color: #dbe3ef
}

@keyframes spinRev {
    to {
        transform: rotate(-360deg)
    }
}

@media (max-width:576px) {
    .center-badge {
        width: 120px;
        height: 120px
    }

    .guide-ring {
        width: 320px;
        height: 320px
    }

    .orbit li {
        width: 78px;
        height: 78px;
        margin: -39px;
        --r: 170px
    }

    .node {
        width: 68px;
        height: 68px
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .track {
        animation: none !important
    }

    .node,
    .orbit {
        animation: none !important
    }

    .reveal {
        transition: none
    }
}