:root {
    --bg: #040404;
    --bg-soft: rgba(9, 12, 18, 0.9);
    --panel: rgba(12, 14, 18, 0.78);
    --panel-strong: rgba(10, 12, 16, 0.92);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(191, 221, 255, 0.22);
    --text: #f4f3ef;
    --muted: #c7c6c0;
    --soft: #9ea3ac;
    --blue: #9bc4ff;
    --blue-strong: #6da8ff;
    --silver: #eef3ff;
    --shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --max-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(102, 153, 255, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 24%),
        radial-gradient(circle at 52% 24%, rgba(146, 186, 255, 0.08), transparent 18%),
        linear-gradient(180deg, #020202 0%, #050608 40%, #020202 100%);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1.2px),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 54px,
            rgba(191, 221, 255, 0.04) 54px,
            rgba(191, 221, 255, 0.04) 55px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 54px,
            rgba(191, 221, 255, 0.025) 54px,
            rgba(191, 221, 255, 0.025) 55px
        );
    background-size: 34px 34px, 100% 100%, 100% 100%;
    opacity: 0.14;
}

body::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 56%),
        radial-gradient(circle at 50% 50%, transparent 22%, rgba(155, 196, 255, 0.055) 22.15%, transparent 22.8%),
        radial-gradient(circle at 50% 50%, transparent 31%, rgba(155, 196, 255, 0.038) 31.12%, transparent 31.7%);
    opacity: 0.54;
}

.oracle-page {
    background:
        radial-gradient(circle at 16% 12%, rgba(130, 255, 244, 0.14), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(255, 214, 122, 0.1), transparent 24%),
        radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.05), transparent 26%),
        linear-gradient(180deg, #020202 0%, #05070b 42%, #020202 100%);
}

.oracle-page::before {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1.2px),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 54px,
            rgba(126, 255, 240, 0.05) 54px,
            rgba(126, 255, 240, 0.05) 55px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 54px,
            rgba(255, 214, 122, 0.035) 54px,
            rgba(255, 214, 122, 0.035) 55px
        );
    opacity: 0.18;
}

.oracle-page::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 56%),
        radial-gradient(circle at 50% 50%, transparent 20%, rgba(126, 255, 240, 0.08) 20.2%, transparent 20.8%),
        radial-gradient(circle at 50% 50%, transparent 29%, rgba(255, 214, 122, 0.06) 29.2%, transparent 29.8%),
        radial-gradient(circle at 50% 50%, transparent 37%, rgba(191, 221, 255, 0.05) 37.2%, transparent 37.8%);
    opacity: 0.7;
}

.site-header,
.page-shell,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 22px 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(191, 221, 255, 0.2);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 18px rgba(109, 168, 255, 0.14);
}

.brand-mark svg {
    width: 30px;
    height: 30px;
}

.brand-copy {
    display: grid;
}

.brand-kicker,
.section-kicker,
.panel-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--soft);
}

.brand-title {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.top-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.page-shell {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding-bottom: 72px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 34px;
}

.hero-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.85rem, 5.1vw, 5.1rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.hero-copy p,
.lede,
.card p,
.card li,
.info-list li,
.rich-text p {
    color: var(--muted);
}

.lede {
    max-width: 62ch;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 26px 0 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.button-primary {
    background: rgba(255, 255, 255, 0.94);
    color: #090909;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual,
.page-visual {
    display: flex;
    justify-content: center;
}

.artifact-card,
.media-card {
    position: relative;
    width: 100%;
    min-height: 360px;
    border: 1px solid rgba(191, 221, 255, 0.18);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.artifact-card {
    display: grid;
    place-items: center;
    isolation: isolate;
}

.artifact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(117, 169, 255, 0.18), transparent 35%),
        linear-gradient(90deg, transparent 0%, rgba(238, 243, 255, 0.12) 49%, rgba(238, 243, 255, 0.12) 51%, transparent 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%, rgba(255, 255, 255, 0.02) 100%);
    z-index: 1;
}

.artifact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, transparent 24%, rgba(238, 243, 255, 0.08) 24.2%, transparent 25%),
        radial-gradient(circle at 50% 50%, transparent 31%, rgba(157, 196, 255, 0.1) 31.2%, transparent 32%),
        radial-gradient(circle at 50% 50%, transparent 39%, rgba(191, 221, 255, 0.08) 39.2%, transparent 40%);
    opacity: 0.85;
    z-index: 1;
}

.artifact-image {
    position: relative;
    z-index: 0;
    width: min(80%, 520px);
    height: auto;
    filter: grayscale(1) brightness(0.62) contrast(1.3) sepia(0.08) hue-rotate(176deg) saturate(1.1);
    opacity: 0.68;
}

.artifact-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.artifact-overlay svg,
.corner-toroid svg {
    width: 100%;
    height: 100%;
}

