/* ==========================================================================
   1. Global Variables & Reset
   ========================================================================== */
:root {
    --c-accent: #FF4A4A;
    --c-dark: #0A0A0A;
    --c-gray-dark: #222222;
    --c-text: #7A7A7A;
    --c-bg: #FAFAFA;
    --c-surface: #F0F0F0;

    --f-main: 'Helvetica Neue', Helvetica, 'Inter', "PingFang SC", sans-serif;
    --f-display: 'Impact', 'Arial Black', "PingFang SC", sans-serif;

    --ease: cubic-bezier(0.25, 1, 0.05, 1);
    --container: 1300px;
}

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

::selection { background-color: var(--c-accent); color: white; }

body {
    font-family: var(--f-main);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html { overflow-x: hidden; }

a { text-decoration: none; color: inherit; transition: all 0.4s var(--ease); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5vw;
}

/* Basic decorators */
.line-x { width: 100%; height: 1px; background: rgba(0,0,0,0.08); }
.line-y { width: 1px; height: 100%; background: rgba(0,0,0,0.08); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    z-index: 1;
}

.btn-red { background: var(--c-accent); color: white; }
.btn-red::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--c-dark); transform: translateX(-100%); transition: transform 0.6s var(--ease);
    z-index: -1;
}
.btn-red:hover::before { transform: translateX(0); }

.btn-outline { border-color: var(--c-dark); color: var(--c-dark); }
.btn-outline:hover { background: var(--c-dark); color: white; }

.tag-txt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--c-accent);
    display: block;
}

/* ==========================================================================
   2. Frame Borders & Header
   ========================================================================== */
.frame-borders {
    position: fixed;
    top: 2vw; left: 2vw; right: 2vw; bottom: 2vw;
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.04);
    z-index: 999;
}

.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 40px 0;
    z-index: 100;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.scrolled {
    padding: 18px 0;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--c-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover { color: var(--c-accent); }

.lang-toggle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--c-text);
    cursor: pointer;
}
.lang-toggle:hover { color: var(--c-dark); }

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 15vh;
    left: -2vw;
    font-family: var(--f-display);
    font-size: 24vw;
    line-height: 0.75;
    color: rgba(0,0,0,0.02);
    white-space: nowrap;
    user-select: none;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 40px;
    align-items: center;
}

.hero-text-area {
    padding-left: 0;
}

.hero-title {
    font-size: 5vw;
    font-weight: 900;
    color: var(--c-dark);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 40px;
    position: relative;
    mix-blend-mode: difference;
}

.hero-title span { display: block; }
.hero-title .text-red {
    color: var(--c-accent);
    font-family: var(--f-display);
    font-size: 6vw;
    letter-spacing: -4px;
}

.hero-desc {
    font-size: 15px;
    max-width: 380px;
    margin-bottom: 50px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-actions { display: flex; gap: 20px; align-items: center; }

.hero-visual {
    position: relative;
    height: 75vh;
    width: 120%;
}

.hero-img-wrap {
    position: absolute;
    top: 10%; right: 5vw;
    width: 85%; height: 80%;
    background: var(--c-surface);
    overflow: hidden;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.05);
}

.hero-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.8;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}
.hero:hover .hero-img-wrap img { transform: scale(1); }

.hero-decor-box {
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 180px;
    height: 180px;
    background: var(--c-accent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    font-family: var(--f-display);
    font-size: 40px;
    line-height: 1;
    z-index: 3;
}
.hero-decor-box span { font-size: 12px; font-family: var(--f-main); position: absolute; top: 20px; left: 20px; letter-spacing: 2px;}

/* ==========================================================================
   4. Core Features Section
   ========================================================================== */
.section-features {
    padding: 150px 0;
    position: relative;
}

.feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 200px;
    position: relative;
}
.feature-block:last-child { margin-bottom: 0; }

.feature-block.reverse { flex-direction: row-reverse; }

.fb-images {
    width: 50%;
    position: relative;
}

.fb-img-main {
    width: 80%;
    height: 600px;
    background: var(--c-surface);
    position: relative;
    z-index: 1;
}
.fb-img-main img { width:100%; height:100%; object-fit: cover; filter: grayscale(100%); }

