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

/* ===== Fonts ===== */
@font-face {
    font-family: "Syncopate";
    src: url("../fonts/SyncopateRus.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Raster Forge";
    src: url("../fonts/RasterForge.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

/* ===== Tokens ===== */
:root {
    --bg: #09070a;
    --bg-soft: #110d12;
    --surface: rgba(20, 15, 20, 0.72);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --line: rgba(242, 224, 207, 0.12);
    --line-strong: rgba(255, 151, 84, 0.34);
    --text: #f5e6d7;
    --muted: #cab5a3;
    --accent: #ff9652;
    --accent-soft: #ffd29d;
    --brand: #8f49ff;
    --brand-soft: #d3a8ff;
    --success: #9bd5a6;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
    --container: 1100px;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 14%, rgba(143, 73, 255, 0.14), transparent 24%),
        radial-gradient(circle at 82% 16%, rgba(255, 150, 82, 0.14), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(255, 210, 157, 0.08), transparent 34%),
        linear-gradient(180deg, #09070a 0%, #0d0a10 52%, #09070a 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -2;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(48px);
    opacity: 0.34;
}

body::before {
    width: 24rem;
    height: 24rem;
    left: -8rem;
    top: 8%;
    background: rgba(143, 73, 255, 0.2);
}

body::after {
    width: 30rem;
    height: 30rem;
    right: -10rem;
    bottom: 6%;
    background: rgba(255, 150, 82, 0.14);
}

.site-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 14px 14px, 120px 120px, 120px 120px;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
p   { color: var(--muted); }

h1, h2, h3 {
    font-family: "Syncopate", sans-serif;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

/* ===== Layout ===== */
.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 2.4rem 0;
}

/* ===== Shared ===== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: "Raster Forge", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.eyebrow::before {
    content: "";
    width: 2.2rem;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.45rem;
    padding: 0.92rem 1.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #1d120f;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    box-shadow: 0 16px 32px rgba(255, 150, 82, 0.22);
}

.button-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.button-placeholder {
    pointer-events: none;
    opacity: 0.72;
}

.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    border-radius: 0.95rem;
    border: 1px solid rgba(242, 224, 207, 0.1);
    background: rgba(255, 255, 255, 0.035);
    color: var(--accent-soft);
}

.icon-badge svg {
    width: 1.1rem;
    height: 1.1rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-soft);
    font-weight: 700;
}

.text-link::after {
    content: "\2197";
}

.rail-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-family: "Raster Forge", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0.45rem 0 0.3rem;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(9, 7, 10, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(242, 224, 207, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-minimal { gap: 0.58rem; }

.brand-line {
    width: 1.7rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 150, 82, 0.9), rgba(143, 73, 255, 0.7));
}

.brand-text {
    font-family: "Syncopate", sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    color: rgba(255, 244, 231, 0.92);
}

.brand-logo { gap: 0; }

.brand-img {
    height: 1.6rem;
    width: auto;
    display: block;
    opacity: 0.92;
    transition: opacity 0.2s ease;
}

.brand-logo:hover .brand-img { opacity: 1; }

.footer-brand .brand-img { height: 1.3rem; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.site-nav a {
    position: relative;
    font-size: 0.99rem;
    color: rgba(245, 230, 215, 0.84);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.28rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--brand));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 0.72rem;
    border-radius: 999px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.2rem;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.menu-toggle span + span {
    margin-top: 0.32rem;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: calc(100svh - 3.2rem);
    display: flex;
    align-items: center;
    padding: 1rem 0 2rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 30%, rgba(143, 73, 255, 0.18), transparent 30%),
        radial-gradient(circle at 84% 54%, rgba(255, 150, 82, 0.16), transparent 26%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100svh - 6rem);
}

.hero-copy h1 {
    font-size: clamp(3rem, 5.8vw, 5rem);
    color: #fff4e7;
    text-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
    line-height: 1.05;
}

.hero-sub {
    max-width: 22rem;
    margin-top: 1rem;
    font-size: 1.05rem;
    color: rgba(245, 230, 215, 0.82);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin-top: 1.6rem;
}

.hero-main-action {
    box-shadow: 0 16px 34px rgba(255, 171, 96, 0.22);
}

.hero-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(242, 224, 207, 0.08);
}

.hero-status span {
    position: relative;
    padding-left: 0.9rem;
    color: rgba(245, 230, 215, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.hero-status span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 999px;
    background: rgba(245, 230, 215, 0.25);
}

.hero-status-live {
    color: rgba(255, 244, 231, 0.9) !important;
}

.hero-status-live::before {
    background: var(--accent) !important;
    box-shadow: 0 0 8px rgba(255, 150, 82, 0.5);
}

/* Hero image */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
}

.hero-img {
    width: clamp(30rem, 36vw, 48rem);
    max-width: none;
    transform: translateX(12%);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

/* ===== Hero entrance animation ===== */

/* Initial hidden state */
body:not(.page-loaded) .site-header {
    opacity: 0;
    transform: translateY(-20px);
}

body:not(.page-loaded) .hero-copy h1 {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
}

body:not(.page-loaded) .hero-sub {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
}

body:not(.page-loaded) .hero-actions {
    opacity: 0;
    transform: translateY(24px);
}

body:not(.page-loaded) .hero-status {
    opacity: 0;
    transform: translateY(18px);
}

body:not(.page-loaded) .hero-visual {
    opacity: 0;
    transform: scale(0.85) translateX(60px);
    filter: blur(6px);
}

body:not(.page-loaded) .hero::before {
    opacity: 0;
    transform: scale(0.6);
}

/* Animated state */
body.page-loaded .site-header {
    transition: opacity 500ms ease 100ms, transform 600ms cubic-bezier(0.22, 1, 0.36, 1) 100ms, background-color 0.25s ease, backdrop-filter 0.25s ease;
}

body.page-loaded .hero::before {
    transition: opacity 1200ms ease, transform 1500ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-loaded .hero-copy h1 {
    transition: opacity 800ms ease 200ms, clip-path 1000ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}

body.page-loaded .hero-sub {
    transition: opacity 600ms ease 500ms, transform 800ms cubic-bezier(0.22, 1, 0.36, 1) 500ms, filter 800ms ease 500ms;
}

body.page-loaded .hero-actions {
    transition: opacity 550ms ease 700ms, transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 700ms;
}

body.page-loaded .hero-status {
    transition: opacity 500ms ease 900ms, transform 600ms cubic-bezier(0.22, 1, 0.36, 1) 900ms;
}

body.page-loaded .hero-visual {
    transition: opacity 900ms ease 400ms, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1) 400ms, filter 900ms ease 400ms;
}

body.hero-settled .site-header,
body.hero-settled .hero-copy h1,
body.hero-settled .hero-sub,
body.hero-settled .hero-actions,
body.hero-settled .hero-status,
body.hero-settled .hero-visual,
body.hero-settled .hero::before {
    will-change: auto;
    filter: none;
}

/* ===== Story ===== */
.story-header {
    max-width: 36rem;
    margin-bottom: 2rem;
}

.story-header h2 {
    margin-top: 0.6rem;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.story-sub {
    margin-top: 0.7rem;
    font-size: 1rem;
    color: var(--text);
    max-width: 32rem;
}

/* Story flow (horizontal steps) */
.story-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    padding-top: 2rem;
}

.story-flow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255, 150, 82, 0.5),
        rgba(143, 73, 255, 0.5) 50%,
        rgba(255, 150, 82, 0.3)
    );
}

