@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0D0B0B;
    --surface: #1A1717;
    --clay: #FAD9D3;
    --text: #E8E4E3;
    --text-muted: #7A7574;
    --accent: #FFFFFF;
    --font-display: 'DotGothic16', sans-serif;
    --font-body: 'Inter', sans-serif;
    --grid-color: rgba(250, 217, 211, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: crosshair;
    line-height: 1.5;
    zoom: 0.8;
}

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

.display-font {
    font-family: var(--font-display);
    text-transform: uppercase;
}

.text-clay { color: var(--clay); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    animation: loader-hide 1.2s 2.8s cubic-bezier(0.87, 0, 0.13, 1) forwards;
}

.loader-logo {
    width: 56px;
    height: auto;
    display: block;
}

.loader-status {
    font-size: 10px;
    letter-spacing: -0.02em;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    height: 100%;
    width: 0%;
    background: var(--clay);
    animation: load-progress 2.4s ease-out forwards;
}

@keyframes load-progress {
    to { width: 100%; }
}

@keyframes loader-hide {
    to {
        transform: translateY(-100%);
        visibility: hidden;
        pointer-events: none;
    }
}

/* Background */
.grid-layer {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 11, 11, 0.8);
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
}

.nav-logo-img {
    width: 34px;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.nav-logo-link:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: none;
    gap: 2rem;
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links a {
    transition: color 0.15s;
}

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

.nav-cta {
    padding: 0.55rem 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Sections */
.section-frame {
    position: relative;
    padding: 8rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    max-width: 1700px;
    margin: 40px auto;
    background: rgba(26, 23, 23, 0.2);
}

.section-frame--center {
    justify-content: center;
    padding-top: 12rem;
}

.section-frame--cta {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 10rem;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.tech-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--clay);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.tech-label--sm {
    font-size: 10px;
}

.hero-desc {
    font-size: 1.25rem;
    line-height: 1.625;
    max-width: 42rem;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-meta {
    position: absolute;
    bottom: 5rem;
    right: 2rem;
    text-align: right;
    display: none;
}

.hero-meta-label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero-meta-code {
    font-size: 2.25rem;
    opacity: 0.5;
}

/* Hero motion visual (3D crystal) */
.hero-visual {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    display: none;
    pointer-events: none;
    opacity: 0;
    animation: hv-fade-in 1.2s 3s ease forwards;
}

@keyframes hv-fade-in {
    to { opacity: 1; }
}

.hv-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
    cursor: grab;
}

.hv-canvas.is-grabbing {
    cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual {
        animation: none;
        opacity: 1;
    }
}

/* Buttons */
.btn-fox {
    padding: 1rem 2rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: crosshair;
    font-family: inherit;
}

.btn-fox-primary {
    background: var(--clay);
    color: var(--bg);
}

.btn-fox-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn-fox:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-fox--full {
    width: 100%;
    justify-content: center;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.btn-fox--lg {
    padding: 1.5rem 3rem;
}

/* Cards */
.card-tech {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.3s ease;
}

.card-tech:hover {
    border-color: var(--clay);
}

.card-tech--featured {
    border-color: rgba(250, 217, 211, 0.4);
}

.card-tech--tall {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px;
}

.corner-bracket::before,
.corner-bracket::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--clay);
}

.bracket-tl::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.bracket-br::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.big-number {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: rgba(250, 217, 211, 0.1);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Grids */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
}

.three-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
}

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

.section-heading {
    margin-bottom: 5rem;
}

.section-heading h2 {
    font-size: 3.75rem;
    line-height: 1;
}

.section-heading h2--sm,
.section-title {
    font-size: 3rem;
    line-height: 1;
}

.features-title {
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.feature-quote {
    font-size: 1.125rem;
    border-left: 1px solid var(--clay);
    padding: 1rem 0 1rem 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-title--clay {
    color: var(--clay);
}

.card-text {
    font-size: 0.875rem;
    line-height: 1.625;
}

.card-exchange {
    font-size: 0.875rem;
    margin-top: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-strategy-label {
    font-size: 0.75rem;
    opacity: 0.5;
}

.card-strategy-label--clay {
    color: var(--clay);
    opacity: 1;
}

/* Protocol steps */
.protocol-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.protocol-step {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    transition: background 0.15s;
}

.protocol-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.protocol-step-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    padding: 0 1rem;
}

.protocol-num {
    font-size: 3rem;
    color: rgba(250, 217, 211, 0.2);
    transition: color 0.15s;
}

.protocol-step:hover .protocol-num {
    color: var(--clay);
}

.protocol-content h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.protocol-content p {
    max-width: 42rem;
}

.protocol-meta {
    display: none;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Marquee */
.marquee-band {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    background: rgba(26, 23, 23, 0.3);
    overflow: hidden;
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-group {
    display: flex;
    gap: 6rem;
    align-items: center;
    white-space: nowrap;
    padding: 0 3rem;
}

.marquee-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marquee-value {
    font-size: 3.75rem;
    line-height: 1;
}

.marquee-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

/* Powered By / Partners */
.partners-section {
    max-width: 1700px;
    margin: 0 auto;
    padding: 6rem 2rem;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: rgba(26, 23, 23, 0.2);
}

.partners-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.partners-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.partner {
    background: var(--bg);
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-muted);
    transition: color 0.3s ease, background 0.3s ease;
}

.partner:hover {
    color: var(--clay);
    background: rgba(255, 255, 255, 0.02);
}

.partner-logo {
    height: 30px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner:hover .partner-logo {
    opacity: 1;
}

.partner-name {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

.partner-tag {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.55;
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-item summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: '';
}

.faq-question h3 {
    font-size: 1.25rem;
}

.faq-icon {
    color: var(--clay);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding-bottom: 2rem;
}

.faq-answer p {
    max-width: 48rem;
}

/* CTA */
.cta-inner {
    max-width: 42rem;
}

.cta-icon {
    margin-bottom: 3rem;
    display: inline-block;
    color: var(--clay);
}

.cta-title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.cta-desc {
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    max-width: 1700px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: rgba(26, 23, 23, 0.2);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    max-width: 22rem;
}

.footer-logo-img {
    width: 44px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social:hover {
    color: var(--clay);
    border-color: var(--clay);
    transform: translateY(-2px);
}

.footer-cols {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col-title {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text);
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--clay);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

@supports (animation-timeline: view()) {
    .reveal {
        animation: reveal-in linear forwards;
        animation-timeline: view();
        animation-range: entry 0% cover 35%;
    }
}

@supports not (animation-timeline: view()) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@keyframes reveal-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); }
::-webkit-scrollbar-thumb:hover { background: var(--clay); }

/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .two-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .three-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .protocol-step-inner {
        flex-direction: row;
    }

    .protocol-content {
        flex: 1;
    }

    .features-title {
        font-size: 3.75rem;
        line-height: 1.25;
        margin-bottom: 2rem;
    }

    .cta-title {
        font-size: 6rem;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-cols {
        gap: 5rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .protocol-meta {
        display: block;
    }

    .strategies-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-visual {
        display: block;
    }
}

@media (min-width: 1280px) {
    .hero-meta {
        display: block;
    }
}

@media (min-width: 1280px) {
    .hero-visual {
        width: 580px;
        height: 580px;
    }
}

@media (min-width: 1500px) {
    .hero-visual {
        right: 3rem;
        width: 660px;
        height: 660px;
    }
}
