/* ============================================================
   AI DESIGN TECH — shared v2 chrome
   Loaded on every page (after styles.css where that is present).
   Scene-specific styles (hero flow field, globe, roadmap, etc.)
   live inline in index.html.
   ============================================================ */

:root {
    --primary-blue: #1d3f99;
    --bright-blue: #1d7fff;
    --accent-gold: #a18c4c;
    --accent-gold-light: #f7de65;
    --text-light: #f0f4f8;
    --text-mid: #a0b3d1;
    --card-bg: rgba(8, 13, 32, 0.92);
    --border-soft: rgba(255, 255, 255, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #000;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Orbitron', sans-serif; }
a { color: inherit; }

/* ---------- fixed chrome ---------- */
#progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--bright-blue), var(--accent-gold-light));
    z-index: 1200;
}
#fireflies {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 1100;
}
#ambient {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
}
#mini-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-110%);
    transition: transform 0.4s ease;
}
#mini-nav.on { transform: none; }
#mini-nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    /* Orbitron caps are ~70% of the em box; 38px renders the wordmark at
       ~80% of the 34px icon height. Fluid so it shrinks before it can
       crowd the menu links / CTA on narrower screens. */
    font-size: clamp(15px, 2.6vw, 38px);
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
#mini-nav .brand img { width: 34px; }
#mini-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}
#mini-nav .nav-links a:not(.nav-cta) {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--text-mid);
    transition: color 0.2s ease;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}
#mini-nav .nav-links a:not(.nav-cta):hover,
#mini-nav .nav-links a:not(.nav-cta).active { color: var(--accent-gold-light); }
#mini-nav .nav-cta {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #0a0a0a;
    background: var(--accent-gold-light);
    border-radius: 999px;
    padding: 9px 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#mini-nav .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(247, 222, 101, 0.4); }
@media (max-width: 768px) {
    #mini-nav .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- section navigator rail ---------- */
#toc-rail {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1150;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}
#toc-rail::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px; bottom: 4px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(144, 161, 189, 0.3) 12%, rgba(144, 161, 189, 0.3) 88%, transparent);
    pointer-events: none;
}
.toc-node {
    display: flex;
    align-items: center;
    gap: 11px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.toc-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(144, 161, 189, 0.4);
    flex-shrink: 0;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.toc-node:hover .toc-dot { background: var(--bright-blue); transform: scale(1.25); }
.toc-node.active .toc-dot {
    background: var(--accent-gold-light);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(247, 222, 101, 0.65);
}
.toc-label {
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-mid);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s, transform 0.25s, color 0.25s;
    pointer-events: none;
}
.toc-node:hover .toc-label, .toc-node.active .toc-label { opacity: 1; transform: none; }
.toc-node.active .toc-label { color: var(--accent-gold-light); }
@media (max-width: 768px) {
    #toc-rail {
        top: 0; left: 0; right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        padding: 12px 10px;
        background: rgba(2, 5, 18, 0.55);
        backdrop-filter: blur(8px);
        transition: top 0.4s ease;
    }
    #toc-rail.nav-offset { top: 58px; }
    #toc-rail::before { display: none; }
    .toc-label { display: none; }
    .toc-dot { width: 10px; height: 10px; }
}

/* ---------- layout primitives ---------- */
.section-head { text-align: center; margin-bottom: 48px; padding: 0 24px; }
.section-head .kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold-light);
    border: 1px solid var(--accent-gold);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(24px, 3.6vw, 40px); }
.section-head .lede { color: var(--text-mid); max-width: 640px; margin: 14px auto 0; line-height: 1.7; font-size: 15px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.content-section { padding: 110px 0; position: relative; }

/* subpage hero header */
.page-hero {
    position: relative;
    padding: 170px 24px 90px;
    text-align: center;
    z-index: 1;
}
.page-hero h1 {
    font-weight: 900;
    font-size: clamp(28px, 4.6vw, 54px);
    letter-spacing: 0.03em;
    line-height: 1.2;
    background: linear-gradient(120deg, #ffffff, #7fb4ff 40%, var(--accent-gold-light) 72%, #ffffff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: aurora-flow 9s ease-in-out infinite;
}
@keyframes aurora-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.page-hero .lede {
    margin: 22px auto 0;
    max-width: 660px;
    color: var(--text-mid);
    font-size: clamp(14px, 1.8vw, 17px);
    line-height: 1.7;
}
.page-hero .hero-actions { margin-top: 32px; }
@media (max-width: 768px) {
    .page-hero { padding-top: 140px; }
}

/* founder intro card (subpage heroes) */
.founder-card {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 30px 32px;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
}
.founder-card h3 {
    color: var(--accent-gold-light);
    margin-bottom: 16px;
    font-size: 17px;
}
.founder-card p { color: var(--text-mid); font-size: 14.5px; line-height: 1.7; margin-bottom: 12px; }
.founder-card p:last-child { margin-bottom: 0; }
.founder-card .accent { color: var(--accent-gold-light); font-weight: 600; }

/* legacy section titles inherit the v2 look on subpages */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 3.6vw, 40px);
    font-weight: 700;
    color: var(--text-light);
}

