:root {
    --bg-dark: #07090D;
    --bg-card: rgba(255, 255, 255, 0.02);
    --primary: #00d4ff;
    --accent: #ff4b4b;
    --text-main: #F0F6FC;
    --text-dim: #8B949E;
    --border: rgba(255, 255, 255, 0.08);
    --glow: rgba(0, 212, 255, 0.1);
    
    /* FOUNDATIONS */
    --section-gap: clamp(24px, 8vw, 100px);
    --cont-pad: clamp(1rem, 5vw, 2.5rem);
    --card-pad: clamp(1rem, 4vw, 3.5rem);
}

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

html, body {
    min-height: 100vh;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

body > footer {
    margin-top: auto;
}

h1, h2, h3, h4, .logo span {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--cont-pad);
}

/* RECURSIVE GRID */
.math-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
    opacity: 0.4;
}

/* SMART FLOW: THE SPINE */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
    z-index: -1;
    transform: translateX(-50%);
    opacity: 0.3;
}

/* GLOW ORBS */
.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    z-index: -2;
    filter: blur(80px);
    pointer-events: none;
}

#orb-1 { top: -200px; left: -200px; }
#orb-2 { bottom: -200px; right: -200px; opacity: 0.5; }

/* GLASS NAV */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(7, 9, 13, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px; /* Tightened from 1400px for better grouping */
    margin: 0 auto;
    padding: 0 var(--cont-pad);
}

.nav-col-left { flex: 1; display: flex; justify-content: flex-start; align-items: center; }
.nav-col-center { 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1005;
}
.nav-col-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    flex: 1; /* Anchors logo to left */
}

.badge-v {
    font-size: 0.65rem;
    background: var(--accent);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem; /* Use gap for cleaner spacing control */
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    padding: 6px 14px;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.mobile-nav-version {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 30px;
    margin-left: 2rem;
}

.mobile-nav-version span {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    border: 1px dashed var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.nav-stars-assembly {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1002;
}




/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

#menu-check {
    display: none;
}

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -300px;
        width: 300px; /* Fixed width side panel */
        height: calc(100vh - 70px);
        background: rgba(7, 9, 13, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border);
        border-top: 1px solid var(--border);
        flex: none;
        z-index: 2000;
        padding-top: 2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        margin: 1rem 2rem;
        width: 100%;
    }

    #menu-check:checked ~ .glass-nav .nav-links {
        right: 0;
        box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    }

    #menu-check:checked ~ .glass-nav .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #menu-check:checked ~ .glass-nav .menu-toggle span:nth-child(2) { opacity: 0; }
    #menu-check:checked ~ .glass-nav .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .mobile-nav-version { display: flex; }
}

/* HERO SECTION */
.hero {
    padding: clamp(140px, 15vh, 200px) 0 var(--section-gap);
    text-align: center;
}

/* For docs and changelog */
.hero-compact {
    padding: clamp(120px, 12vh, 160px) 0 40px;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.05);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid var(--primary);
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.35rem);
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.5;
}

/* PRODIGIOUS METRICS */
.prodigious-metrics {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 5rem;
}

.p-stat {
    text-align: center;
}