.fb-img-sub {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 50%;
    height: 350px;
    background: var(--c-dark);
    z-index: 2;
    border: 15px solid var(--c-bg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.fb-img-sub img { width:100%; height:100%; object-fit: cover; opacity: 0.6; mix-blend-mode: luminosity; }
.reverse .fb-img-sub { right: auto; left: 0; }

.fb-content {
    width: 40%;
    position: relative;
    z-index: 3;
}

.fb-text-box {
    background: var(--c-white);
    padding: 60px 0 60px 40px;
    position: relative;
    left: -15%;
}
.reverse .fb-text-box { left: auto; right: -15%; padding: 60px 40px 60px 0; }

.fb-number {
    font-family: var(--f-display);
    font-size: 120px;
    color: var(--c-surface);
    line-height: 0.8;
    margin-bottom: 20px;
    letter-spacing: -5px;
}

.fb-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.fb-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ==========================================================================
   5. Stats Section
   ========================================================================== */
.section-stats {
    padding: 100px 0 180px;
    position: relative;
    background: var(--c-dark);
    color: white;
    overflow: hidden;
}

.stats-bg-word {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--f-display);
    font-size: 35vw;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
}

.stats-scattered-grid {
    position: relative;
    z-index: 2;
    height: 500px;
}

.stat-node {
    position: absolute;
    max-width: 250px;
}

.stat-node:nth-child(1) { top: 10%; left: 10%; }
.stat-node:nth-child(2) { top: 40%; left: 40%; }
.stat-node:nth-child(3) { top: 15%; right: 15%; text-align: right; }
.stat-node:nth-child(4) { bottom: 0%; right: 30%; }

.stat-val {
    font-family: var(--f-display);
    font-size: 80px;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.stat-node:nth-child(3) .stat-val { justify-content: flex-end; }

.stat-val span.text-red { font-size: 40px; }

.stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    display: inline-block;
}

/* ==========================================================================
   6. Downloads Section
   ========================================================================== */
.section-downloads {
    padding: 180px 0;
    background: var(--c-bg);
    position: relative;
}

.dl-header {
    text-align: center;
    margin-bottom: 100px;
}
.dl-title { font-size: 48px; font-weight: 900; color: var(--c-dark); letter-spacing: -1px;}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    align-items: start;
}

.dl-card {
    background: white;
    padding: 50px 40px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.5s var(--ease);
    cursor: pointer;
    position: relative;
}

.dl-card:hover {
    background: var(--c-dark);
    border-color: var(--c-dark);
    transform: translateY(-10px);
}

.dl-card:hover .dl-name, .dl-card:hover .dl-desc { color: white; }
.dl-card:hover .dl-icon svg { color: var(--c-accent); stroke: var(--c-accent); fill: none; }

.dl-card:nth-child(1) { grid-column: 1 / 5; margin-top: 80px; }
.dl-card:nth-child(2) { grid-column: 5 / 10; padding: 70px 50px; background: var(--c-surface); }
.dl-card:nth-child(3) { grid-column: 10 / 13; margin-top: 40px; }
.dl-card:nth-child(4) { grid-column: 3 / 7; margin-top: -40px; z-index: 2; }
.dl-card:nth-child(5) { grid-column: 8 / 12; margin-top: 60px; }

.dl-card:nth-child(2):hover { background: var(--c-dark); border-color: var(--c-dark); }

.dl-icon { margin-bottom: 30px; }
.dl-icon svg { width: 48px; height: 48px; color: var(--c-dark); transition: all 0.4s ease; }

