/* TinyBuild stage — dark studio over the scroll-driven WebGL world.
   Loaded after the page stylesheet so these rules win. */

:root {
    --bg: #07090f;
    --bg-soft: rgba(8, 11, 18, 0.78);
    --card: rgba(14, 18, 30, 0.72);
    --card-light: rgba(255, 255, 255, 0.045);
    --text: #f4f7fb;
    --muted: #a9b3c4;
    --muted-light: #d7deea;
    --accent: #6aa4ff;
    --accent-bright: #d6e6ff;
    --accent-soft: rgba(106, 164, 255, 0.16);
    --accent-border: rgba(150, 190, 255, 0.42);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --nav-glass: rgba(7, 9, 15, 0.62);
    --fs-display: clamp(3.1rem, 6.4vw, 6.1rem);
    color-scheme: dark;
}

body {
    background:
        radial-gradient(900px 520px at 78% 18%, rgba(31, 111, 255, 0.18), transparent 60%),
        var(--bg);
}

.nav {
    background: var(--nav-glass);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(1.3);
}

.lang-toggle,
.lang-menu,
.nav-toggle {
    background: rgba(10, 14, 24, 0.88) !important;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
}

.lang-option {
    color: var(--text);
}

.lang-option:hover,
.lang-option.active {
    background: rgba(106, 164, 255, 0.16);
}

.tb-world-veil,
html[data-tb-stage="build"] .tb-world-veil,
html[data-tb-stage="talk"] .tb-world-veil,
html[data-tb-stage="tiny"] .tb-world-veil,
html[data-tb-stage="hardware"] .tb-world-veil,
html[data-tb-stage="process"] .tb-world-veil,
html[data-tb-stage="start"] .tb-world-veil {
    background:
        linear-gradient(90deg, rgba(7, 9, 15, 0.88) 0%, rgba(7, 9, 15, 0.42) 42%, rgba(7, 9, 15, 0.12) 68%, rgba(7, 9, 15, 0.55) 100%),
        linear-gradient(180deg, rgba(7, 9, 15, 0.2) 0%, transparent 22%, transparent 70%, rgba(7, 9, 15, 0.78) 100%) !important;
}

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    padding-top: 96px;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 6%;
    top: 16%;
    width: min(560px, 48vw);
    height: min(560px, 48vw);
    background: radial-gradient(circle, rgba(90, 150, 255, 0.42), rgba(255, 150, 90, 0.12) 42%, transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

.hero-stage-fade,
.hero-fallback .hero-stage-fade {
    background:
        linear-gradient(90deg, rgba(7, 9, 15, 0.72) 0%, rgba(7, 9, 15, 0.08) 58%, transparent 100%);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at 70% 40%, black 10%, transparent 72%);
    opacity: 0.7;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 6px 12px 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.hero-brand::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6aa4ff;
    box-shadow: 0 0 12px #6aa4ff;
    animation: stagePulse 2.4s ease-in-out infinite;
}

.hero h1 {
    max-width: 11ch;
    font-size: var(--fs-display);
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.hero h1 .green {
    display: block;
    margin-top: 0.08em;
    background: linear-gradient(100deg, #9ec4ff 0%, #ffffff 42%, #ffb089 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 38em;
    font-size: 1.05rem;
    color: #c5cedb;
}

.hero-description strong {
    color: #fff;
}

.hero-actions {
    margin-top: 28px;
}

.nav-cta {
    background: #f4f7fb;
    color: #0b0e16;
}

.nav-cta:hover {
    background: #6aa4ff;
    color: #fff;
}

.primary-btn {
    border-radius: 999px;
    background: linear-gradient(180deg, #7eb0ff, #2f6fe8);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 12px 40px rgba(47, 111, 232, 0.45);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.secondary-btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.09);
}

.hero-3d-slot {
    min-height: 460px;
    pointer-events: none;
}

.stage-specs {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: min(380px, 100%);
    display: grid;
    gap: 10px;
    pointer-events: auto;
}

.stage-spec {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(8, 12, 22, 0.55);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px) saturate(1.4);
    animation: heroIn 0.9s cubic-bezier(.22, 1, .36, 1) both;
}

.stage-spec:nth-child(1) { animation-delay: .2s; }
.stage-spec:nth-child(2) { animation-delay: .32s; }
.stage-spec:nth-child(3) { animation-delay: .44s; }

.stage-spec-title,
.stage-spec-text {
    margin: 0;
}

.stage-spec-title {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #fff;
}

.stage-spec-text {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.stage-dial {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(from 0deg, #6aa4ff, #ffb089, transparent 72%, transparent);
    animation: stageSpin 8s linear infinite;
    position: relative;
}

.stage-dial::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #0c1018;
}

.stage-dial span,
.stage-index {
    position: relative;
    z-index: 1;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-weight: 800;
    color: #fff;
}

.stage-dial span {
    animation: stageSpin 8s linear infinite reverse;
}

.stage-index {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ec0ff;
    letter-spacing: 0.08em;
}

.tb-marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 9, 15, 0.55);
    backdrop-filter: blur(8px);
}

.tb-marquee-track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: stageMarquee 32s linear infinite;
}