/* blur-fade reveal */
.bf {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(10px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.bf.in { opacity: 1; transform: none; filter: none; }

/* shimmer CTA (shared) */
.cta-btn {
    position: relative;
    display: inline-block;
    padding: 18px 42px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    background: #0a1128;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 0 30px rgba(29, 63, 153, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn::before {
    content: "";
    position: absolute;
    inset: -100%;
    z-index: -2;
    background: conic-gradient(from 0deg, transparent 0 300deg, var(--accent-gold-light) 330deg, transparent 360deg);
    animation: cta-spin 3s linear infinite;
}
.cta-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: inherit;
    background: #0a1128;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(247, 222, 101, 0.4); }
@keyframes cta-spin { to { transform: rotate(360deg); } }

/* pinned scene shells */
.pin-wrap { position: relative; }
.pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
canvas.fill { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- logo / tool marquees ---------- */
.marquee {
    display: flex;
    overflow: hidden;
    gap: 70px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 70px;
    flex-shrink: 0;
    min-width: 100%;
    justify-content: space-around;
    animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.rev .marquee-track { animation-direction: reverse; }
@keyframes marquee-scroll { to { transform: translateX(calc(-100% - 70px)); } }
.marquee-track img {
    height: 42px;
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    filter: grayscale(100%) brightness(1.7);
    transition: opacity 0.3s, filter 0.3s;
}
.marquee-track img:hover { opacity: 1; filter: none; }
/* tool chips (icon + label) for the toolbox marquee */
.marquee.tools { gap: 46px; }
.marquee.tools .marquee-track { gap: 46px; animation-duration: 44s; }
.tool-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    color: var(--text-mid);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transition: color 0.3s;
}
.tool-chip img {
    height: 30px !important;
    width: 30px !important;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0.85;
    filter: none;
}
.tool-chip:hover { color: var(--text-light); }

/* ---------- cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.service-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 40px 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
        rgba(247, 222, 101, 0.10), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--sbeam, 0deg),
        transparent 0 335deg, var(--accent-gold-light) 348deg, var(--bright-blue) 354deg, transparent 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: sbeam-rotate 7s linear infinite;
    pointer-events: none;
}
@property --sbeam {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes sbeam-rotate { to { --sbeam: 360deg; } }
.service-card:nth-child(2)::after { animation-delay: -2.3s; }
.service-card:nth-child(3)::after { animation-delay: -4.6s; }
.service-card img.icon { width: 96px; height: 96px; object-fit: contain; margin-bottom: 22px; }
.service-card h3 { font-size: 19px; margin-bottom: 14px; line-height: 1.4; }
.service-card p { color: var(--text-mid); font-size: 14.5px; line-height: 1.7; flex: 1; }
.service-card .card-link {
    margin-top: 24px;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold-light);
    text-decoration: none;
    border: 1px solid var(--accent-gold);
    border-radius: 999px;
    padding: 10px 22px;
    transition: background 0.25s, color 0.25s;
}
.service-card .card-link:hover { background: var(--accent-gold-light); color: #0a0a0a; }

/* ---------- impact counters + proof cards ---------- */
.impact-counters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(30px, 6vw, 84px);
    margin-bottom: 70px;
}
.impact-counter { text-align: center; }
.impact-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(40px, 6vw, 64px);
    color: var(--accent-gold-light);
    font-variant-numeric: tabular-nums;
}
.impact-label { display: block; color: var(--text-mid); font-size: 13px; margin-top: 8px; max-width: 180px; }
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
}
.proof-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-left: 2px solid var(--accent-gold);
    border-radius: 14px;
    padding: 32px 30px;
}
.proof-card h3 { font-size: 17px; margin-bottom: 12px; line-height: 1.45; }
.proof-card p { color: var(--text-mid); font-size: 14px; line-height: 1.7; }
.proof-card .proof-metric {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold-light);
    background: rgba(247, 222, 101, 0.08);
    border: 1px solid rgba(247, 222, 101, 0.25);
    border-radius: 999px;
    padding: 7px 16px;
}

