/* ============================================================================
   DN SHIELD — terminal aesthetic
   ============================================================================ */

:root {
    /* terminal palette */
    --bg:           #0b0d10;
    --bg-2:         #0f1216;
    --bg-3:         #14181d;
    --panel:        #11141a;
    --panel-2:      #161a21;
    --panel-3:      #1c2128;

    /* phosphor-tinted text */
    --text:         #e6e6e0;
    --text-2:       #c8c8c2;
    --muted:        #7a8590;
    --muted-2:      #565f6a;
    --dim:          #353c44;

    /* lines */
    --line:         #1f242c;
    --line-2:       #2a313b;
    --line-3:       #3a424d;

    /* ansi-style colors */
    --blue:         #5cb4ff;   /* primary accent — links, focus, headlines */
    --blue-dim:     #3892e6;
    --blue-soft:    rgba(92, 180, 255, 0.10);
    --green:        #6ee787;   /* success / applied */
    --amber:        #f0b66c;   /* warning / version */
    --red:          #f87171;
    --purple:       #c792ea;
    --cyan:         #62d3d6;

    --blue-rgb:     92, 180, 255;

    /* type */
    --mono:         'IBM Plex Mono', ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;

    --container:    1080px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    font-family: var(--mono);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "calt", "liga", "ss01";
}

/* Subtle CRT-style vignette + scanline overlay (very low opacity) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 2px,
            rgba(255, 255, 255, 0.012) 2px,
            rgba(255, 255, 255, 0.012) 3px),
        radial-gradient(circle at 50% 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.4) 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 50% -10%,
            rgba(var(--blue-rgb), 0.05),
            transparent 60%);
}

.site-shell {
    position: relative;
    z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #fff; }

button, input, textarea { font: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }

::selection { background: var(--blue); color: var(--bg); }
::-moz-selection { background: var(--blue); color: var(--bg); }

:focus-visible {
    outline: 1px solid var(--blue);
    outline-offset: 2px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.container-wide {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

/* ============================================================================
   Header — terminal prompt bar
   ============================================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(11, 13, 16, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.navbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-logo {
    width: auto;
    height: 26px;
    object-fit: contain;
}

.brand-tag {
    color: var(--muted-2);
    font-size: 0.78rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.84rem;
}

.nav-link {
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 3px;
    transition: color 0.12s ease, background 0.12s ease;
    position: relative;
    font-weight: 400;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-2);
}

.nav-link.is-active {
    color: var(--blue);
}

.nav-link.is-active::before {
    content: "$ ";
    color: var(--muted-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================================
   Buttons — bracketed terminal commands
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    font-family: var(--mono);
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn::before { content: "["; color: var(--muted-2); }
.btn::after  { content: "]"; color: var(--muted-2); }

.btn:hover {
    background: var(--bg-2);
    border-color: var(--line-3);
    color: #fff;
}

.btn:hover::before,
.btn:hover::after {
    color: var(--blue);
}

.btn-primary {
    color: var(--blue);
    border-color: var(--blue-dim);
    background: var(--blue-soft);
}

.btn-primary::before,
.btn-primary::after { color: var(--blue); }

.btn-primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--bg);
}

.btn-primary:hover::before,
.btn-primary:hover::after { color: var(--bg); }

.btn-block { width: 100%; justify-content: center; }

/* ============================================================================
   Mobile nav
   ============================================================================ */

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.82rem;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    display: none;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* ============================================================================
   Type scale
   ============================================================================ */

.h1, .h2, .h3 {
    font-family: var(--mono);
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 500;
}

.h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 500;
}

.h3 {
    font-size: 1.05rem;
    font-weight: 500;
}

.h1 .blue { color: var(--blue); }
.h1 .amber { color: var(--amber); }
.h1 .comment { color: var(--muted-2); font-weight: 400; }

.eyebrow {
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 16px;
    display: inline-block;
}