.story-step {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.story-step-marker {
    position: absolute;
    top: -2rem;
    left: 0;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    box-shadow: 0 0 16px rgba(143, 73, 255, 0.4);
    transform: translateY(calc(-50% + 1px));
}

.story-step-label {
    display: block;
    font-family: "Raster Forge", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 0.4rem;
}

.story-step p {
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 14rem;
}

/* ===== Access ===== */
.access-frame {
    display: grid;
    gap: 1.2rem;
}

.access-copy {
    max-width: 34rem;
}

.access-copy h2 {
    margin-top: 0.6rem;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.access-lead {
    max-width: 28rem;
    margin-top: 0.6rem;
    font-size: 1rem;
}

.access-grid {
    display: grid;
    gap: 0.5rem;
}

.access-scene {
    display: grid;
    gap: 1rem;
}

.access-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0;
}

.access-spine {
    position: absolute;
    left: 0;
    right: 0;
    top: 0.34rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 180, 109, 0.25), rgba(141, 92, 255, 0.35), rgba(255, 180, 109, 0.2));
    z-index: 0;
}

.access-stop {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 1.4rem;
    padding-bottom: 1.6rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.access-scene.is-visible .access-stop {
    opacity: 1;
    transform: none;
}

.access-scene.is-visible .access-stop-desktop { transition-delay: 0.1s; }
.access-scene.is-visible .access-stop-mobile  { transition-delay: 0.18s; }

.access-stop::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 180, 109, 1), rgba(141, 92, 255, 0.95));
    box-shadow: 0 0 16px rgba(141, 92, 255, 0.32);
    z-index: 1;
}

