:root {
    --bg: #08090b;
    --surface: #0d0f12;
    --surface-2: #111419;
    --border: #25282d;

    --red: #e01e37;
    --red-dark: #a91429;

    --green: #58c985;

    --white: #f3f3f3;
    --text: #d1d1d1;
    --muted: #858990;
    --dim: #565a61;

    --display: "ocr-a-std", monospace;
    --body: Inter, Arial, sans-serif;

    --max-width: 1060px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: var(--body);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

main {
    overflow: hidden;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    width: 100%;
    max-width: var(--max-width);
    min-height: 68px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    width: 30px;
    height: 30px;
}

.brand span {
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links > a:not(.icon-link):not(.nav-invite) {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s ease;
}

.nav-links > a:hover {
    color: var(--white);
}

.icon-link {
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-link img {
    width: 19px;
    height: 19px;
}

.nav-invite {
    padding: 8px 15px;
    background: var(--red);
    border: 1px solid var(--red);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.nav-invite:hover {
    background: #f02742;
    transform: translateY(-1px);
}


/* =========================================================
   GLOBAL TYPOGRAPHY
   ========================================================= */

.section-label {
    color: var(--red);
    font-family: var(--display);
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.4;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h2 {
    font-size: clamp(32px, 4.5vw, 50px);
    line-height: 1.05;
    letter-spacing: -1.8px;
    margin-bottom: 21px;
}

p {
    color: var(--text);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    max-width: var(--max-width);
    margin: auto;
    padding: 85px 20px 95px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 65px;
    align-items: center;
}

.system-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 29px;
    color: var(--muted);
    font-family: var(--display);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(88, 201, 133, .08);
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 29px;
}

.hero-logo {
    width: 68px;
    height: 68px;
}

.hero-wordmark {
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 55px);
    letter-spacing: 4px;
    line-height: 1;
}

.hero-submark {
    margin-top: 7px;
    color: var(--muted);
    font-family: var(--display);
    font-size: 9px;
    letter-spacing: 2.5px;
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 25px;
    font-size: clamp(40px, 5.6vw, 66px);
    line-height: .99;
    letter-spacing: -2.6px;
}

.hero-description {
    max-width: 590px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.hero-punchline {
    color: var(--white);
    font-size: 16px;
}

.hero-punchline span {
    color: var(--red);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 17px;
    background: var(--red);
    border: 1px solid var(--red);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

.primary-button img {
    width: 16px;
    height: 16px;
}

.primary-button:hover {
    background: #f02742;
    transform: translateY(-2px);
}

.text-button {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}

.text-button span {
    color: var(--red);
    margin-left: 6px;
}

.text-button:hover {
    color: var(--white);
}


/* =========================================================
   HERO MONITOR
   ========================================================= */

.hero-system {
    padding: 19px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--display);
    font-size: 9px;
    letter-spacing: 1px;
}

.system-header,
.monitor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.system-header {
    color: var(--muted);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
}

.live-indicator span {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
}

.monitor-line {
    height: 1px;
    margin: 17px 0;
    background: var(--border);
}

.monitor-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #191c20;
    color: var(--muted);
}

.monitor-row strong {
    color: var(--white);
    font-weight: 400;
}

.monitor-footer {
    padding-top: 16px;
    color: var(--dim);
}


/* =========================================================
   INTRO
   ========================================================= */

.intro-section {
    max-width: var(--max-width);
    margin: auto;
    padding: 105px 20px;
    border-top: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 32px;
}

.intro-grid h2 {
    margin: 0;
}

.intro-copy {
    padding-top: 4px;
}

.intro-copy p {
    max-width: 500px;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   THREAT RESPONSE
   ========================================================= */

.protection-section {
    padding: 105px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    max-width: var(--max-width);
    margin: auto;
}

.section-heading h2 {
    margin-top: 25px;
}

.response-flow {
    max-width: var(--max-width);
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 18px;
    align-items: start;
}

.flow-step {
    min-width: 0;
}

.flow-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.flow-icon img {
    width: 25px;
    height: 25px;
}

.flow-icon.threat {
    border-color: rgba(224, 30, 55, .5);
}

.flow-number {
    color: var(--dim);
    font-family: var(--display);
    font-size: 9px;
}

.flow-step h3 {
    margin: 8px 0 10px;
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 1.8px;
}

.flow-step p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.flow-connector {
    width: 28px;
    height: 1px;
    margin-top: 26px;
    background: var(--border);
}


/* =========================================================
   DETECTION
   ========================================================= */

.technical-section {
    max-width: var(--max-width);
    margin: auto;
    padding: 120px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 85px;
    align-items: center;
}

.technical-visual {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
}

.lock-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--red);
    font-family: var(--display);
    font-size: 8px;
    letter-spacing: 1.5px;
}

.lock-state img {
    width: 88px;
    height: 88px;
}

.lock-state.secure {
    color: var(--green);
}

.technical-arrow {
    color: var(--dim);
    font-size: 21px;
}

.technical-copy h2 {
    margin-top: 21px;
}

.technical-copy p {
    max-width: 500px;
    font-size: 15px;
    line-height: 1.75;
}

.technical-copy strong {
    color: var(--white);
}

.detection-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 28px;
    padding-top: 21px;
    border-top: 1px solid var(--border);
}

.detection-note-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detection-note-icon img {
    width: 21px;
    height: 21px;
}

.detection-note span {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font-family: var(--display);
    font-size: 8px;
    letter-spacing: 1.5px;
}

.detection-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   LIVE STATS
   ========================================================= */

.stats-section {
    padding: 105px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-section > .section-label,
.stats-header,
.stats-grid,
.heartbeat-line {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.stats-header {
    margin-top: 21px;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.stats-header h2 {
    margin-bottom: 0;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-family: var(--display);
    font-size: 9px;
    letter-spacing: 1px;
}

.stats-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.stat {
    min-height: 180px;
    padding: 24px;
    position: relative;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-family: var(--display);
    font-size: 8px;
    letter-spacing: 1px;
}

.stat strong {
    display: block;
    margin-top: 29px;
    font-size: clamp(30px, 3.5vw, 45px);
    line-height: 1;
    letter-spacing: -1.8px;
}

.stat img {
    width: 24px;
    height: 24px;
    position: absolute;
    right: 21px;
    bottom: 21px;
}

.heartbeat-line {
    padding-top: 17px;
    color: var(--dim);
    font-family: var(--display);
    font-size: 8px;
    letter-spacing: 1px;
}


/* =========================================================
   PRIVACY
   ========================================================= */

.privacy-section {
    max-width: 820px;
    margin: 115px auto;
    padding: 45px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.privacy-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-icon img {
    width: 52px;
    height: 52px;
}

.privacy-section h2 {
    margin-top: 19px;
}

.privacy-section p {
    max-width: 570px;
    font-size: 14px;
}

.privacy-section code {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 11px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--green);
    font-family: var(--display);
    font-size: 9px;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
    max-width: 820px;
    margin: auto;
    padding: 80px 20px 115px;
}

.faq-section h2 {
    margin-top: 21px;
}

.faq-list {
    margin-top: 48px;
}

.faq-item {
    border-top: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: 0;
    color: var(--white);
    text-align: left;
    cursor: pointer;
    font-size: 15px;
}

.faq-icon {
    min-width: 23px;
    color: var(--red);
    font-family: var(--display);
    font-size: 16px;
    text-align: right;
    transition: color .2s ease;
}

.faq-question:hover {
    color: var(--red);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-answer p {
    max-width: 650px;
    padding: 0 45px 21px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   OPEN SOURCE
   ========================================================= */

.opensource-section {
    max-width: var(--max-width);
    margin: auto;
    padding: 75px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid var(--border);
}

.opensource-section h2 {
    margin-top: 19px;
    margin-bottom: 12px;
}

.opensource-section p {
    max-width: 550px;
    margin-bottom: 0;
    font-size: 14px;
}

.github-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 13px;
    transition: border-color .2s ease, background .2s ease;
}

.github-button img {
    width: 18px;
    height: 18px;
}

.github-button span {
    color: var(--red);
}

.github-button:hover {
    background: var(--surface);
    border-color: var(--red);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    max-width: var(--max-width);
    margin: auto;
    padding: 42px 20px 30px;
    border-top: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 34px;
    height: 34px;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-brand span {
    color: var(--dim);
    font-family: var(--display);
    font-size: 7px;
    letter-spacing: 1.5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 28px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 43px;
    color: var(--dim);
    font-size: 11px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .response-flow {
        grid-template-columns: 1fr 1fr;
        gap: 42px 25px;
    }

    .flow-connector {
        display: none;
    }

    .technical-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .navbar {
        padding: 14px 18px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links > a:not(.icon-link):not(.nav-invite) {
        display: none;
    }

    .hero {
        padding: 65px 18px 75px;
    }

    .system-label {
        margin-bottom: 24px;
    }

    .hero-brand {
        gap: 14px;
        margin-bottom: 25px;
    }

    .hero-logo {
        width: 55px;
        height: 55px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .intro-section,
    .protection-section,
    .technical-section,
    .stats-section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .intro-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .protection-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .response-flow {
        grid-template-columns: 1fr;
    }

    .technical-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .technical-visual {
        min-height: 250px;
        gap: 15px;
    }

    .lock-state img {
        width: 70px;
        height: 70px;
    }

    .stats-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .stats-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .privacy-section {
        margin: 75px 18px;
        padding: 28px;
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .privacy-icon {
        width: 50px;
        height: 50px;
    }

    .privacy-icon img {
        width: 45px;
        height: 45px;
    }

    .faq-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .opensource-section {
        margin: 0 18px;
        padding: 60px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}
