:root {
    --cw-yellow: #fcd116;
    --cw-blue: #348fe2;
    --cw-blue-dark: #2a72b5;
    --cw-red: #ce1126;
    --cw-ink: #0b1220;
    --cw-navy: #101827;
    --cw-bg: #f6f7fb;
    --cw-surface: #fff;
    --cw-text: #172033;
    --cw-muted: #64748b;
    --cw-border: #d8dee9;
    --cw-radius: 14px;
    --cw-radius-lg: 20px;
    --cw-shadow: 0 18px 48px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--cw-text);
    background: var(--cw-bg);
    font-family: "Open Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
}
body::before {
    content: "";
    position: fixed;
    z-index: 100;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cw-yellow) 0 50%, var(--cw-blue) 50% 75%, var(--cw-red) 75%);
}
img { max-width: 100%; }
a { color: inherit; }
.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    height: 78px;
    padding: 4px clamp(20px, 5vw, 76px) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: rgba(11, 18, 32, .91);
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 196px; height: auto; }
#main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
#main-nav a { position: relative; text-decoration: none; font-size: 13px; font-weight: 700; }
#main-nav a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -8px;
    height: 2px;
    background: var(--cw-yellow);
    transition: right .18s ease;
}
#main-nav a:not(.button):hover::after { right: 0; }
.nav-login { margin-left: 10px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.nav-toggle { display: none; color: white; border: 0; background: none; font-weight: 800; }
.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    color: #07111d;
    background: var(--cw-yellow);
    box-shadow: 0 9px 24px rgba(252, 209, 22, .24);
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); background: #ffe04f; box-shadow: 0 13px 28px rgba(252, 209, 22, .3); }
.button-small { min-height: 39px; padding: 0 17px; border-radius: 11px; font-size: 12px; }
.button-block { width: 100%; }
.text-link { color: var(--cw-blue); font-weight: 800; text-decoration: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--cw-blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.eyebrow i { display: inline-block; width: 24px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cw-yellow) 50%, var(--cw-blue) 50% 75%, var(--cw-red) 75%); }