.dl-name { font-size: 20px; font-weight: 800; color: var(--c-dark); margin-bottom: 10px; transition: color 0.4s; }
.dl-desc { font-size: 13px; color: #888; transition: color 0.4s; line-height: 1.7; }

.dl-tag {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 10px; font-weight: 800; background: var(--c-accent); color: white;
    padding: 4px 10px; letter-spacing: 1px;
}

/* ==========================================================================
   7. Marquee / Rule Engine Section
   ========================================================================== */
.section-marquee {
    background: var(--c-dark);
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    color: white;
}
.marquee-wrap {
    display: flex;
    width: fit-content;
    animation: marquee 20s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.marquee-text {
    font-family: var(--f-display);
    font-size: 12vw;
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    padding-right: 50px;
}
.marquee-text span.solid { color: var(--c-accent); -webkit-text-stroke: 0; }

.marquee-section-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.marquee-overlay-text {
    max-width: 440px;
    pointer-events: all;
}
.marquee-overlay-text h3 { font-size: 36px; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.marquee-overlay-text p { color: #aaa; font-size: 14px; line-height: 1.8; }

/* ==========================================================================
   8. Dashboard & API Showcase Section
   ========================================================================== */
.section-dashboard {
    padding: 180px 0;
    position: relative;
}
.dash-grid {
    display: grid;
    grid-template-columns: 3fr 4fr;
    gap: 100px;
    align-items: center;
}
.dash-ui-mockup {
    position: relative;
    height: 600px;
    background: #111111;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 40px;
}
.dash-ui-mockup::before {
    content: ''; position: absolute; top: 15px; left: -15px;
    width: 100%; height: 100%; background: var(--c-dark); z-index: -1;
}
.mock-line { height: 1px; background: rgba(0,0,0,0.1); margin-bottom: 30px; }
.mock-block { height: 80px; background: white; margin-bottom: 20px; border: 1px solid rgba(0,0,0,0.05); }
.mock-block.dark { background: var(--c-dark); height: 120px; }

.dash-title { font-size: 5vw; font-weight: 900; line-height: 1; letter-spacing: -2px; margin-bottom: 30px; color: var(--c-dark); }
.dash-title span { color: transparent; -webkit-text-stroke: 1px var(--c-dark); }

/* ==========================================================================
   9. FAQ Section
   ========================================================================== */
.section-faq {
    padding: 100px 0 150px;
}
.faq-title-wrap { margin-bottom: 80px; }
.faq-title { font-family: var(--f-display); font-size: 100px; color: var(--c-surface); line-height: 0.8; letter-spacing: -3px; }
.faq-subtitle { font-size: 24px; font-weight: 800; color: var(--c-dark); margin-top: -20px; position: relative; z-index: 2; padding-left: 5px;}

.faq-list { border-top: 2px solid var(--c-dark); }
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 40px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.faq-item:hover { padding-left: 20px; background: white; }
.faq-q { font-size: 20px; font-weight: 800; color: var(--c-dark); display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 30px; font-weight: 300; transition: transform 0.4s var(--ease); flex-shrink: 0; margin-left: 20px; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--c-accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); color: #666; font-size: 14px; max-width: 700px; line-height: 1.85; }
.faq-item.active .faq-a { max-height: 300px; padding-top: 20px; }

/* ==========================================================================
   10. Big CTA Section
   ========================================================================== */
.section-big-cta {
    background: var(--c-accent);
    padding: 150px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.big-cta-title { font-family: var(--f-display); font-size: 12vw; line-height: 0.8; color: var(--c-dark); margin-bottom: 40px; position: relative; z-index: 2; }
.section-big-cta .btn-outline { border-color: var(--c-dark); color: var(--c-dark); background: transparent; }
.section-big-cta .btn-outline:hover { background: var(--c-dark); color: white; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.footer {
    background: var(--c-bg);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.footer-huge-logo {
    font-family: var(--f-display);
    font-size: 12vw;
    line-height: 0.8;
    color: var(--c-dark);
    letter-spacing: -5px;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
}
.fl-col h6 { font-size: 11px; color: #999; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 25px; }
.fl-col ul li { margin-bottom: 15px; }
.fl-col a { font-size: 14px; font-weight: 600; color: var(--c-dark); }
.fl-col a:hover { color: var(--c-accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 30px;
    font-size: 12px;
    color: #999;
}

/* ==========================================================================
   12. Feature Sub-Card (Rule Log UI)
   ========================================================================== */
.fb-sub-card {
    width: 100%; height: 100%;
    padding: 28px 24px;
    display: flex; flex-direction: column;
}
.fsc-label {
    font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-bottom: 18px;
}
.fsc-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px; color: rgba(255,255,255,0.6);
    font-family: 'Courier New', monospace;
}
.fsc-item:last-child { border-bottom: none; }
.fsc-badge {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px;
}
.fsc-badge.proxy  { color: var(--c-accent); background: rgba(255,74,74,0.12); }
.fsc-badge.direct { color: rgba(255,255,255,0.3); }
.fsc-badge.reject { color: #ff9090; background: rgba(255,100,100,0.1); }
.fsc-badge.ok     { color: rgba(100,220,140,0.9); }
.fsc-divider { flex: 1; }

/* ==========================================================================
   13. Dashboard Mockup UI
   ========================================================================== */
.mock-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 18px;
}
.mock-nav-dots { display: flex; gap: 6px; }
.mock-nav-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.mock-nav-dot.red { background: var(--c-accent); }
.mock-nav-title { font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.35); }
.mock-status-badge { font-size: 9px; background: rgba(80,210,120,0.12); color: rgba(80,210,120,0.85); padding: 3px 8px; letter-spacing: 1px; }

.mock-stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mock-stat-card { background: rgba(255,255,255,0.04); padding: 12px 14px; border: 1px solid rgba(255,255,255,0.05); }
.mock-stat-lbl { font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,0.28); margin-bottom: 6px; }
.mock-stat-val { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.8); font-family: var(--f-display); letter-spacing: -1px; }
.mock-stat-val.accent { color: var(--c-accent); }
.mock-stat-val.green  { color: rgba(80,210,120,0.9); }

.mock-node-hd { font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,0.22); margin-bottom: 8px; }
.mock-node-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 11px; color: rgba(255,255,255,0.55); }
.mock-node-item:last-child { border-bottom: none; }
.mock-node-name { display: flex; align-items: center; gap: 7px; }
.mock-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.mock-dot.g { background: rgba(80,210,120,0.9); }
.mock-dot.y { background: #FFA94D; }
.mock-ms { font-size: 10px; font-family: 'Courier New', monospace; }
.mock-ms.f { color: rgba(80,210,120,0.8); }
.mock-ms.m { color: #FFA94D; }

.mock-log { background: rgba(0,0,0,0.25); padding: 12px 14px; margin-top: 2px; }
.mock-log-hd { font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,0.22); margin-bottom: 9px; }
.mock-log-line { font-size: 10px; font-family: 'Courier New', monospace; color: rgba(255,255,255,0.38); margin-bottom: 5px; line-height: 1.6; }
.mock-log-line b { color: var(--c-accent); font-weight: 400; }
.mock-log-line b.ok { color: rgba(80,210,120,0.8); }
.mock-log-line b.rej { color: #ff9090; }

/* ==========================================================================
   14. How-To (Quick Start) Section
   ========================================================================== */
.section-howto {
    padding: 150px 0;
    background: var(--c-surface);
    position: relative;
    overflow: hidden;
}
.howto-header {
    max-width: 640px;
    margin: 0 auto 100px;
    text-align: center;
}
.howto-main-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--c-dark);
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    line-height: 1.1;
}
.howto-subtitle {
    font-size: 15px;
    color: #888;
    line-height: 1.8;
}
.howto-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}
.howto-steps::before {
    content: '';
    position: absolute;
    top: 59px;
    left: calc(16.66% + 15px);
    right: calc(16.66% + 15px);
    height: 1px;
    background: rgba(0,0,0,0.15);
    z-index: 0;
}
.howto-step {
    padding: 0 40px 0 0;
    position: relative;
    z-index: 1;
}
.howto-step:last-child { padding-right: 0; }
.howto-step-num {
    width: 120px; height: 120px;
    background: var(--c-surface);
    border: 2px solid var(--c-dark);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display);
    font-size: 42px;
    color: var(--c-dark);
    margin-bottom: 40px;
    transition: all 0.4s var(--ease);
}
.howto-step:hover .howto-step-num {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: white;
}
.howto-step-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.howto-step-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.85;
}
.howto-step-link {
    display: inline-block;
    margin-top: 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-accent);
    border-bottom: 1px solid var(--c-accent);
    padding-bottom: 3px;
}
.howto-step-link:hover { opacity: 0.7; }

