:root {
    --ink: oklch(22% 0.045 228);
    --muted: oklch(42% 0.04 225);
    --paper: oklch(98% 0.018 92);
    --cream: oklch(95% 0.055 87);
    --sky: oklch(78% 0.14 221);
    --teal: oklch(73% 0.16 190);
    --teal-deep: oklch(47% 0.13 194);
    --coral: oklch(68% 0.2 34);
    --leaf: oklch(72% 0.16 142);
    --sun: oklch(84% 0.17 84);
    --violet: oklch(71% 0.15 309);
    --surface: oklch(99% 0.013 92);
    --line: oklch(86% 0.038 210);
    --shadow: 0 26px 72px oklch(28% 0.04 225 / 0.17);
    --space-s: clamp(0.75rem, 0.7rem + 0.35vw, 1rem);
    --space-m: clamp(1.2rem, 1rem + 1vw, 2rem);
    --space-l: clamp(2rem, 1.45rem + 2.8vw, 4rem);
    --space-xl: clamp(4rem, 3rem + 5vw, 8rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, oklch(88% 0.14 205 / 0.72), transparent 28rem),
        radial-gradient(circle at 95% 18%, oklch(89% 0.16 80 / 0.65), transparent 24rem),
        linear-gradient(180deg, var(--paper), oklch(96% 0.032 135));
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    background: oklch(99% 0.012 92 / 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-left,
.brand,
.app-logo {
    display: inline-flex;
    align-items: center;
}

.nav-left {
    gap: 1rem;
    min-width: 0;
}

.brand,
.app-logo,
.nav-links a {
    text-decoration: none;
    font-weight: 850;
}

.brand {
    gap: 0.55rem;
    color: var(--muted);
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.app-logo {
    gap: 0.65rem;
    color: var(--ink);
}

.app-logo img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    box-shadow: 0 10px 22px oklch(30% 0.04 225 / 0.16);
}

.nav-links {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.94rem;
}

.nav-links a:hover {
    color: var(--coral);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem) var(--space-l);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: oklch(98% 0.04 88);
    border: 1px solid oklch(82% 0.1 86);
    color: oklch(40% 0.11 83);
    font-size: 0.82rem;
    font-weight: 900;
}

.kicker::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: var(--coral);
    box-shadow: 0.9rem 0 0 var(--teal), 1.8rem 0 0 var(--leaf);
}

h1 {
    max-width: 7.5ch;
    margin: 0;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.84;
    letter-spacing: 0;
}

.tagline {
    margin: 1.35rem 0 0;
    font-size: clamp(1.55rem, 2.5vw, 2.4rem);
    line-height: 1.08;
    font-weight: 900;
    color: var(--teal-deep);
}

.intro {
    max-width: 38rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1rem + 0.55vw, 1.32rem);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 12px 0 oklch(20% 0.04 235 / 0.12);
    transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 0 oklch(20% 0.04 235 / 0.1);
}

.button.secondary {
    background: var(--surface);
    color: var(--ink);
}

.hero-stage {
    position: relative;
    min-height: clamp(24rem, 52vw, 43rem);
    border: 5px solid var(--surface);
    border-radius: 8px;
    overflow: hidden;
    background: var(--sky);
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.hero-stage img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.hero-note {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    max-width: 20rem;
    padding: 0.8rem 0.9rem;
    border-radius: 8px;
    border: 1px solid oklch(86% 0.04 92);
    background: oklch(99% 0.018 92 / 0.92);
    font-weight: 850;
}

.stripe {
    display: flex;
    gap: 0.75rem;
    overflow: hidden;
    padding: 0.85rem 0;
    background: var(--ink);
    color: var(--paper);
    font-weight: 900;
    white-space: nowrap;
}

.stripe span {
    animation: marquee 18s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.section {
    padding: var(--space-xl) clamp(1rem, 5vw, 5rem);
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: var(--space-l);
    align-items: center;
}

.section h2,
.page-title {
    margin: 0;
    font-size: clamp(2.4rem, 5.5vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.section p,
.content p {
    color: var(--muted);
    font-size: 1.06rem;
}

.world-art {
    border: 5px solid var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--cream);
}

.feature-run {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1fr;
    gap: 1rem;
    margin-top: var(--space-l);
}

.feature {
    min-height: 18rem;
    padding: clamp(1.2rem, 2vw, 1.7rem);
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 16px 38px oklch(30% 0.04 225 / 0.08);
}

.feature:nth-child(1) {
    background: oklch(92% 0.11 190);
}

.feature:nth-child(2) {
    margin-top: 3rem;
    background: oklch(93% 0.11 82);
}

.feature:nth-child(3) {
    background: oklch(93% 0.1 143);
}

.feature h3 {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.3rem);
    line-height: 1;
}

.feature p {
    margin-bottom: 0;
}

.download {
    position: relative;
    overflow: hidden;
    margin: 0 clamp(1rem, 5vw, 5rem) var(--space-l);
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: 8px;
    background:
        radial-gradient(circle at 85% 30%, oklch(90% 0.17 84), transparent 18rem),
        linear-gradient(135deg, var(--coral), var(--teal));
    color: var(--ink);
}

.download::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -6rem;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    background: oklch(99% 0.018 92 / 0.35);
}

.download-content {
    position: relative;
    z-index: 1;
    max-width: 44rem;
}

.download h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: 0.92;
}

.download p {
    color: oklch(24% 0.045 228);
    font-size: 1.16rem;
}

.content-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 2rem);
}

.content {
    margin-top: 2rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px oklch(30% 0.04 225 / 0.09);
}

.content h2 {
    margin: 2rem 0 0.7rem;
    font-size: 1.55rem;
}

.content h2:first-child {
    margin-top: 0;
}

.content ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.content li {
    margin: 0.5rem 0;
}

.nsg-mark {
    width: min(100%, 420px);
    height: auto;
    margin-top: 0.35rem;
}

footer {
    padding: 2rem clamp(1rem, 5vw, 5rem);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: oklch(98% 0.018 92);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 920px) {
    .hero,
    .split,
    .feature-run {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        transform: none;
    }

    .feature:nth-child(2) {
        margin-top: 0;
    }
}

@media (max-width: 680px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .brand span {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
    }

    .hero-stage {
        min-height: 20rem;
    }

    .hero-note {
        position: static;
        margin: -4rem 1rem 1rem;
    }
}