.p-stat label {
    display: block;
    font-size: 0.72rem; /* Bumped from 0.6rem for high-resolution legibility */
    color: var(--text-dim);
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.p-stat span {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.p-stat span small {
    font-size: 1rem;
    color: var(--text-dim);
    margin-left: 5px;
}

.p-stat.highlighting span {
    color: var(--primary);
}

.hero-tagline {
    margin-top: 3rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 2px;
    opacity: 0.5;
    text-transform: uppercase;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px var(--glow);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--primary);
}

.hero-tagline {
    margin-top: 2rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    opacity: 0.6;
}

/* TERMINAL LOADER - PRO MAX */
.terminal-loader {
    width: 100%;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    text-align: left;
}

.hero .terminal-loader {
    margin: 3rem auto 0;
    max-width: 400px;
}

.terminal-loader.cli-usage {
    max-width: 900px;
    margin: 2rem auto;
}

.t-top {
    background: rgba(255,255,255,0.03);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.t-dots {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.t-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF5F56;
}

.t-dots span:nth-child(2) { background: #FFBD2E; }
.t-dots span:nth-child(3) { background: #27C93F; }

.t-copy {
    margin-left: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    transition: all 0.2s;
    color: var(--text-dim);
    font-family: monospace;
    font-size: 0.65rem;
}

.t-copy:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--primary);
}

.t-copy.copied {
    color: #27C93F;
    border-color: rgba(39, 201, 63, 0.3);
}

.t-copy svg {
    width: 12px;
    height: 12px;
}

.t-title {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.t-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.t-pmp {
    color: var(--primary);
    margin-right: 8px;
    font-weight: 700;
}

.btn-pypi {
    background: rgba(0, 212, 255, 0.05);
    padding: 18px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pypi img {
    height: 18px;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
}

.btn-pypi:hover {
    transform: translateY(-2px);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* STRATEGIC NECESSITY - WHY CLAUDFORGE */
.why-section {
    padding: var(--section-gap) 0;
    position: relative;
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    transition: all 0.4s ease;
    border-top: 2px solid transparent;
}

.why-card:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.02);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.why-card .w-label {
    display: block;
    font-family: monospace;
    font-size: 0.75rem; /* Standardized to matching tag scale */
    color: var(--primary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

.why-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    font-family: 'Outfit', sans-serif;
}

.why-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

.why-card .metric {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.why-card .metric .m-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.why-card .metric .m-label {
    font-size: 0.72rem; /* Normalized with stat labels */
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* MASTER SUITE CARDS */
/* .master-suite {
    padding: var(--section-gap) 0;
} */

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.2rem); /* Increased scale for clearer hierarchy vs h3 */
    margin-bottom: 5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
}

.suite-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--card-pad);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.suite-card:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.03);
    transform: perspective(1000px) rotateX(2deg) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.s-math-icon.aligned {
    height: 80px;
    width: 80px;
    margin: 0 auto 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.01);
}

.s-math-icon.aligned svg {
    width: 100%;
    height: 100%;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wave-path {
    stroke-dasharray: 100;
    animation: wave-offset 2s linear infinite;
}

@keyframes wave-offset {
    to { stroke-dashoffset: 200; }
}

.suite-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.suite-card p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* TOOLBOX SECTION */
.toolbox-section {
    padding: var(--section-gap) 0;
}

.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2.5rem;
}

.toolbox-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s;
}

.toolbox-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.t-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.t-icon {
    width: 40px;
    height: 40px;
}

.t-icon svg {
    width: 100%;
    height: 100%;
}

.t-cmd {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.toolbox-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.toolbox-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* TERMINAL OUTPUT SNIPPETS */
.t-output {
    background: #000;
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.o-label {
    display: block;
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.o-line {
    display: block;
    color: var(--text-dim);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
}

.o-line.highlight {
    color: var(--primary);
}

.o-green {
    color: #2ea043;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

/* BLUEPRINT */
.blueprint-section {
    padding: 120px 0;
}

.blueprint-container {
    background: #000;
    border-radius: 24px;
    padding: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-path 3s ease forwards;
    animation-delay: 1s;
}

@keyframes draw-path {
    to { stroke-dashoffset: 0; }
}

.particle {
    filter: drop-shadow(0 0 5px var(--primary));
}

.math-overlay {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.4;
}

.math-labels .m-label {
    position: absolute;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0.3;
}

.blueprint-svg {
    width: 100%;
    height: auto;
}

/* TIMELINE */
/* .history-section {
    padding: var(--section-gap) 0;
} */

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    margin-bottom: 60px;
    padding-left: 40px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0px;
    top: 10px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.t-date {
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.t-content h3 {
    margin-bottom: 15px;
}

.t-content p {
    color: var(--text-dim);
}

/* ANIMATIONS */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* PREMIUM FOOTER */
.premium-footer {
    padding: 100px 0 0;
    background: #000;
    border-top: 1px solid var(--border);
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    padding-bottom: 80px;
}

.foot-col.main p {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 300px;
    margin-top: 1.5rem;
}

.foot-col h5 {
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.foot-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.foot-col a:hover {
    color: var(--primary);
}

.foot-bottom {
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.foot-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foot-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.foot-labels {
    display: flex;
    gap: 30px;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0.4;
}

/* GitHub Stars assembly - Unified Container */
.nav-stars-assembly {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    flex: 1; /* Anchors sign to right */
}

.stars-upper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 6px 12px;
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-stars-assembly:hover .stars-upper {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.mobile-github-stars svg {
    color: var(--primary);
}

.hanging-board {
    font-size: 0.6rem;
    font-family: monospace;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    /* Adding a slightly brighter top border to act as the mounting rail */
    border-top: 1px solid rgba(0, 212, 255, 0.4);
    padding: 3px 12px;
    margin-top: 15px; /* Increased margin for the peaked strings */
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    /* Combined animations: swing and glow/pulse */
    animation: 
        hang-swing 4s ease-in-out infinite alternate,
        board-pulse 2s ease-in-out infinite alternate;
    transform-origin: 50% -15px; /* Pivot from the top point where strings meet */
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
    position: relative;
    white-space: nowrap;
}

/* Peak Strings (meeting at a single point) */
.hanging-board::before,
.hanging-board::after {
    content: '';
    position: absolute;
    top: -15px; /* Meet 15px above the board */
    height: 18px; /* Slightly longer than the gap to reach corners */
    width: 1px;
    background: linear-gradient(to bottom, var(--primary), rgba(0, 212, 255, 0.3));
    box-shadow: 0 0 8px var(--primary);
    transform-origin: top center;
}

.hanging-board::before {
    left: 50%;
    transform: rotate(35deg); /* Angle to reach left edge */
}

.hanging-board::after {
    left: 50%;
    transform: rotate(-35deg); /* Angle to reach right edge */
}

@keyframes hang-swing {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

@keyframes board-pulse {
    0% { 
        box-shadow: 0 4px 10px rgba(0, 212, 255, 0.1);
        border-color: rgba(0, 212, 255, 0.2);
    }
    100% { 
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
        border-color: rgba(0, 212, 255, 0.5);
    }
}

/* CLI REFERENCE SECTION */
.cli-reference {
    padding: var(--section-gap) 0;
    background: rgba(var(--primary-rgb), 0.02);
}

.cli-usage {
    margin: 2.5rem auto;
    max-width: 680px;
}

.cli-usage .t-body {
    padding: 1.5rem 2rem;
}


.cli-usage code {
    font-size: 1.1rem;
    color: var(--text-main);
}

.cli-usage .highlight {
    color: var(--primary);
    font-weight: 700;
}

.options-container {
    margin-top: 2.5rem;
}

.subsection-title {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.3) 0%, transparent 80%);
}

.option-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: rgba(0, 212, 255, 0.02);
}

.opt-tag {
    display: inline-block;
    color: var(--primary);
    font-family: monospace;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

/* BLUEPRINT CARDS - THE INDUSTRIAL STANDARD */
.blueprint-card {
    position: relative;
    background: rgba(0, 212, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: var(--section-gap);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px; /* Inner schematic grid */
}

.blueprint-card::before,
.blueprint-card::after {
    content: attr(data-coord);
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--primary);
    opacity: 0.3;
    pointer-events: none;
}

.blueprint-card::before { top: 15px; left: 20px; }
.blueprint-card::after { bottom: 15px; right: 20px; }

.blueprint-card:hover {
    border-color: var(--primary);
    background-color: rgba(0, 212, 255, 0.03);
    transform: perspective(1200px) rotateX(2deg) translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.blueprint-card .tag-row {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blueprint-card .tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
}

.tag.required { color: var(--accent); border-color: rgba(255, 75, 75, 0.2); }
.tag.optional { color: var(--primary); border-color: rgba(0, 212, 255, 0.2); }

.blueprint-card h3 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.blueprint-card p {
    color: var(--text-dim);
    max-width: 90%;
    margin-bottom: 2.5rem;
}

@media (max-width: 1200px) {
    /* No-op navigation rules removed per user request */
}


@media (max-width: 768px) {
    
    .prodigious-metrics { flex-direction: column; gap: 40px; }
    
    .foot-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center;
    }
    
    .foot-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .foot-col .logo { justify-content: center; }
    
    .foot-bottom .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .glass-nav { height: 60px; }
    .nav-links { top: 60px; height: calc(100vh - 60px); }
    .nav-flex { padding: 0 1rem; }
    .logo { gap: 8px; }
    .logo span { 
        font-size: 1rem; 
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .logo .badge-v { 
        font-size: 0.6rem; 
        align-self: flex-start;
        padding: 2px 4px;
    }
    
    .nav-stars-assembly {
        transform: scale(0.85);
        transform-origin: right center;
    }

    .hero { 
        padding-top: 100px; 
    }
    
    .hero-badge { margin-bottom: 2rem; }

    .hero-btns { 
        flex-direction: column; 
        gap: 1.2rem; 
        align-items: center; 
    }
    .btn { 
        width: 100%; 
        max-width: 320px;
        text-align: center; 
        justify-content: center;
    }
    .prodigious-metrics { gap: 30px; }
    
    .suite-card { 
        padding: 24px; 
        display: grid; 
        grid-template-columns: 45px 1fr; 
        align-items: center; 
        gap: 1.5rem; 
    }
    .active-milestone {
        display: block;
        text-align: center;
    }
    .s-math-icon.aligned { 
        margin: 0; 
        width: 45px; 
        height: 45px; 
        padding: 8px; 
        border-radius: 12px;
    }
    .suite-card h4 { margin: 0; font-size: 1.1rem; }
    .suite-card p { grid-column: 1 / span 2; font-size: 0.9rem; margin-top: 0.5rem; }

    .blueprint-container { padding: 40px 20px; }
}

@media (max-width: 992px) {
    .menu-toggle { display: flex !important; }
}

@media (max-width: 768px) {
    .nav-stars-assembly { 
        transform: scale(0.65); 
    }
}