.eyebrow::before {
    content: "// ";
    color: var(--dim);
}

.lead {
    color: var(--text-2);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-top: 18px;
    max-width: 64ch;
}

.section-intro {
    color: var(--muted);
    line-height: 1.7;
    max-width: 70ch;
    font-size: 0.93rem;
}

/* ============================================================================
   Hero
   ============================================================================ */

.hero {
    padding: 64px 0 24px;
    position: relative;
}

.hero-header {
    text-align: left;
}

.hero-version {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 22px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-2);
}

.hero-version .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(110, 231, 135, 0.7);
}

.hero h1.h1 {
    max-width: 32ch;
}

.hero h1.h1 .cursor {
    display: inline-block;
    width: 0.55em;
    height: 0.92em;
    background: var(--blue);
    vertical-align: -0.08em;
    margin-left: 0.05em;
    animation: blink 1.05s steps(1, end) infinite;
}

@keyframes blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ============================================================================
   Terminal — the hero centerpiece
   ============================================================================ */

.terminal {
    margin-top: 56px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: var(--bg-2);
    overflow: hidden;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.terminal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--line);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--dim);
}

.terminal-dots span:nth-child(1) { background: #e15868; }
.terminal-dots span:nth-child(2) { background: #d6a04a; }
.terminal-dots span:nth-child(3) { background: #5fa962; }

.terminal-title {
    color: var(--muted);
    font-size: 0.78rem;
}

.terminal-body {
    padding: 22px 20px;
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-2);
    min-height: 320px;
}

.term-line {
    display: block;
}

.term-prompt { color: var(--green); }
.term-cmd    { color: var(--text); }
.term-flag   { color: var(--amber); }
.term-arg    { color: var(--cyan); }
.term-ok     { color: var(--green); }
.term-fail   { color: var(--red); }
.term-dim    { color: var(--muted); }
.term-info   { color: var(--blue); }
.term-key    { color: var(--purple); }
.term-spacer { display: block; height: 0.8em; }

.term-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--text);
    vertical-align: -2px;
    animation: blink 1.05s steps(1, end) infinite;
    margin-left: 2px;
}

/* Line-by-line reveal for the demo */
.term-line[data-step] {
    opacity: 0;
    animation: termAppear 0.001s linear forwards;
}

@keyframes termAppear {
    to { opacity: 1; }
}

.term-line[data-step="1"]  { animation-delay: 0.30s; }
.term-line[data-step="2"]  { animation-delay: 0.70s; }
.term-line[data-step="3"]  { animation-delay: 0.95s; }
.term-line[data-step="4"]  { animation-delay: 1.15s; }
.term-line[data-step="5"]  { animation-delay: 1.40s; }
.term-line[data-step="6"]  { animation-delay: 1.60s; }
.term-line[data-step="7"]  { animation-delay: 1.80s; }
.term-line[data-step="8"]  { animation-delay: 2.00s; }
.term-line[data-step="9"]  { animation-delay: 2.20s; }
.term-line[data-step="10"] { animation-delay: 2.40s; }
.term-line[data-step="11"] { animation-delay: 2.65s; }
.term-line[data-step="12"] { animation-delay: 2.95s; }
.term-line[data-step="13"] { animation-delay: 3.15s; }
.term-line[data-step="14"] { animation-delay: 3.40s; }

@media (prefers-reduced-motion: reduce) {
    .term-line[data-step],
    .hero h1.h1 .cursor,
    .term-cursor {
        animation: none;
        opacity: 1;
    }
}

/* ============================================================================
   Section layout
   ============================================================================ */

.site-main {
    position: relative;
}

.section {
    padding: 88px 0;
    position: relative;
}

.section-tight {
    padding: 56px 0;
}

.section-sep {
    border-top: 1px dashed var(--line-2);
}

.section-head {
    margin-bottom: 40px;
}

.section-label {
    color: var(--blue);
    font-size: 0.78rem;
    margin-bottom: 14px;
}