.wave-line,
.toroid-line,
.toroid-spine {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wave-line {
    stroke: rgba(238, 243, 255, 0.34);
    stroke-width: 1.2;
}

.wave-line.secondary {
    stroke: rgba(157, 196, 255, 0.24);
}

.toroid-line {
    stroke: rgba(191, 221, 255, 0.34);
    stroke-width: 1.15;
    stroke-dasharray: 3 6;
}

.toroid-spine {
    stroke: rgba(238, 243, 255, 0.22);
    stroke-width: 1.1;
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.76) contrast(1.1) sepia(0.08) hue-rotate(170deg) saturate(0.8);
    opacity: 0.82;
}

.oracle-page .brand-mark {
    border-color: rgba(126, 255, 240, 0.26);
    box-shadow: 0 0 22px rgba(126, 255, 240, 0.12);
}

.oracle-page .top-nav a:hover,
.oracle-page .top-nav a[aria-current="page"] {
    border-color: rgba(126, 255, 240, 0.3);
    background: rgba(126, 255, 240, 0.08);
}

.oracle-page .section-kicker,
.oracle-page .panel-kicker,
.oracle-page .brand-kicker {
    color: #9de7dc;
}

.oracle-page .button-primary {
    background: linear-gradient(135deg, #fff6dc 0%, #aef7ec 100%);
    color: #07110f;
}

.oracle-page .button-secondary {
    border-color: rgba(126, 255, 240, 0.22);
    background: rgba(126, 255, 240, 0.05);
}

.oracle-page .media-card {
    border-color: rgba(126, 255, 240, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at 20% 20%, rgba(126, 255, 240, 0.08), transparent 32%),
        radial-gradient(circle at 78% 26%, rgba(255, 214, 122, 0.08), transparent 28%);
}

.oracle-page .media-card img {
    filter: brightness(0.84) contrast(1.18) sepia(0.34) hue-rotate(132deg) saturate(1.7);
    opacity: 0.94;
}

.media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42)),
        radial-gradient(circle at center, rgba(127, 180, 255, 0.1), transparent 45%);
}

.oracle-page .media-card::after {
    background:
        linear-gradient(180deg, rgba(4, 7, 9, 0.08), rgba(4, 7, 9, 0.28)),
        linear-gradient(90deg, transparent 0%, rgba(126, 255, 240, 0.07) 49%, rgba(126, 255, 240, 0.07) 51%, transparent 100%),
        radial-gradient(circle at 22% 20%, rgba(126, 255, 240, 0.18), transparent 32%),
        radial-gradient(circle at 78% 26%, rgba(255, 214, 122, 0.16), transparent 28%);
}

.oracle-page .card,
.oracle-page .use-panel,
.oracle-page .video-frame,
.oracle-page .video-embed {
    border-color: rgba(126, 255, 240, 0.16);
}

.corner-toroid {
    position: fixed;
    top: 24px;
    left: 18px;
    width: min(21vw, 210px);
    aspect-ratio: 1;
    opacity: 0.62;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 24px rgba(109, 168, 255, 0.14));
}

.grid,
.card-grid,
.docs-grid,
.node-grid,
.use-grid {
    display: grid;
    gap: 20px;
}

.grid,
.card-grid,
.docs-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.node-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.use-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.card,
.use-panel,
.wallet-list,
.doc-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.card,
.use-panel,
.doc-panel {
    padding: 22px;
}

.card h2,
.card h3,
.doc-panel h3,
.section-title {
    margin: 8px 0 12px;
    font-size: 1.3rem;
}

.section-block {
    margin-top: 28px;
}

.section-title {
    font-size: 1.7rem;
}

.panel-kicker {
    display: block;
    margin-bottom: 8px;
}

.info-list,
.wallet-list,
.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wallet-list {
    padding: 22px;
}

.wallet-list li,
.stack-list li {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-list li:first-child,
.stack-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.wallet-label {
    display: block;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 6px;
}

.wallet-value {
    font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
    color: var(--muted);
    word-break: break-all;
}

.node {
    padding: 18px;
    text-align: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compact-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.signal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signal-list li {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.signup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.field-input {
    flex: 1 1 280px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(191, 221, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-input::placeholder {
    color: var(--soft);
}

.field-input:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(109, 168, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.video-frame,
.video-embed {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-frame video,
.video-embed iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
}

.toggle-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.toggle-button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 12px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.toggle-button:hover,
.toggle-button.is-active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-strong);
    color: var(--text);
}

button.button {
    cursor: pointer;
    font: inherit;
}

.use-case-desc {
    display: none;
}

.use-case-desc.is-visible {
    display: block;
}

.site-footer {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 0 0 34px;
    color: var(--soft);
    text-align: center;
}

.site-footer a {
    color: var(--text);
}

a {
    color: var(--text);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

    .corner-toroid {
        width: 140px;
        top: 14px;
        left: 10px;
    }
}

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

    .top-nav {
        justify-content: flex-start;
    }

    .hero-copy h1 {
        font-size: clamp(2.3rem, 12vw, 3.7rem);
    }

    .artifact-card,
    .media-card {
        min-height: 280px;
    }

    .video-frame video,
    .video-embed iframe {
        min-height: 240px;
    }
}