.tb-marquee span {
    padding: 14px 28px;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d5deec;
    white-space: nowrap;
}

.tb-marquee span::before {
    content: "✦";
    margin-right: 28px;
    color: #6aa4ff;
}

main section {
    position: relative;
    z-index: 1;
}

.intro,
.build,
.insights,
.free-consultation,
.demo-price,
.small,
.hardware,
.trust,
.team,
.process,
.bet-trust,
.scale,
.no-lock,
.faq,
.final-cta {
    background: linear-gradient(180deg, rgba(7, 9, 15, 0.55), rgba(7, 9, 15, 0.82)) !important;
}

.build-card,
.insight,
.team-card,
.faq-item,
.process-step,
.trust-item,
.scale-card,
.bet-card,
.hardware-card,
.demo-card,
.price-card,
.small-card,
.no-lock-card {
    background: rgba(16, 20, 32, 0.66);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), border-color 0.35s ease, background 0.35s ease;
}

.build-card:hover,
.insight:hover,
a.insight:hover {
    transform: translateY(-6px);
    border-color: rgba(150, 190, 255, 0.45);
    background: rgba(22, 30, 48, 0.8);
}

.form-field input,
.form-field select,
.form-field textarea,
.form-field select option {
    background: rgba(8, 12, 20, 0.9);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #8b95a8;
}

.tb-stage-caption {
    background: rgba(8, 12, 20, 0.72);
    color: #d7e4ff;
    border-color: rgba(150, 190, 255, 0.35);
    backdrop-filter: blur(10px);
}

footer {
    position: relative;
    z-index: 1;
    background: #07090f;
}

@keyframes stageSpin {
    to { transform: rotate(1turn); }
}

@keyframes stagePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes stageMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(2.6rem, 12vw, 4.2rem);
    }

    .hero-3d-slot {
        min-height: 0;
    }

    .stage-specs {
        position: relative;
        width: 100%;
        bottom: auto;
        margin-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tb-marquee-track,
    .stage-dial,
    .hero-brand::before {
        animation: none;
    }
}

/* Colored cursors draw content in. The layer never takes clicks. */
html.tb-cursors .hero-content > *,
html.tb-cursors .stage-spec {
    animation: none;
}

.tb-cursor-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    overflow: hidden;
}

.tb-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    color: var(--c);
    transform-origin: 0 0;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
    will-change: transform;
}

.tb-cursor svg {
    display: block;
    width: 20px;
    height: 20px;
    margin: -2.2px 0 0 -3.5px;
    transform-origin: 3.5px 2.2px;
    transition: transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.tb-cursor.is-drawing {
    filter: drop-shadow(0 0 8px var(--c)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.tb-cursor.is-drawing svg {
    transform: scale(1.12);
}

html.tb-cursors .tb-ink {
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.tb-cursors .tb-ink.tb-on {
    opacity: 1;
}

.tb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tb-w {
    display: inline-block;
    white-space: nowrap;
}

.tb-ch {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.38em) scale(0.84);
    filter: blur(4px);
    transition:
        opacity 0.34s ease-out,
        transform 0.52s cubic-bezier(0.18, 1.45, 0.4, 1),
        filter 0.4s ease-out;
}

.tb-ch.on {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

.tb-wipe {
    clip-path: inset(-14% calc((1 - var(--wipe, 0)) * 100%) -14% -6%);
}

.tb-outline {
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.tb-outline path {
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tb-outline.is-done {
    opacity: 0;
}
