:root {
    --bg:        #060d10;
    --bg-2:      #091218;
    --bg-3:      #0d1a21;
    --border:    #162530;
    --text:      #dce9ed;
    --text-muted:#5e8090;
    --accent:    #10b981;
    --accent-hi: #34d399;
    --font:      'Space Grotesk', sans-serif;
    --mono:      'JetBrains Mono', monospace;
    --radius:    6px;
    --max-w:     1160px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--mono); }

/* Topbar */
.topbar {
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: .4rem 2rem;
}
.topbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .75rem;
}
.topbar-label {
    color: var(--text-muted);
    font-weight: 500;
}
.topbar-link {
    color: var(--accent-hi);
    font-weight: 600;
    transition: opacity .2s;
}
.topbar-link:hover { opacity: .75; }
.topbar-sep { color: var(--border); }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(6,13,16,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--accent-hi);
}

.nav-divider {
    color: var(--border);
}

.nav-parent {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color .2s;
}
.nav-parent:hover { color: var(--text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
    background: var(--accent);
    color: #fff !important;
    padding: .4rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .8rem;
    transition: background .2s;
}
.btn-nav:hover { background: var(--accent-hi) !important; }

/* Hero */
.hero {
    padding: 5rem 2rem 4rem;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: .7rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }

.btn-primary.btn-large { padding: .85rem 2rem; font-size: 1rem; }

.btn-ghost {
    display: inline-block;
    color: var(--text-muted);
    padding: .7rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: .95rem;
    border: 1px solid var(--border);
    transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.screenshot-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(16,185,129,.08);
}

.screenshot-frame img {
    width: 100%;
    display: block;
}

/* Pillars */
.pillars {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    padding: 3rem 2rem;
}

.pillars-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pillar {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.pillar-num {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: .25rem;
}

.pillar-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
}

.pillar-body {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Feature blocks */
.feature-block {
    padding: 5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.feature-block--flip {
    background: var(--bg-2);
}

.feature-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-block--flip .feature-inner {
    direction: rtl;
}

.feature-block--flip .feature-inner > * {
    direction: ltr;
}

.feature-tag {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

.feature-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin-bottom: 1rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.feature-list li {
    font-size: .9rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: .8rem;
}

.feature-visual img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

/* Settings section */
.settings-section {
    padding: 5rem 2rem;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
}

.settings-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.settings-header {
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.settings-header h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: .75rem;
}

.settings-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.settings-item {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.settings-item img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
}

.settings-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    z-index: 1;
    position: relative;
}

.settings-item span {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

/* Stack */
.stack-section {
    padding: 2.5rem 2rem;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stack-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stack-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.stack-items span {
    font-family: var(--mono);
    font-size: .8rem;
    padding: .3rem .75rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--accent-hi);
}

/* CTA */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
}

.cta-inner {
    max-width: 580px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.cta-inner p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    background: var(--bg-2);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: var(--text-muted);
}

.footer-logo {
    font-weight: 700;
    color: var(--accent-hi);
}

.footer-brand a {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
    .pillars-inner,
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .hero-inner,
    .feature-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feature-block--flip .feature-inner {
        direction: ltr;
    }

    .feature-visual {
        order: -1;
    }
}

/* Security section */
.security-section {
    padding: 5rem 2rem;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.security-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.security-header {
    max-width: 640px;
    margin-bottom: 2.5rem;
}
.sec-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}
.security-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: .75rem;
}
.security-header p {
    font-size: .975rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.sec-table {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.sec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.sec-row:last-child { border-bottom: none; }
.sec-row-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: .15rem;
}
.sec-row-desc {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.exploithound-block {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
}
.eh-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .4rem;
}
.exploithound-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .6rem;
}
.exploithound-block h3 a {
    color: var(--accent-hi);
    text-decoration: none;
}
.exploithound-block h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.exploithound-block p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 760px;
    margin-bottom: .9rem;
}
.eh-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: opacity .2s;
}
.eh-link:hover { opacity: .7; }
.security-note {
    font-size: .8rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}
@media (max-width: 700px) {
    .sec-row { grid-template-columns: 1fr; gap: .35rem; }
}