.section-label::before {
    content: "## ";
    color: var(--muted-2);
}

/* ============================================================================
   Protection layers — docs-style list
   ============================================================================ */

.layers {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    overflow: hidden;
}

.layer {
    display: grid;
    grid-template-columns: 60px 220px 1fr;
    gap: 24px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    transition: background 0.12s ease;
    align-items: start;
}

.layer:last-child {
    border-bottom: none;
}

.layer:hover {
    background: var(--panel-2);
}

.layer-id {
    color: var(--muted-2);
    font-size: 0.82rem;
}

.layer-id::before {
    content: "[";
    color: var(--dim);
}

.layer-id::after {
    content: "]";
    color: var(--dim);
}

.layer-name {
    color: var(--text);
    font-weight: 500;
}

.layer-name .flag {
    color: var(--amber);
    font-size: 0.84rem;
    margin-left: 8px;
}

.layer-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ============================================================================
   Two-column info block
   ============================================================================ */

.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.col-block {
    border-left: 1px solid var(--line);
    padding-left: 20px;
}

.col-block .h3 {
    margin-bottom: 12px;
}

.col-block p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.col-block + .col-block {
    margin-top: 32px;
}

/* ============================================================================
   Definition list — looks like terminal output
   ============================================================================ */

.deflist {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.deflist > li {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.deflist > li:last-child {
    border-bottom: none;
}

.deflist > li > span:first-child {
    color: var(--muted);
}

.deflist > li > span:first-child::after {
    content: " :";
    color: var(--dim);
}

.deflist > li > span:last-child {
    color: var(--text);
}

.deflist > li strong {
    color: var(--blue);
    font-weight: 500;
}

/* ============================================================================
   Cards — terminal output panels
   ============================================================================ */

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.cards-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tcard {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tcard-head {
    padding: 10px 16px;
    border-bottom: 1px dashed var(--line-2);
    color: var(--muted);
    font-size: 0.78rem;
    background: var(--bg-2);
}

.tcard-head::before {
    content: "// ";
    color: var(--dim);
}

.tcard-body {
    padding: 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tcard-body h3 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.tcard-body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}

/* ============================================================================
   Checklist — terminal-style bullets
   ============================================================================ */

.checks {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.checks li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    color: var(--text-2);
    font-size: 0.93rem;
    line-height: 1.6;
}

.checks li::before {
    content: "▸";
    color: var(--green);
    padding-top: 1px;
}

/* ============================================================================
   ASCII shield (decorative)
   ============================================================================ */

.ascii-block {
    color: var(--blue);
    font-size: 0.74rem;
    line-height: 1.05;
    white-space: pre;
    opacity: 0.5;
    margin: 0;
    user-select: none;
    text-shadow: 0 0 12px rgba(var(--blue-rgb), 0.4);
}

/* ============================================================================
   Page hero (sub-pages)
   ============================================================================ */

.page-hero {
    padding: 56px 0 32px;
    border-bottom: 1px dashed var(--line-2);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: start;
}

.page-hero h1.h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    max-width: 22ch;
}

.page-hero-aside {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    overflow: hidden;
}

.page-hero-aside-head {
    padding: 10px 14px;
    background: var(--bg-3);
    color: var(--muted);
    font-size: 0.78rem;
    border-bottom: 1px solid var(--line);
}

.page-hero-aside-head::before {
    content: "$ ";
    color: var(--green);
}

.page-hero-aside .deflist {
    border: none;
    background: transparent;
}

.page-hero-aside .deflist > li {
    grid-template-columns: 1fr auto;
    padding: 10px 14px;
}

/* ============================================================================
   Pricing — license-file aesthetic
   ============================================================================ */

.pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.plan {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-featured {
    border-color: var(--blue-dim);
    background:
        linear-gradient(180deg, var(--blue-soft) 0%, transparent 30%),
        var(--panel);
}

.plan-head {
    padding: 14px 18px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.plan-featured .plan-head {
    background: linear-gradient(180deg, rgba(var(--blue-rgb), 0.10), var(--bg-3));
}

.plan-name {
    color: var(--muted);
    font-size: 0.82rem;
}

.plan-name::before {
    content: "$ ";
    color: var(--green);
}

.plan-tag {
    color: var(--muted);
    font-size: 0.76rem;
    padding: 2px 8px;
    border: 1px solid var(--line-2);
    border-radius: 3px;
}

.plan-tag-blue {
    color: var(--blue);
    border-color: var(--blue-dim);
    background: var(--blue-soft);
}

.plan-body {
    padding: 24px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.plan-title {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 500;
}

.plan-price {
    font-size: 2.4rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
}

.plan-price-meta {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0;
}

.plan-note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.plan-features {
    list-style: none;
    display: grid;
    gap: 9px;
    flex: 1;
}

.plan-features li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 6px;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.55;
}

.plan-features li::before {
    content: "+";
    color: var(--green);
    font-weight: 500;
}

.plan-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 4px;
}

/* ============================================================================
   Forms
   ============================================================================ */

.dual {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 16px;
    align-items: start;
}

.box {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    overflow: hidden;
}

.box-head {
    padding: 10px 16px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.box-head::before {
    content: "$ ";
    color: var(--green);
}

.box-body {
    padding: 24px;
}

.box-body h2 {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.box-body > p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

label::before {
    content: "> ";
    color: var(--dim);
}

.input,
textarea,
input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    border-radius: 3px;
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--mono);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

.input:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
    border-color: var(--blue);
    background: var(--bg-2);
}

.helper {
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 0.78rem;
    line-height: 1.5;
}

.helper::before {
    content: "# ";
    color: var(--dim);
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.55;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--blue);
}

.checkbox-row label {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-2);
}

.checkbox-row label::before {
    content: "";
}

.status {
    display: none;
    border-radius: 3px;
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    color: var(--text-2);
    font-size: 0.86rem;
    line-height: 1.55;
}

.status.is-error {
    display: block;
    color: #ffc7ce;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.06);
}

.status.is-error::before {
    content: "✗ ";
    color: var(--red);
}

.status.is-success {
    display: block;
    color: #bff3ce;
    border-color: rgba(110, 231, 135, 0.3);
    background: rgba(110, 231, 135, 0.06);
}

.status.is-success::before {
    content: "✓ ";
    color: var(--green);
}

.math-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.math-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 3px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    color: var(--amber);
    font-size: 0.88rem;
}

