:root {
    --bg-0: #030814;
    --bg-1: #09152a;
    --bg-2: #123056;
    --ice-0: #d7f4ff;
    --ice-1: #9cd8ee;
    --ice-2: #58b8da;
    --ink-0: #f2f8ff;
    --ink-1: #c1d1e4;
    --ink-2: #88a0bc;
    --line: rgba(200, 228, 255, 0.22);
    --glass: rgba(11, 24, 44, 0.58);
    --glass-solid: rgba(8, 18, 36, 0.92);
    --cta: #7fe5ff;
    --cta-strong: #4fc6e6;
    --ok: #8cf0ca;
    --warn: #c1d1e4;
    --radius-s: 12px;
    --radius-m: 18px;
    --radius-l: 26px;
    --shadow-l: 0 34px 80px rgba(0, 0, 0, 0.46);
    --shadow-m: 0 18px 38px rgba(0, 0, 0, 0.34);
    --max-w: 1200px;
    --ease: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: "Space Grotesk", "Sora", system-ui, sans-serif;
    color: var(--ink-0);
    background:
        radial-gradient(circle at 14% 16%, rgba(127, 229, 255, 0.14), transparent 37%),
        radial-gradient(circle at 86% 12%, rgba(156, 216, 238, 0.15), transparent 42%),
        radial-gradient(circle at 62% 72%, rgba(60, 128, 168, 0.2), transparent 46%),
        linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 44%, #0f2342 100%);
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(112deg, transparent 0 42%, rgba(177, 229, 248, 0.08) 43% 44%, transparent 45% 100%),
        linear-gradient(70deg, transparent 0 58%, rgba(136, 208, 236, 0.06) 59% 60%, transparent 61% 100%);
    pointer-events: none;
    z-index: -2;
    animation: auroraShift 20s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 88%, rgba(116, 199, 231, 0.12), transparent 42%),
        radial-gradient(circle at 24% 78%, rgba(165, 223, 245, 0.09), transparent 44%);
    z-index: -1;
    animation: glowPulse 13s ease-in-out infinite;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    position: relative;
    z-index: 1;
}

.page-shell {
    width: min(var(--max-w), 100% - 3rem);
    margin-inline: auto;
}

section {
    margin-block: clamp(2.3rem, 6vw, 5.4rem);
}

h1,
h2,
h3,
h4 {
    font-family: "Sora", "Space Grotesk", sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.16;
}

p {
    color: var(--ink-1);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1rem 0;
}

.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(14px);
    background: rgba(3, 10, 24, 0.5);
    border-bottom: 1px solid rgba(197, 229, 252, 0.12);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    z-index: -1;
}

.nav-inner {
    width: min(var(--max-w), 100% - 3rem);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0;
}

.brand img {
    height: 44px;
    width: auto;
    transition: transform var(--ease), filter var(--ease);
}

.brand:hover img {
    transform: translateY(-1px) scale(1.015);
    filter: drop-shadow(0 8px 14px rgba(136, 208, 236, 0.2));
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--glass);
    color: var(--ink-0);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 100px;
    background: var(--ink-0);
    transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle span + span {
    margin-top: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-links a {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink-1);
    transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink-0);
    background: rgba(146, 208, 236, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(8, 20, 38, 0.35);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 0.93rem;
    padding: 0.78rem 1.3rem;
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}

.btn-primary {
    color: #062336;
    background: linear-gradient(140deg, var(--cta) 0%, var(--cta-strong) 100%);
    box-shadow: 0 12px 28px rgba(77, 192, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(77, 192, 225, 0.38);
}

.btn:active {
    transform: translateY(0);
}

.btn-ghost {
    color: var(--ink-0);
    border-color: var(--line);
    background: rgba(16, 34, 57, 0.55);
}

.btn-ghost:hover {
    border-color: rgba(156, 216, 238, 0.5);
    background: rgba(146, 208, 236, 0.16);
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.6rem);
}

.hero-copy .kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid var(--line);
    background: rgba(113, 178, 203, 0.14);
    color: var(--ice-0);
}

.hero-copy h1 {
    margin-top: 1rem;
    font-size: clamp(2.3rem, 5.4vw, 4.8rem);
    max-width: 16ch;
}