/* ==========================================================================
   15. Use Cases Section
   ========================================================================== */
.section-usecases {
    padding: 150px 0;
    background: var(--c-dark);
    color: white;
    position: relative;
    overflow: hidden;
}
.usecases-header {
    margin-bottom: 80px;
}
.usecases-main-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    letter-spacing: -1.5px;
    margin-top: 15px;
    line-height: 1.2;
}
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.05);
}
.usecase-card {
    padding: 60px 50px;
    background: var(--c-dark);
    transition: background 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.usecase-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--c-accent);
    transition: width 0.5s var(--ease);
}
.usecase-card:hover::after { width: 100%; }
.usecase-card:hover { background: rgba(255,255,255,0.03); }
.usecase-bg-num {
    font-family: var(--f-display);
    font-size: 100px;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    margin-bottom: -20px;
    letter-spacing: -5px;
}
.usecase-icon {
    width: 44px; height: 44px;
    color: var(--c-accent);
    margin-bottom: 25px;
    display: block;
}
.usecase-icon svg { width: 100%; height: 100%; }
.usecase-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.usecase-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.85;
    margin-bottom: 25px;
}
.usecase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.usecase-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}

/* ==========================================================================
   16. Open Source Ecosystem Section
   ========================================================================== */
.section-ecosystem {
    padding: 150px 0;
    background: var(--c-bg);
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
}
.eco-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 100px;
    align-items: start;
}
.eco-main-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--c-dark);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 25px;
}
.eco-intro-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.85;
    margin-bottom: 40px;
}
.eco-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(0,0,0,0.04);
    margin-bottom: 50px;
}
.eco-stat-item {
    background: var(--c-bg);
    padding: 28px 20px;
    text-align: center;
}
.eco-stat-num {
    font-family: var(--f-display);
    font-size: 44px;
    color: var(--c-dark);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 8px;
}
.eco-stat-num .red { color: var(--c-accent); }
.eco-stat-label {
    font-size: 10px;
    color: #aaa;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.eco-tools-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 20px;
}
.eco-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.eco-tool-tag {
    padding: 9px 18px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 12px;
    font-weight: 600;
    color: var(--c-dark);
    transition: all 0.3s var(--ease);
    cursor: default;
}
.eco-tool-tag:hover {
    background: var(--c-dark);
    color: white;
    border-color: var(--c-dark);
}
.eco-rules-section { }
.eco-rule-card {
    border: 1px solid rgba(0,0,0,0.07);
    padding: 32px 36px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.4s var(--ease);
    background: white;
    overflow: hidden;
}
.eco-rule-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--c-accent);
    transform: scaleY(0);
    transition: transform 0.4s var(--ease);
}
.eco-rule-card:hover { transform: translateX(8px); border-color: rgba(255,74,74,0.2); }
.eco-rule-card:hover::before { transform: scaleY(1); }
.eco-rule-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 6px;
}
.eco-rule-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}
.eco-rule-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 14px;
}
.eco-rule-tag {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--c-accent);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255,74,74,0.2);
    padding: 3px 8px;
}
.eco-rule-stars {
    font-size: 11px;
    color: #bbb;
}