.spinner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--blue);
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.inline-link {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.inline-link:hover {
    color: var(--text);
}

/* ============================================================================
   Download — combined trial + customer
   ============================================================================ */

.dl-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-top: 20px;
}

.dl-meta > div {
    background: var(--bg-2);
    padding: 14px 16px;
}

.dl-meta-value {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 500;
}

.dl-meta-label {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
}

.info-list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.info-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 6px;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.55;
}

.info-list li::before {
    content: "▸";
    color: var(--blue);
}

/* ============================================================================
   FAQ — manpage style
   ============================================================================ */

.faq-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: var(--bg-2);
    margin-bottom: 14px;
}

.faq-search::before {
    content: "/";
    color: var(--blue);
}

.faq-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    outline: none;
    font-family: var(--mono);
    font-size: 0.9rem;
}

.faq-search input::placeholder {
    color: var(--muted-2);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.filter-tag {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.12s ease;
}

.filter-tag::before {
    content: "--";
    color: var(--dim);
    margin-right: 2px;
}

.filter-tag:hover {
    border-color: var(--line-3);
    color: var(--text);
}

.filter-tag.is-active {
    color: var(--blue);
    border-color: var(--blue-dim);
    background: var(--blue-soft);
}

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

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

.faq-button {
    width: 100%;
    display: grid;
    grid-template-columns: 22px 1fr 22px;
    gap: 8px;
    align-items: center;
    padding: 16px 4px;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    font-family: var(--mono);
}

.faq-button::before {
    content: "+";
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.faq-item.is-open .faq-button::before {
    content: "-";
    color: var(--blue);
}

.faq-button span {
    font-size: 0.94rem;
    color: var(--text);
}

.faq-button strong {
    display: none;
}

.faq-panel {
    display: none;
    padding: 0 4px 22px 30px;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 76ch;
}

.faq-item.is-open .faq-panel {
    display: block;
}

.faq-panel p + p {
    margin-top: 10px;
}

.example-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 2px solid var(--blue-dim);
    background: var(--bg-2);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
    border-radius: 0 3px 3px 0;
}

.example-box::before {
    content: "// example ─────\n";
    display: block;
    color: var(--muted-2);
    font-size: 0.74rem;
    margin-bottom: 6px;
    white-space: pre;
}

/* ============================================================================
   CTA
   ============================================================================ */

.cta {
    border: 1px solid var(--blue-dim);
    border-radius: 4px;
    background:
        linear-gradient(180deg, var(--blue-soft) 0%, transparent 60%),
        var(--panel);
    overflow: hidden;
}

.cta-head {
    padding: 10px 18px;
    background: rgba(var(--blue-rgb), 0.08);
    border-bottom: 1px solid rgba(var(--blue-rgb), 0.16);
    color: var(--blue);
    font-size: 0.8rem;
}

.cta-head::before {
    content: "$ ";
    color: var(--green);
}

.cta-body {
    padding: 32px 28px;
}

.cta-body p {
    color: var(--text-2);
    margin-top: 12px;
    line-height: 1.7;
    font-size: 0.94rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

/* ============================================================================
   Footer — system status line
   ============================================================================ */

.footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr 0.9fr 1.1fr;
    gap: 32px;
    padding: 40px 0 32px;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.footer-copy {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
    max-width: 38ch;
}

.footer h3 {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    margin-bottom: 14px;
}

.footer h3::before {
    content: "// ";
    color: var(--dim);
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
}

.footer-list a {
    color: var(--text-2);
    transition: color 0.12s ease;
}

.footer-list a:hover {
    color: var(--blue);
}

.footer-list li {
    color: var(--text-2);
}

.footer-list-compact li {
    color: var(--muted);
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px dashed var(--line-2);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.78rem;
    flex-wrap: wrap;
}

.footer-bottom .ok::before {
    content: "● ";
    color: var(--green);
}

/* ============================================================================
   Utilities
   ============================================================================ */

.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-36 { margin-top: 36px; }
.hidden { display: none !important; }

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 960px) {
    .nav,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

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

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

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

    .pricing,
    .dual,
    .cards-2 {
        grid-template-columns: 1fr;
    }

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

    .layer-name {
        grid-column: 2;
    }

    .layer-desc {
        grid-column: 2;
        margin-top: 6px;
    }
}

@media (max-width: 640px) {
    body { font-size: 14px; }

    .container { width: min(var(--container), calc(100% - 28px)); }

    .section { padding: 64px 0; }

    .hero { padding: 40px 0 16px; }

    /* Long compound words like "protect_your_.NET_software" break at wbr only */
    .hero h1.h1 {
        font-size: clamp(1.55rem, 7.5vw, 2.2rem);
        max-width: 100%;
    }

    .page-hero h1.h1 {
        font-size: clamp(1.5rem, 6vw, 1.9rem);
    }

    .terminal { margin-top: 36px; }
    .terminal-body {
        padding: 18px 14px;
        font-size: 0.74rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    .terminal-body .term-line { display: block; }

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

    .deflist > li,
    .dl-meta,
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .hero-actions,
    .cta-actions,
    .plan-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn { justify-content: center; }

    .box-body,
    .cta-body { padding: 22px 18px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}