.stop-kicker {
    display: block;
    font-family: "Raster Forge", monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.access-stop strong {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 244, 231, 0.96);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.1;
}

.access-stop p,
.access-stop .text-link {
    display: inline-block;
    margin-top: 0.4rem;
    max-width: 14rem;
    color: rgba(245, 230, 215, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
}

.access-stop .button {
    margin-top: auto;
}

.access-web-button,
.access-download-button {
    width: max-content;
    min-width: 12rem;
    justify-content: center;
}

.access-web-button {
    border-color: rgba(242, 224, 207, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.access-release-meta {
    position: absolute;
    left: 0;
    bottom: 0;
    color: rgba(245, 230, 215, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.warning-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    align-items: baseline;
    padding: 0.8rem 0 0;
    border-top: 1px solid rgba(242, 224, 207, 0.08);
    color: rgba(245, 230, 215, 0.72);
}

.warning-ribbon p {
    margin: 0;
    max-width: 46rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

.access-stream {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
}

.access-stream span,
.access-stream a {
    position: relative;
    padding-left: 0.85rem;
    color: rgba(245, 230, 215, 0.65);
    font-size: 0.78rem;
}

.access-stream span::before,
.access-stream a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.44rem;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 180, 109, 0.7);
}

/* ===== Connect ===== */
.connect-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: stretch;
}

.connect-copy,
.connect-form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(242, 224, 207, 0.08);
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(16, 12, 18, 0.46);
}

.connect-copy {
    justify-content: space-between;
}

.connect-copy h2 {
    margin-top: 0.8rem;
    max-width: 10ch;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.connect-lead {
    max-width: 25rem;
    margin-top: 0.7rem;
    font-size: 0.92rem;
}

.connect-copy-main {
    display: grid;
    gap: 0.5rem;
}

.connect-rhythm {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(242, 224, 207, 0.08);
}

.connect-rhythm span {
    position: relative;
    padding-left: 0.8rem;
    color: rgba(245, 230, 215, 0.68);
    font-size: 0.78rem;
}

.connect-rhythm span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 180, 109, 0.7);
}

.contact-list {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.contact-line {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(242, 224, 207, 0.06);
}

.contact-line:last-child { border-bottom: none; }

.contact-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--accent-soft);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-line strong {
    display: block;
    color: rgba(255, 244, 231, 0.94);
    font-size: 0.82rem;
    line-height: 1.35;
}

.connect-footer-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    padding-top: 0.85rem;
    margin-top: auto;
    border-top: 1px solid rgba(242, 224, 207, 0.08);
}

.connect-footer-line span {
    position: relative;
    padding-left: 0.8rem;
    color: rgba(245, 230, 215, 0.65);
    font-size: 0.75rem;
}

.connect-footer-line span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 180, 109, 0.7);
}

.connect-donate {
    margin-top: 0.8rem;
}