.hero {
    position: relative;
    min-height: 790px;
    padding: clamp(84px, 9vw, 145px) clamp(20px, 6vw, 96px);
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(45px, 7vw, 110px);
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--cw-navy) url("brand/network-bg.svg") center/cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    background: linear-gradient(transparent, rgba(7, 13, 23, .72));
    pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
    max-width: 750px;
    margin: 20px 0 28px;
    font-size: clamp(50px, 6.2vw, 94px);
    line-height: .98;
    letter-spacing: -.065em;
}
.hero h1 mark { color: var(--cw-yellow); background: none; }
.hero-copy > p { max-width: 670px; margin: 0; color: #c5cfdd; font-size: clamp(17px, 1.6vw, 22px); }
.hero-actions { margin: 36px 0; display: flex; align-items: center; gap: 27px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #91a0b5; font-size: 12px; }
.hero-proof b { color: white; }
.hero-product { position: relative; z-index: 2; }
.product-window {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--cw-radius-lg);
    background: #fff;
    box-shadow: 0 35px 90px rgba(0,0,0,.38), 0 0 0 8px rgba(255,255,255,.04);
    transform: perspective(1400px) rotateY(-5deg) rotateX(1deg);
}
.product-window__bar { height: 42px; padding: 0 15px; display: flex; align-items: center; gap: 7px; color: #7a8798; background: #f2f4f7; font-size: 10px; }
.product-window__bar span, .terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--cw-red); }
.product-window__bar span:nth-child(2), .terminal-bar span:nth-child(2) { background: var(--cw-yellow); }
.product-window__bar span:nth-child(3), .terminal-bar span:nth-child(3) { background: #42ba7b; }
.product-window__bar b { margin-left: 7px; }
.product-window > img { width: 100%; min-height: 360px; display: block; object-fit: cover; object-position: top; background: #edf1f7; }
.hero-float {
    position: absolute;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 12px;
    color: white;
    background: rgba(11,18,32,.88);
    backdrop-filter: blur(12px);
    box-shadow: var(--cw-shadow);
    font-size: 11px;
}
.hero-float strong { font-size: 14px; }
.hero-float--yellow { left: -28px; bottom: 46px; border-left: 4px solid var(--cw-yellow); }
.hero-float--blue { right: -25px; top: 65px; border-left: 4px solid var(--cw-blue); }
.tricolor-strip { height: 56px; display: flex; align-items: center; overflow: hidden; color: white; background: var(--cw-ink); border-top: 4px solid transparent; border-image: linear-gradient(90deg,var(--cw-yellow) 50%,var(--cw-blue) 50% 75%,var(--cw-red) 75%) 1; }
.tricolor-strip div { width: 100%; padding: 0 clamp(20px, 6vw, 96px); display: flex; justify-content: space-between; gap: 28px; white-space: nowrap; color: #aeb9c8; font-size: 10px; font-weight: 800; letter-spacing: .1em; }

.section { padding: clamp(82px, 10vw, 150px) clamp(20px, 7vw, 112px); }
.section-heading { max-width: 880px; margin-bottom: 55px; }
.section-heading h2, .install-section h2, .final-cta h2 {
    margin: 16px 0 20px;
    color: var(--cw-ink);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.055em;
}
.section-heading p { max-width: 740px; color: var(--cw-muted); font-size: 18px; }
.intro-section { background: white; }
.product-shot { overflow: hidden; border: 1px solid var(--cw-border); border-radius: var(--cw-radius-lg); background: var(--cw-bg); box-shadow: var(--cw-shadow); }
.product-shot--wide { display: grid; grid-template-columns: 1.45fr .75fr; align-items: stretch; }
.product-shot img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; object-position: top; background: #e8edf4; }
.product-shot > div { padding: clamp(30px, 4vw, 58px); display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--cw-yellow); }
.product-shot > div > span { color: var(--cw-blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.product-shot h3 { margin: 13px 0; font-size: 32px; line-height: 1.1; letter-spacing: -.035em; }
.product-shot p { color: var(--cw-muted); }
.product-shot a { color: var(--cw-blue-dark); font-weight: 800; text-decoration: none; }

.modules-section { background: var(--cw-bg); }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--cw-border); border-left: 1px solid var(--cw-border); }
.module-grid article { min-height: 290px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--cw-border); border-bottom: 1px solid var(--cw-border); background: rgba(255,255,255,.68); transition: transform .18s, box-shadow .18s; }
.module-grid article:hover { z-index: 2; transform: translateY(-4px); box-shadow: var(--cw-shadow); background: white; }
.module-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--cw-ink); background: var(--cw-yellow); font-size: 12px; font-weight: 900; }
.module-grid article:nth-child(3n+2) .module-icon { color: white; background: var(--cw-blue); }
.module-grid article:nth-child(3n) .module-icon { color: white; background: var(--cw-red); }
.module-grid h3 { margin: auto 0 7px; font-size: 22px; letter-spacing: -.03em; }
.module-grid p { margin: 0 0 16px; color: var(--cw-muted); font-size: 14px; }
.module-grid a { color: var(--cw-blue-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.module-guide { color: white; background: var(--cw-ink) url("brand/network-bg.svg") center/cover !important; }
.module-guide > span { color: var(--cw-yellow); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.module-guide h3 { font-size: 27px; }
.module-guide p { color: #b5c1d0; }
.module-guide .button { align-self: flex-start; color: var(--cw-ink); }

.real-ui-section { color: white; background: var(--cw-ink) url("brand/network-bg.svg") center/cover fixed; }
.section-heading--light h2 { color: white; }
.section-heading--light p { color: #b2bdcc; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.screenshot-card { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: #111b2a; box-shadow: 0 25px 55px rgba(0,0,0,.24); }
.screenshot-card--large, .screenshot-card--wide { grid-column: span 2; }
.screenshot-card img { width: 100%; height: 350px; display: block; object-fit: cover; object-position: top; background: #e9edf3; }
.screenshot-card--large img { height: 590px; }
.screenshot-card--wide img { height: 470px; }
.screenshot-card figcaption { padding: 17px 21px; display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--cw-yellow); }
.screenshot-card figcaption span { color: #8f9db0; font-size: 12px; }

.install-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; background: #fff; }
.install-section > div:first-child > p { max-width: 560px; color: var(--cw-muted); font-size: 18px; }
.terminal-box { position: relative; margin: 28px 0; overflow: hidden; border: 1px solid #26364b; border-radius: 14px; color: #dce7f5; background: #0b1220; box-shadow: 0 18px 45px rgba(11,18,32,.22); }
.terminal-bar { height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 7px; color: #7e8da1; background: #121d2c; font-size: 10px; }
.terminal-bar b { margin-left: 8px; }
.terminal-box code { padding: 24px; display: block; overflow-x: auto; color: #edf5ff; font: 14px/1.7 "JetBrains Mono", Consolas, monospace; white-space: nowrap; }
.terminal-box code span { color: var(--cw-yellow); }
.terminal-box button { position: absolute; right: 13px; top: 53px; padding: 7px 10px; border: 1px solid #3b4a5e; border-radius: 7px; color: #cbd5e2; background: #172336; cursor: pointer; font-size: 10px; font-weight: 700; }
.terminal-box small { padding: 0 24px 20px; display: block; color: #758399; }
.terminal-box--hero { margin: 0; }

.pricing-section { background: var(--cw-bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card { position: relative; padding: 29px; display: flex; flex-direction: column; border: 1px solid var(--cw-border); border-radius: 17px; background: white; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.price-card.featured { border: 2px solid var(--cw-blue); box-shadow: 0 18px 45px rgba(52,143,226,.18); transform: translateY(-8px); }
.price-badge { position: absolute; top: -13px; right: 18px; padding: 5px 11px; border-radius: 999px; color: var(--cw-ink); background: var(--cw-yellow); font-size: 9px; font-weight: 900; }
.price-card h3 { margin: 0; color: var(--cw-ink); font-size: 23px; }
.plan-range, .cop-price { color: var(--cw-muted); font-size: 12px; }
.price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 5px; }
.price strong { color: var(--cw-ink); font-size: 52px; letter-spacing: -.06em; }
.price span, .price small { font-size: 11px; font-weight: 800; }
.price-card ul { margin: 18px 0 27px; padding: 0; flex: 1; list-style: none; }
.price-card li { padding: 7px 0; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.price-card li::before { content: "✓"; margin-right: 8px; color: var(--cw-blue); font-weight: 900; }
.price-card .button { color: white; background: var(--cw-blue); box-shadow: none; }
.price-card .button:hover { background: var(--cw-blue-dark); }

.guide-section { background: white; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--cw-border); }
.guide-grid a { padding: 25px 10px; display: grid; grid-template-columns: 52px 1fr; border-bottom: 1px solid var(--cw-border); text-decoration: none; transition: padding .18s, background .18s; }
.guide-grid a:nth-child(odd) { border-right: 1px solid var(--cw-border); }
.guide-grid a:hover { padding-left: 20px; background: #f8fafc; }
.guide-grid span { grid-row: span 2; color: var(--cw-blue); font: 12px "JetBrains Mono", Consolas, monospace; }
.guide-grid b { font-size: 18px; }
.guide-grid small { color: var(--cw-muted); }
.faq { background: var(--cw-bg); }
.faq-list { border-top: 1px solid var(--cw-border); }
.faq details { border-bottom: 1px solid var(--cw-border); }
.faq summary { position: relative; padding: 24px 42px 24px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 750; }
.faq summary::after { content: "+"; position: absolute; right: 8px; color: var(--cw-blue); font-size: 28px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 820px; margin: -5px 0 25px; color: var(--cw-muted); }
.final-cta { padding: clamp(85px, 10vw, 145px) 22px; text-align: center; color: white; background: var(--cw-ink) url("brand/network-bg.svg") center/cover; }
.final-cta > img { width: 240px; margin-bottom: 35px; }
.final-cta h2 { max-width: 900px; margin-left: auto; margin-right: auto; color: white; }
.final-cta > p { color: #b5c0cf; font-size: 18px; }
.final-cta > div { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 28px; }

.site-footer { padding: 55px clamp(20px, 7vw, 112px); display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; color: #a8b4c4; background: #070c14; border-top: 4px solid transparent; border-image: linear-gradient(90deg,var(--cw-yellow) 50%,var(--cw-blue) 50% 75%,var(--cw-red) 75%) 1; font-size: 13px; }
.site-footer .brand img { width: 210px; }
.site-footer strong { display: block; margin-bottom: 14px; color: white; }
.site-footer a:not(.brand) { margin: 7px 0; display: block; text-decoration: none; }

.docs-shell { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.docs-sidebar { padding: 44px 24px 80px clamp(20px, 5vw, 72px); border-right: 1px solid var(--cw-border); background: #eef1f6; }
.docs-sidebar input { width: 100%; margin: 20px 0; padding: 12px 13px; border: 1px solid var(--cw-border); border-radius: 10px; background: white; outline: none; }
.docs-sidebar input:focus { border-color: var(--cw-blue); box-shadow: 0 0 0 3px rgba(52,143,226,.16); }
.docs-sidebar a { margin: 3px 0; padding: 9px 12px; display: block; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 650; }
.docs-sidebar a.active { color: white; background: var(--cw-blue); box-shadow: 4px 0 0 var(--cw-yellow) inset; }
.docs-content { max-width: 980px; padding: 75px clamp(26px, 7vw, 105px) 130px; }
.docs-content h1 { margin: 12px 0 16px; color: var(--cw-ink); font-size: clamp(43px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; }
.docs-lead { color: var(--cw-muted); font-size: 20px; }
.doc-section { margin-top: 52px; padding-top: 31px; border-top: 1px solid var(--cw-border); }
.doc-section h2 { color: var(--cw-ink); font-size: 27px; letter-spacing: -.035em; }
.doc-section > p { color: #4e5c6d; }
.doc-steps { margin: 25px 0 0; padding: 0; list-style: none; }
.doc-steps li { padding: 13px 0; display: grid; grid-template-columns: 44px 1fr; align-items: start; border-bottom: 1px solid #e8ecf1; }
.doc-steps span { color: var(--cw-blue); font: 12px "JetBrains Mono", Consolas, monospace; }
.doc-steps p { margin: 0; }
.doc-callout { margin-top: 40px; padding: 20px 22px; border-left: 4px solid var(--cw-yellow); border-radius: 0 10px 10px 0; background: #fff9d9; }
.doc-callout p { margin-bottom: 0; }
.doc-callout a { color: var(--cw-blue-dark); font-weight: 800; }
.legal-content { max-width: 880px; min-height: 70vh; margin: auto; padding: 95px 25px; }
.legal-content h1 { color: var(--cw-ink); font-size: clamp(43px, 6vw, 70px); letter-spacing: -.05em; }
.legal-content h2 { margin-top: 42px; }

@media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; }
    .hero-product { max-width: 850px; }
    .product-window { transform: none; }
    .module-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .product-shot--wide, .install-section { grid-template-columns: 1fr; }
    .product-shot > div { border-left: 0; border-top: 4px solid var(--cw-yellow); }
}
@media (max-width: 760px) {
    .site-header { height: 68px; }
    .brand img { width: 170px; }
    .nav-toggle { display: block; }
    #main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 24px; flex-direction: column; align-items: stretch; background: #0b1220; border-bottom: 1px solid #263345; }
    #main-nav.open { display: flex; }
    .nav-login { margin: 0; padding: 0; border: 0; }
    .hero { min-height: auto; padding-top: 75px; }
    .hero h1 { font-size: 50px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-float { display: none; }
    .product-window > img { min-height: 245px; }
    .tricolor-strip div { justify-content: flex-start; }
    .module-grid, .pricing-grid, .screenshot-grid, .guide-grid, .site-footer { grid-template-columns: 1fr; }
    .module-grid article { min-height: 270px; }
    .screenshot-card, .screenshot-card--large, .screenshot-card--wide { grid-column: auto; }
    .screenshot-card img, .screenshot-card--large img, .screenshot-card--wide img { height: 270px; }
    .screenshot-card figcaption { align-items: flex-start; flex-direction: column; }
    .price-card.featured { transform: none; }
    .guide-grid a:nth-child(odd) { border-right: 0; }
    .final-cta > div { flex-direction: column; }
    .docs-shell { grid-template-columns: 1fr; }
    .docs-sidebar { padding: 25px 20px; border-right: 0; border-bottom: 1px solid var(--cw-border); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