/* ==========================================================================
   17. Responsive — Mobile Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .hero { padding-top: 80px; }
    .hero-content { grid-template-columns: 1fr; gap: 0; padding-top: 100px;}
    .hero-title { font-size: 8vw; mix-blend-mode: normal; }
    .hero-title .text-red { font-size: 9.5vw; }
    .hero-visual { height: 50vh; width: 100%; margin-top: 40px;}
    .hero-img-wrap { width: 100%; height: 100%; position: relative; }
    .hero-decor-box { bottom: -20px; left: 20px; width: 120px; height: 120px; font-size: 24px;}

    .feature-block, .feature-block.reverse { flex-direction: column; margin-bottom: 100px; }
    .fb-images, .fb-content { width: 100%; }
    .fb-text-box, .reverse .fb-text-box { left: 0; right: 0; padding: 40px 0; background: transparent;}
    .fb-img-sub { right: 20px; bottom: -30px; border-width: 8px;}

    .stats-scattered-grid { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: static;}
    .stat-node { position: static; max-width: none; text-align: left !important; }
    .stat-node:nth-child(3) .stat-val { justify-content: flex-start; }

    .masonry-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .dl-card:nth-child(n) { grid-column: span 1; margin: 0; padding: 40px 30px;}

    .dash-grid { grid-template-columns: 1fr; gap: 60px; }
    .dash-title { font-size: 12vw; }
    .dash-ui-mockup { height: 400px; }
    .marquee-text { font-size: 20vw; }
    .marquee-section-overlay { position: relative; height: auto; }
    .marquee-overlay-text { padding: 40px 0; background: rgba(10,10,10,0.8); }
    .section-marquee { padding: 60px 0 0; }
    .faq-title { font-size: 60px; }

    .footer-top { flex-direction: column; align-items: flex-start; gap: 50px; }
    .frame-borders { display: none; }
    .nav-links { display: none; }

    /* Tighten header spacing on mobile */
    .header { padding: 20px 0; }
    .header.scrolled { padding: 14px 0; }
    .nav-wrap { gap: 16px; }

    /* How-To mobile */
    .howto-steps { grid-template-columns: 1fr; gap: 50px; }
    .howto-steps::before { display: none; }
    .howto-step { padding-right: 0; }
    .howto-step-num { width: 80px; height: 80px; font-size: 30px; margin-bottom: 25px; }

    /* Use Cases mobile */
    .usecase-grid { grid-template-columns: 1fr; }
    .usecase-card { padding: 40px 30px; }

    /* Ecosystem mobile */
    .eco-grid-layout { grid-template-columns: 1fr; gap: 60px; }
    .eco-stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .masonry-grid { grid-template-columns: 1fr; }
    .stats-scattered-grid { grid-template-columns: 1fr; }
    .footer-links-grid { flex-direction: column; gap: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-bg-text { display: none; }
    .howto-main-title { font-size: 32px; }
    .eco-stats-row { grid-template-columns: 1fr; }
    .eco-main-title { font-size: 32px; }
    .usecases-main-title { font-size: 32px; }
}