.hero-copy p {
    margin-top: 1.15rem;
    max-width: 57ch;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-metrics {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.38rem 0.75rem;
    font-size: 0.79rem;
    color: var(--ice-0);
    background: rgba(19, 38, 63, 0.72);
    transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.pill:hover {
    transform: translateY(-1px);
    border-color: rgba(191, 232, 250, 0.46);
    background: rgba(48, 86, 121, 0.62);
}

.hero-panel {
    position: relative;
    border: 1px solid rgba(192, 229, 250, 0.24);
    border-radius: var(--radius-l);
    background: linear-gradient(160deg, rgba(15, 35, 60, 0.85) 0%, rgba(6, 16, 33, 0.95) 100%);
    padding: clamp(1.2rem, 2.3vw, 1.7rem);
    box-shadow: var(--shadow-l);
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 220deg at 75% 10%, rgba(133, 206, 232, 0.45), transparent 35%, transparent 72%, rgba(116, 175, 205, 0.35));
    z-index: -1;
}

.hero-panel::after {
    content: "";
    position: absolute;
    top: -36%;
    left: -22%;
    width: 54%;
    height: 180%;
    background: linear-gradient(110deg, transparent 0%, rgba(201, 239, 255, 0.2) 48%, transparent 100%);
    transform: rotate(8deg);
    animation: panelSweep 7.8s ease-in-out infinite;
    pointer-events: none;
}

.hero-panel h2 {
    font-size: 1.05rem;
    color: var(--ice-0);
}

.hero-stack {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.stack-row {
    border: 1px solid rgba(179, 222, 246, 0.2);
    border-radius: var(--radius-m);
    padding: 0.9rem;
    background: rgba(13, 30, 52, 0.68);
}

.stack-row strong {
    display: block;
    font-size: 0.94rem;
}

.stack-row span {
    margin-top: 0.25rem;
    display: block;
    font-size: 0.84rem;
    color: var(--ink-2);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--glass);
    backdrop-filter: blur(8px);
    padding: 1.2rem;
    box-shadow: var(--shadow-m);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0 44%, rgba(195, 238, 255, 0.08) 50%, transparent 58% 100%);
    transform: translateX(-130%);
    transition: transform 780ms cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(192, 232, 251, 0.44);
    background: rgba(20, 42, 68, 0.72);
    box-shadow: 0 28px 44px rgba(0, 0, 0, 0.36);
}

.card:hover::before {
    transform: translateX(110%);
}

.card h3 {
    font-size: 1.16rem;
}

.card p {
    margin-top: 0.55rem;
    font-size: 0.95rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.section-head p {
    max-width: 56ch;
}

.timeline {
    display: grid;
    gap: 0.8rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.9rem;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1rem;
    background: rgba(9, 24, 44, 0.72);
    transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.timeline-item b {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(127, 229, 255, 0.18);
    color: var(--ice-0);
    font-size: 0.9rem;
    transition: transform var(--ease), background var(--ease);
}

.timeline-item:hover {
    transform: translateY(-3px);
    border-color: rgba(199, 236, 252, 0.4);
    background: rgba(15, 35, 60, 0.76);
}

.timeline-item:hover b {
    transform: scale(1.04);
    background: rgba(127, 229, 255, 0.28);
}

.timeline-item h4 {
    font-size: 1rem;
}

.timeline-item p {
    margin-top: 0.3rem;
    font-size: 0.92rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.app-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.app-badge {
    align-self: flex-start;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 0.34rem 0.62rem;
    border: 1px solid var(--line);
}

.app-badge.active {
    background: rgba(140, 240, 202, 0.18);
    color: var(--ok);
}

.app-badge.upcoming {
    background: rgba(193, 209, 228, 0.12);
    color: var(--warn);
}

.app-logo {
    height: 42px;
    width: auto;
}

.app-card p {
    font-size: 0.93rem;
    flex-grow: 1;
}

.app-card .btn {
    align-self: flex-start;
}

footer {
    margin-top: 4rem;
    padding: 1.3rem 0 2.1rem;
    border-top: 1px solid rgba(189, 224, 247, 0.18);
}

.footer-inner {
    width: min(var(--max-w), 100% - 3rem);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-2);
    font-size: 0.9rem;
}

.footer-mark img {
    height: 28px;
    width: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal.delay-1 {
    --reveal-delay: 120ms;
    animation-delay: 120ms;
}

.reveal.delay-2 {
    --reveal-delay: 220ms;
    animation-delay: 220ms;
}

.reveal.delay-3 {
    --reveal-delay: 320ms;
    animation-delay: 320ms;
}

html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: none;
}

html.js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 680ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

html.js .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

html.js .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

html.js .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auroraShift {
    from {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(1.5%, 1%, 0) scale(1.03);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.65;
    }
    50% {
        opacity: 1;
    }
}

@keyframes panelSweep {
    0% {
        transform: translateX(-130%) rotate(8deg);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    60%,
    100% {
        transform: translateX(280%) rotate(8deg);
        opacity: 0;
    }
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 1.2rem;
    }

    .grid-3,
    .apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .page-shell,
    .nav-inner,
    .footer-inner {
        width: min(var(--max-w), 100% - 1.6rem);
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0.8rem;
        right: 0.8rem;
        flex-direction: column;
        align-items: stretch;
        padding: 0.7rem;
        border-radius: 16px;
        border: 1px solid var(--line);
        background: var(--glass-solid);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--ease), opacity var(--ease);
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: 0.6rem;
    }

    .grid-3,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 36px 1fr;
    }

    .timeline-item b {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.8rem;
    }

    .hero-copy h1 {
        max-width: 13ch;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