/* ---------- hybrid bidding ---------- */
#pricing { background: linear-gradient(to bottom, #000, #04081a 25%, #04081a 75%, #000); }
.bid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.bid-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 36px 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bid-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
        rgba(29, 127, 255, 0.12), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.bid-card:hover::before { opacity: 1; }
.bid-num {
    position: absolute;
    top: -6px; right: 14px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 74px;
    color: rgba(29, 127, 255, 0.10);
    line-height: 1;
    pointer-events: none;
}
.bid-card h3 { font-size: 18px; margin-bottom: 4px; padding-right: 56px; }
.bid-model-tag {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 18px;
}
.bid-fit-badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold-light);
    background: rgba(247, 222, 101, 0.08);
    border: 1px solid rgba(247, 222, 101, 0.3);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.bid-card p { color: var(--text-mid); font-size: 13.5px; line-height: 1.7; margin-bottom: 14px; }
.bid-card p strong { color: var(--text-light); font-weight: 600; }
.bid-tradeoff {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed rgba(144, 161, 189, 0.3);
}
.bid-tradeoff strong { color: var(--accent-gold-light) !important; }
#hybrid-rail { margin-top: 90px; text-align: center; }
#hybrid-rail h3 { font-size: clamp(19px, 2.4vw, 26px); margin-bottom: 12px; }
#hybrid-rail .rail-lede { color: var(--text-mid); font-size: 14.5px; max-width: 720px; margin: 0 auto 56px; line-height: 1.7; }
.rail-wrap { position: relative; }
.rail-track {
    position: absolute;
    top: 27px; left: 12%; right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold-light), var(--bright-blue), var(--accent-gold-light));
    background-size: 200% 100%;
    animation: rail-flow 5s linear infinite;
    opacity: 0.55;
}
@keyframes rail-flow { to { background-position: -200% 0; } }
.rail-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.rail-orb {
    width: 54px; height: 54px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold-light);
    background: #04081a;
    color: var(--accent-gold-light);
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.rail-orb::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1.5px solid rgba(247, 222, 101, 0.45);
    animation: node-pulse 2.2s ease-out infinite;
}
@keyframes node-pulse {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.rail-phase:nth-child(2) .rail-orb::after { animation-delay: 0.7s; }
.rail-phase:nth-child(3) .rail-orb::after { animation-delay: 1.4s; }
.rail-phase h4 { font-size: 15px; margin-bottom: 10px; }
.rail-mode {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #04081a;
    background: var(--accent-gold-light);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 12px;
}
.rail-phase p { color: var(--text-mid); font-size: 13px; line-height: 1.65; max-width: 280px; margin: 0 auto; }
@media (max-width: 768px) {
    .rail-track { display: none; }
    .rail-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- testimonials ---------- */
#testimonials-title-wrap { position: relative; display: inline-block; padding: 10px 26px; }
.sparkle { position: absolute; pointer-events: none; animation: sparkle-pop 1s ease forwards; z-index: 2; }
@keyframes sparkle-pop {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(90deg); opacity: 1; }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
}
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
}
.testimonial-card .stars { color: var(--accent-gold-light); letter-spacing: 3px; font-size: 15px; }
.testimonial-card .verified {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-left: 10px;
}
.testimonial-card blockquote {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.65;
    flex: 1;
}
.testimonial-card .who { border-top: 1px solid var(--border-soft); padding-top: 16px; }
.testimonial-card .who .role { display: block; font-size: 13px; font-weight: 600; color: var(--text-light); }
.testimonial-card .who .org { display: block; font-size: 12px; color: var(--text-mid); margin-top: 3px; }

/* ---------- footer ---------- */
footer.site-footer {
    padding: 44px 24px 60px;
    text-align: center;
    color: var(--text-mid);
    font-size: 13px;
    line-height: 2;
    border-top: 1px solid var(--border-soft);
    position: relative;
    z-index: 1;
}
footer.site-footer .foot-brand {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-light);
    letter-spacing: 2px;
    font-size: 14px;
}
footer.site-footer .foot-links { margin-top: 6px; }
footer.site-footer .foot-links a {
    color: var(--text-mid);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}
footer.site-footer .foot-links a:hover { color: var(--accent-gold-light); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .bf, .gpanel-card { opacity: 1 !important; transform: none !important; filter: none !important; }
}