/* ===== Form ===== */
.beta-intro h3 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.beta-application-form,
.feedback-form {
    display: grid;
    gap: 0.75rem;
    flex: 1;
    align-content: start;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field > span {
    color: var(--text);
    font-size: 0.9rem;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(242, 224, 207, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(202, 181, 163, 0.6);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(255, 150, 82, 0.38);
    background: rgba(255, 255, 255, 0.06);
}

.field textarea {
    resize: vertical;
}

.field-grow {
    flex: 1;
}

.field-grow textarea {
    min-height: 7rem;
}

/* Form pills */
.form-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.form-pill {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(242, 224, 207, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(245, 230, 215, 0.7);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

.form-pill:hover {
    border-color: rgba(255, 150, 82, 0.3);
    color: var(--text);
}

.form-pill.is-active {
    background: linear-gradient(135deg, rgba(255, 150, 82, 0.18), rgba(143, 73, 255, 0.14));
    border-color: rgba(255, 150, 82, 0.35);
    color: #fff4e7;
}

.form-status {
    min-height: 1.2rem;
    font-size: 0.88rem;
}

.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"]   { color: #ff9d9d; }

/* ===== Easter egg ===== */
.easter-video {
    position: fixed;
    right: -22rem;
    bottom: 2rem;
    z-index: 50;
    width: 20rem;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(242, 224, 207, 0.12);
    transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.easter-video.is-visible {
    right: 1.5rem;
    pointer-events: auto;
}

.easter-video video {
    display: block;
    width: 100%;
}

/* ===== Footer ===== */
.site-footer {
    padding: 2rem 0 1.35rem;
}

.footer-brand .brand-text {
    font-size: 0.94rem;
}

.footer-inner,
.footer-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

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

.footer-links a,
.footer-copy,
.footer-meta p {
    color: rgba(245, 230, 215, 0.72);
}

.footer-copy {
    margin-top: 0.85rem;
    max-width: 22rem;
}

.footer-meta {
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(242, 224, 207, 0.08);
}

/* ===== Docs page ===== */
.docs-page {
    min-height: calc(100svh - 6rem);
    display: flex;
    align-items: center;
}

.docs-hero { width: 100%; }

.docs-shell {
    max-width: 46rem;
    padding: 2.3rem;
    border-radius: 2rem;
    background:
        radial-gradient(circle at top right, rgba(143, 73, 255, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 150, 82, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(16, 12, 18, 0.82);
    box-shadow: var(--shadow);
}

.docs-shell h1 {
    margin-top: 1rem;
    max-width: 12ch;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.docs-description {
    max-width: 34rem;
    margin-top: 1rem;
}

.docs-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.6rem;
    margin: 1.4rem 0 1.6rem;
}

.docs-point span {
    display: block;
    color: var(--accent-soft);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.docs-point strong {
    color: rgba(255, 244, 231, 0.94);
}

/* ===== Reveal on scroll ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive: tablet (<=1024) ===== */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 1.5rem 0 2rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 2rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.8rem, 7vw, 4.2rem);
    }

    .hero-sub {
        max-width: none;
    }

    .hero-visual {
        order: -1;
        justify-content: center;
        max-width: 24rem;
        margin: 0 auto;
    }

    .hero-img {
        transform: none;
        width: 100%;
    }

    .story-flow {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        padding-left: 1.4rem;
        padding-top: 0;
    }

    .story-flow::before {
        top: 0;
        bottom: 0;
        left: 0.3rem;
        right: auto;
        width: 2px;
        height: auto;
    }

    .story-step-marker {
        top: 0.25rem;
        left: -1.4rem;
        transform: none;
    }

    .story-step p {
        max-width: none;
    }

    .access-map {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0 0 1.4rem;
    }

    .access-spine {
        left: 0.3rem;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .access-stop {
        padding-top: 0;
        padding-left: 0;
    }

    .access-stop::before {
        left: -1.4rem;
        top: 0.25rem;
    }

    .connect-layout {
        grid-template-columns: 1fr;
    }

    .connect-copy h2 {
        max-width: none;
    }
}

/* ===== Responsive: mobile (<=760) ===== */
@media (max-width: 760px) {
    .section {
        padding: 2rem 0;
    }

    /* Header */
    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 1rem;
        right: 1rem;
        padding: 1rem;
        border-radius: 1.2rem;
        border: 1px solid rgba(242, 224, 207, 0.1);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
            rgba(15, 11, 15, 0.98);
        box-shadow: 0 22px 42px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.3rem);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    body.menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    body.menu-open .menu-toggle span:first-child {
        transform: translateY(0.16rem) rotate(45deg);
    }

    body.menu-open .menu-toggle span:last-child {
        transform: translateY(-0.16rem) rotate(-45deg);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 0.8rem 0 1.5rem;
    }

    .hero-layout {
        gap: 1.5rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 9vw, 3.4rem);
    }

    .hero-sub {
        margin-top: 0.7rem;
        font-size: 0.95rem;
    }

    .hero-actions {
        margin-top: 1.2rem;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .hero-status {
        margin-top: 1rem;
        padding-top: 0.8rem;
        gap: 0.4rem 1rem;
    }

    .hero-visual {
        max-width: 18rem;
    }

    .hero-img {
        transform: none;
    }

    /* Story */
    .story-header h2 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .story-sub {
        font-size: 0.92rem;
    }

    .story-header {
        margin-bottom: 1.5rem;
    }

    .story-step p {
        font-size: 0.88rem;
    }

    /* Access */
    .access-copy h2 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .access-lead {
        max-width: none;
        font-size: 0.92rem;
    }

    .access-stop strong {
        font-size: 1.1rem;
    }

    .access-stop p {
        max-width: none;
    }

    .access-web-button,
    .access-download-button {
        width: 100%;
    }

    .access-release-meta {
        text-align: center;
    }

    .warning-ribbon {
        flex-direction: column;
        gap: 0.3rem;
    }

    .access-stream {
        flex-direction: column;
        gap: 0.4rem;
    }

    /* Connect */
    .connect-copy,
    .connect-form {
        padding: 1rem;
        border-radius: 1.1rem;
    }

    .connect-copy h2 {
        font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    }

    .connect-lead {
        max-width: none;
        font-size: 0.88rem;
    }

    .contact-list {
        gap: 0.25rem;
    }

    .icon-badge {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 0.75rem;
    }

    /* Form */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-pills {
        gap: 0.35rem;
    }

    .form-pill {
        font-size: 0.78rem;
        padding: 0.42rem 0.75rem;
    }

    .field-grow textarea {
        min-height: 5.5rem;
    }

    /* Footer */
    .footer-inner,
    .footer-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 0.7rem 1.2rem;
    }

    /* Easter egg */
    .easter-video {
        width: 13rem;
        bottom: 1rem;
    }

    .easter-video.is-visible {
        right: 1rem;
    }
}

/* ===== Responsive: small (<=480) ===== */
@media (max-width: 480px) {
    .container {
        width: min(var(--container), calc(100% - 0.8rem));
    }

    .section {
        padding: 1.6rem 0;
    }

    .hero-copy h1 {
        font-size: clamp(1.9rem, 11vw, 2.6rem);
    }

    .hero-sub {
        font-size: 0.88rem;
    }

    .hero-visual {
        max-width: 15rem;
    }

    .button {
        width: 100%;
        min-height: 3.2rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    .story-header h2,
    .access-copy h2 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .story-flow {
        gap: 1.3rem;
        padding-left: 1.2rem;
    }

    .story-step-label {
        font-size: 0.66rem;
    }

    .story-step p {
        font-size: 0.84rem;
    }

    .access-map {
        gap: 1rem;
        padding-left: 1.2rem;
    }

    .access-stop::before {
        left: -1.2rem;
    }

    .connect-copy,
    .connect-form {
        padding: 0.8rem;
        border-radius: 0.9rem;
    }

    .connect-copy h2 {
        font-size: clamp(1.3rem, 6vw, 1.6rem);
    }

    .field input,
    .field textarea {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
        border-radius: 0.75rem;
    }

    .form-pill {
        font-size: 0.72rem;
        padding: 0.38rem 0.6rem;
    }

    .eyebrow {
        font-size: 0.7rem;
    }

    .docs-shell {
        padding: 1.4rem;
    }

    .easter-video {
        width: 11rem;
        border-radius: 0.9rem;
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    body:not(.page-loaded) .site-header,
    body:not(.page-loaded) .hero-copy h1,
    body:not(.page-loaded) .hero-sub,
    body:not(.page-loaded) .hero-actions,
    body:not(.page-loaded) .hero-status,
    body:not(.page-loaded) .hero-visual,
    body:not(.page-loaded) .hero::before {
        opacity: 1;
        transform: none;
        clip-path: none;
        filter: none;
    }
}
