/* Sigillum landing page — self-contained, no JS, no remote fonts.
   Brand: violet #701090 primary; teal #1E9090 accent; gold #E8B73E for "post-quantum" callouts.
   No web fonts (system stack only) — loading remote fonts would
   leak the visitor to a third party. */

:root {
    --violet:        #701090;
    --violet-deep:   #3A0552;
    --violet-soft:   #F4E8FA;
    --violet-glow:   #9C3FC9;
    --teal:          #1E9090;
    --teal-deep:     #0F5A5A;
    --gold:          #E8B73E;
    --gold-soft:     #FFF4D6;
    --danger:        #B0341A;
    --danger-soft:   #FFF0EC;
    --ink:           #15101F;
    --ink-soft:      #4A4456;
    --ink-faint:     #6B6478;
    --paper:         #FFFFFF;
    --paper-tint:    #FAF7FC;
    --rule:          #E8E0F0;
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     22px;
    --shadow-sm:     0 1px 2px rgba(58, 5, 82, 0.08);
    --shadow-md:     0 4px 14px rgba(58, 5, 82, 0.14);
    --shadow-lg:     0 12px 36px rgba(58, 5, 82, 0.22);
    --shadow-glow:   0 0 40px rgba(156, 63, 201, 0.35);

    --font-system:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono:
        ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
        monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-system);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; }
h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 18px;
    color: var(--violet-deep);
    line-height: 1.15;
}
h3 { font-size: 1.2rem; margin: 0 0 8px; }

a {
    color: var(--violet);
    text-decoration: none;
    transition: color 120ms ease;
}
a:hover { color: var(--violet-deep); text-decoration: underline; }

code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--violet-soft);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--violet-deep);
}

em { font-style: italic; color: var(--violet-deep); }
strong { color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    background:
        radial-gradient(ellipse at top, rgba(232, 183, 62, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(30, 144, 144, 0.28) 0%, transparent 55%),
        linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
    color: var(--paper);
    padding: 90px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* Animated lattice mesh hint (static — no JS) */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: -250px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(232, 183, 62, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.brand-mark {
    font-size: 3.8rem;
    line-height: 1;
    color: var(--paper);
    filter: drop-shadow(0 4px 16px rgba(232, 183, 62, 0.5));
}

.brand-name {
    font-size: 3.4rem;
    margin: 0;
    color: var(--paper);
    letter-spacing: -0.025em;
    font-weight: 800;
}

/* Kicker — the headline tagline. Bold, gold-accented, prominent.
   The shorter the line the better; this is the one sentence we
   want a visitor to remember when they leave the page. */
.kicker {
    display: block;
    margin: 36px auto 8px;
    padding: 14px 28px;
    background: rgba(232, 183, 62, 0.18);
    border: 1.5px solid var(--gold);
    color: #FFFFFF;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 999px;
    max-width: max-content;
    box-shadow: 0 0 32px rgba(232, 183, 62, 0.25);
}
.kicker .gold { color: var(--gold); }

.tagline {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    max-width: 820px;
    margin: 0 auto 18px;
    color: rgba(255,255,255,0.97);
    line-height: 1.35;
    font-weight: 400;
}

.tagline .emph {
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

.sub-tagline {
    font-size: 1.08rem;
    max-width: 720px;
    margin: 0 auto 40px;
    color: rgba(255,255,255,0.82);
    line-height: 1.55;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.cta {
    display: inline-block;
    padding: 15px 34px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 100ms ease, box-shadow 140ms ease;
}
.cta:hover { transform: translateY(-2px); text-decoration: none; }

.cta-primary {
    background: var(--gold);
    color: var(--violet-deep);
    box-shadow: var(--shadow-md);
}
.cta-primary:hover {
    box-shadow: var(--shadow-lg), 0 0 24px rgba(232, 183, 62, 0.4);
    color: var(--violet-deep);
    background: #F2C449;
}

.cta-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--paper);
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}
.cta-secondary:hover {
    background: rgba(255,255,255,0.18);
    color: var(--paper);
    border-color: rgba(255,255,255,0.7);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.92);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* ── Q-Day urgency section ───────────────────────────────────── */
.qday {
    padding: 90px 0;
    background:
        radial-gradient(ellipse at top right, rgba(232, 183, 62, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-tint) 100%);
    border-bottom: 1px solid var(--rule);
}

.qday-flag {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 14px;
    background: var(--gold);
    color: var(--violet-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}

.qday h2 {
    margin-bottom: 22px;
    color: var(--violet-deep);
}

.qday-lead {
    max-width: 780px;
    color: var(--ink-soft);
    font-size: 1.08rem;
    margin: 0 0 36px;
}

.qday-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.qday-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--violet);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.qday-card h3 {
    color: var(--violet-deep);
    font-size: 1.18rem;
    margin: 0 0 12px;
}

.qday-card p {
    color: var(--ink-soft);
    margin: 0 0 10px;
    font-size: 0.97rem;
    line-height: 1.55;
}

.qday-card-hot {
    border-left-color: var(--gold);
    background: linear-gradient(180deg, var(--paper) 0%, var(--gold-soft) 100%);
}

.qday-src {
    font-size: 0.82rem;
    color: var(--ink-faint);
    border-top: 1px solid var(--rule);
    padding-top: 10px;
    margin-top: auto;
    font-style: normal;
}

.qday-harvest {
    background: rgba(176, 52, 26, 0.06);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ── PQC explainer ───────────────────────────────────────────── */
.pqc {
    padding: 90px 0;
    background: var(--paper-tint);
    border-top: 1px solid var(--rule);
}

.pqc-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 880px) {
    .pqc-grid { grid-template-columns: 1fr; gap: 32px; }
}

.pqc-headline h2 {
    margin-bottom: 22px;
}
.pqc-headline p {
    color: var(--ink-soft);
    font-size: 1.04rem;
    margin: 0 0 16px;
}
.pqc-headline p:last-child { margin-bottom: 0; }

.pqc-card {
    background: linear-gradient(180deg, var(--paper) 0%, var(--violet-soft) 100%);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.pqc-card h3 {
    color: var(--violet-deep);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    font-weight: 700;
}
.pqc-card h3:not(:first-child) { margin-top: 22px; }

.pqc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}
.pqc-list li {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}
.pqc-list-old li {
    background: rgba(176, 52, 26, 0.08);
    color: #7A2310;
    text-decoration: line-through;
    text-decoration-color: rgba(176, 52, 26, 0.55);
}
.pqc-list-new li {
    background: rgba(30, 144, 144, 0.1);
    color: var(--teal-deep);
    font-weight: 600;
}
.pqc-card-note {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--ink-faint);
    font-style: italic;
}

/* ── Cloud-native ────────────────────────────────────────────── */
.cloudnative {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--paper-tint) 0%, var(--paper) 100%);
}

.cn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.cn-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.cn-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.cn-card h3 {
    color: var(--teal-deep);
    font-size: 1.05rem;
    margin: 0 0 10px;
}

.cn-card p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
}

/* ── Use cases ───────────────────────────────────────────────── */
.usecases {
    padding: 90px 0;
    background: var(--paper);
}

.uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.uc-card {
    background: linear-gradient(180deg, var(--paper) 0%, var(--violet-soft) 100%);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--gold);
    transition: transform 120ms ease, box-shadow 160ms ease;
}
.uc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.uc-card h3 {
    color: var(--violet-deep);
    font-size: 1.08rem;
    margin: 0 0 10px;
}
.uc-card p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ── Sigillum Pro flagship card ──────────────────────────────── */
.pro-card {
    background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 100%);
    color: var(--paper);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.pro-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(232, 183, 62, 0.22) 0%, transparent 60%);
    pointer-events: none;
}
.pro-card > * { position: relative; }

.pro-flag {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 16px;
    background: var(--gold);
    color: var(--violet-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.pro-card > h3 {
    color: var(--paper);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    margin: 0 0 24px;
    line-height: 1.25;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.pro-grid h4 {
    color: var(--gold);
    font-size: 1rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.pro-grid p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
}

.pro-grid code {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
}

/* ── Downloads ────────────────────────────────────────────────── */
.downloads {
    padding: 90px 0 60px;
    background: var(--paper);
}

.section-intro {
    max-width: 760px;
    color: var(--ink-soft);
    margin: 0 0 44px;
    font-size: 1.05rem;
}

/* "Why official channels only" callout under the Downloads heading.
   Strong-but-not-shouty: violet/teal palette, not the danger-red used
   for HNDL. The message is "we lean on the platform's audit chain",
   which is constructive rather than threat-list framing. */
.official-only {
    background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 100%);
    color: var(--paper);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: -22px 0 38px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.official-only::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(232, 183, 62, 0.20) 0%, transparent 60%);
    pointer-events: none;
}
.official-only > * { position: relative; }
.official-only-flag {
    display: inline-block;
    background: var(--gold);
    color: var(--violet-deep);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.official-only p {
    color: rgba(255,255,255,0.92);
    margin: 0 0 12px;
    line-height: 1.55;
    font-size: 0.98rem;
}
.official-only p:last-child { margin-bottom: 0; }
.official-only strong { color: var(--paper); }
.official-only em { color: var(--gold); font-style: normal; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.download-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 150ms ease, box-shadow 180ms ease, border-color 180ms ease;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--violet);
}

.download-card-soon {
    background: linear-gradient(180deg, var(--paper) 0%, #FBF8FE 100%);
    border-style: dashed;
    opacity: 0.88;
}

.card-meta {
    color: var(--ink-faint);
    font-size: 0.85rem;
    margin: 0 0 14px;
}

.download-card p {
    color: var(--ink-soft);
    flex-grow: 1;
    margin: 0 0 20px;
}

.dl-btn {
    display: block;
    background: var(--violet);
    color: var(--paper);
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background 120ms ease, transform 100ms ease, box-shadow 140ms ease;
}
.dl-btn:hover {
    background: var(--violet-deep);
    color: var(--paper);
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.dl-btn-disabled {
    background: var(--rule);
    color: var(--ink-faint);
    cursor: not-allowed;
    pointer-events: none;
}

.dl-label { display: block; font-size: 1rem; }
.dl-sub   { display: block; font-size: 0.75rem; opacity: 0.88; font-weight: 400; margin-top: 3px; }

/* ── Cloud providers (typed enumeration) ────────────────────── */
.clouds {
    padding: 90px 0;
    background: var(--paper-tint);
}

.cloud-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.cloud-type {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.cloud-type:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--violet);
}
.cloud-type h3 {
    color: var(--violet-deep);
    font-size: 1.1rem;
    margin: 0 0 6px;
}
.cloud-type-tag {
    color: var(--ink-faint);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0 0 12px;
    line-height: 1.4;
}
.cloud-type ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.6;
}
.cloud-type ul li { margin-bottom: 4px; }
.cloud-type ul li strong { color: var(--violet-deep); }

.cloud-type-featured {
    background: linear-gradient(180deg, var(--paper) 0%, var(--gold-soft) 100%);
    border-color: var(--gold);
    border-width: 1.5px;
    position: relative;
}
.cloud-type-featured::before {
    content: "★ Privacy-aligned";
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--gold);
    color: var(--violet-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
}
.cloud-type-public {
    background: linear-gradient(180deg, var(--paper) 0%, rgba(30, 144, 144, 0.07) 100%);
    border-color: var(--teal);
    border-width: 1.5px;
    position: relative;
}
.cloud-type-public::before {
    content: "𓂀 Killer use case";
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--teal);
    color: var(--paper);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
}
.cloud-type-cta {
    margin: 14px 0 0;
    font-size: 0.9rem;
    color: var(--teal-deep);
    font-weight: 600;
}
.cloud-type-cta a { color: var(--teal-deep); border-bottom: 1px dotted var(--teal); }
.cloud-type-cta a:hover { color: var(--violet-deep); border-bottom-color: var(--violet); text-decoration: none; }

/* ── Publish openly, share privately ─────────────────────────── */
.publish {
    padding: 90px 0;
    background:
        radial-gradient(ellipse at top right, rgba(30, 144, 144, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, var(--paper-tint) 0%, var(--paper) 100%);
}
.publish-box {
    background: linear-gradient(135deg, var(--paper) 0%, rgba(30, 144, 144, 0.06) 100%);
    border: 1.5px solid var(--teal);
    border-radius: var(--radius-lg);
    padding: 40px 42px;
    box-shadow: var(--shadow-md);
}
.publish-flag {
    display: inline-block;
    background: var(--teal);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.publish h2 {
    color: var(--teal-deep);
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.publish-lead {
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 28px;
    line-height: 1.55;
    max-width: 760px;
}
.publish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 26px;
}
.publish-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}
.publish-card h3 {
    color: var(--teal-deep);
    margin: 0 0 10px;
    font-size: 1.05rem;
}
.publish-card p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
}
.publish-bottom {
    background: var(--violet-deep);
    color: var(--paper);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}
.publish-bottom strong { color: var(--gold); }

@media (max-width: 640px) {
    .publish { padding: 60px 0; }
    .publish-box { padding: 24px 22px; }
    .cloud-type { padding: 20px; }
}

/* ── Features ─────────────────────────────────────────────────── */
.features {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--violet-soft) 0%, var(--paper) 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
}

.feature {
    background: var(--paper);
    padding: 26px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--violet);
}

.feature h3 {
    color: var(--violet-deep);
    margin-bottom: 10px;
}
.feature p {
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}

/* ── "Zero-knowledge is the feature" block ───────────────────── */
/* Used to be a red danger-toned warning. Reframed so the message
   is "this is what you wanted; here is how to make it ergonomic"
   — violet accents and a green-tinted top flag for "feature, not
   limitation". */
.caveat {
    padding: 80px 0;
    background: var(--paper);
}

.caveat-box {
    background: linear-gradient(180deg, var(--paper) 0%, var(--violet-soft) 100%);
    border: 1.5px solid var(--violet);
    border-left-width: 6px;
    border-radius: var(--radius-md);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}

.caveat-flag {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 14px;
    background: var(--teal);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}

.caveat-box h2 {
    color: var(--violet-deep);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 0 0 18px;
    line-height: 1.2;
}

.caveat-lead {
    font-size: 1.08rem;
    color: var(--ink);
    margin: 0 0 20px;
}

.caveat-box p {
    color: var(--ink-soft);
    margin: 0 0 16px;
}

.caveat-steps {
    margin: 0 0 22px;
    padding-left: 0;
    list-style: none;
    counter-reset: caveat-step;
    display: grid;
    gap: 14px;
}

.caveat-steps li {
    counter-increment: caveat-step;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 16px 22px 16px 56px;
    color: var(--ink-soft);
    position: relative;
}

.caveat-steps li::before {
    content: counter(caveat-step);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--violet);
    color: var(--paper);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.caveat-bottom {
    background: rgba(58, 5, 82, 0.06);
    border-left: 4px solid var(--violet-deep);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 22px 0 0;
    font-size: 0.98rem;
    color: var(--ink);
}

/* ── Security table ──────────────────────────────────────────── */
.security {
    padding: 90px 0;
    background: var(--paper-tint);
}

.security-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: var(--paper);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.security-table th,
.security-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.security-table tr:last-child th,
.security-table tr:last-child td { border-bottom: none; }

.security-table th {
    width: 30%;
    color: var(--violet-deep);
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--violet-soft);
}

.security-table td {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.security-note {
    color: var(--ink-soft);
    font-size: 0.95rem;
    padding-top: 8px;
    margin: 0;
}

/* ── Future / roadmap ────────────────────────────────────────── */
.future {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--paper) 0%, var(--violet-soft) 100%);
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.future-item {
    background: var(--paper);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-sm);
}

.future-item h3 {
    color: var(--violet-deep);
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.future-item p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    padding: 56px 0 24px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--paper);
    margin: 0 0 4px;
}

.footer-tag {
    margin: 0;
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
footer nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
}
footer nav a:hover { color: var(--paper); }

.copyleft {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    text-align: center;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    line-height: 1.6;
}

/* ── Responsive tightening ───────────────────────────────────── */
@media (max-width: 640px) {
    .hero { padding: 64px 0 80px; }
    .brand-name { font-size: 2.4rem; }
    .brand-mark { font-size: 3rem; }
    .tagline { font-size: 1.18rem; }
    .sub-tagline { font-size: 0.98rem; }
    .pqc, .downloads, .clouds, .features, .security, .future { padding: 60px 0; }
    .caveat-box { padding: 24px 22px; }
    .caveat-box h2 { font-size: 1.2rem; }
}

/* ── Live Q-Day countdown — urgency edition ─────────────────── */
/* Red-themed, compact. Hours/Minutes/Seconds dominate; Years/Days
   shrink behind them. Pulsing seconds digit + subtle border glow
   register as "running out of time" before the visitor reads
   anything. */
.qday-counter {
    background: linear-gradient(135deg, rgba(220,38,38,0.07), rgba(190,30,30,0.03));
    border: 1px solid rgba(220,38,38,0.45);
    border-radius: 12px;
    padding: 18px 22px 16px;
    margin: 20px 0 28px;
    box-shadow: 0 0 0 2px rgba(220,38,38,0.06), 0 4px 18px rgba(220,38,38,0.10);
}
.qday-counter-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b91c1c;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.qday-counter .qday-target {
    color: #6b5f7a;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: none;
}

/* Hero minute count — the visceral number. Big, red, tabular nums
   so the digits don't jitter as they tick down. */
.qday-counter-mega {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px dashed rgba(220,38,38,0.25);
    padding-bottom: 12px;
    margin-bottom: 10px;
}
.qday-num-mega {
    font-size: clamp(2rem, 6.5vw, 3.6rem);
    font-weight: 800;
    color: #dc2626;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.02em;
}
.qday-unit-mega {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    color: #b91c1c;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Thin breakdown row — y / d / h / m / s. Muted; for people who
   still think in years. The mega number is the real story. */
.qday-counter-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: #6b5f7a;
    font-variant-numeric: tabular-nums;
}
.qday-counter-breakdown > span {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}
.qday-counter-breakdown em {
    font-style: normal;
    color: rgba(220,38,38,0.7);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

/* Pulsing digit — applied to the mega number so the page reads as
   "actively shrinking". */
.qday-pulse { animation: qday-pulse 1s ease-in-out infinite; }
@keyframes qday-pulse {
    0%, 100% { color: #dc2626; }
    50%      { color: #ef4444; }
}

.qday-past .qday-counter-mega,
.qday-past .qday-counter-breakdown { opacity: 0.4; }
.qday-past .qday-pulse { animation: none; }

@media (max-width: 640px) {
    .qday-counter { padding: 14px 14px; }
    .qday-counter-mega { gap: 8px; padding-bottom: 10px; }
    .qday-counter-breakdown { gap: 10px; font-size: 0.78rem; }
    .qday-counter-label { gap: 4px; }
}

/* ── Harvest-now-decrypt-later expanded callout ─────────────── */
.qday-harvest {
    background: rgba(176, 52, 26, 0.06);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    color: var(--ink);
    margin: 0;
}
.qday-harvest-flag {
    display: inline-block;
    background: var(--danger);
    color: var(--paper);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.qday-harvest h3 {
    color: var(--violet-deep);
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.qday-harvest p {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 14px;
}
.qday-harvest p:last-child { margin-bottom: 0; }
.qday-harvest-action {
    background: rgba(176, 52, 26, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    border-left: 3px solid var(--danger);
}

.qday-actors {
    margin: 6px 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px 18px;
}
.qday-actors li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink);
    border-bottom: 1px solid rgba(176, 52, 26, 0.08);
}
.qday-actors li:last-child { border-bottom: none; }
.qday-actors li::before {
    content: "▸";
    position: absolute;
    left: 4px;
    top: 6px;
    color: var(--danger);
    font-weight: 700;
}
.qday-actors strong { color: var(--violet-deep); }

/* ── "Inside the encryption" deep-dive ──────────────────────── */
.inside {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--paper) 0%, var(--violet-soft) 100%);
}
.inside-zk {
    background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 100%);
    color: var(--paper);
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.inside-zk::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(232, 183, 62, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.inside-zk > * { position: relative; }
.inside-zk-flag {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 14px;
    background: var(--gold);
    color: var(--violet-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}
.inside-zk h2 {
    color: var(--paper);
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
}
.inside-zk-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.96);
    margin: 0 0 14px;
    line-height: 1.55;
}
.inside-zk p {
    color: rgba(255,255,255,0.82);
    margin: 0;
    line-height: 1.55;
}
.inside-zk strong { color: var(--paper); }

.inside-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}
.inside-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.inside-card h3 {
    color: var(--violet-deep);
    font-size: 1.05rem;
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0;
}
.inside-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 12px;
}
.inside-card p:last-child { margin-bottom: 0; }
.inside-card-why {
    background: rgba(30, 144, 144, 0.07);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--ink);
    font-size: 0.92rem;
    margin-top: auto;
}
.inside-card-why strong { color: var(--teal-deep); }

.inside-card-hero {
    background: linear-gradient(180deg, var(--paper) 0%, var(--gold-soft) 100%);
    border-color: var(--gold);
    border-width: 1.5px;
}
.inside-card-hero h3 { color: var(--violet-deep); }

.inside-promise {
    margin-top: 36px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius-md);
    padding: 26px 30px;
    box-shadow: var(--shadow-sm);
}
.inside-promise h3 {
    color: var(--teal-deep);
    margin: 0 0 10px;
    font-size: 1.1rem;
}
.inside-promise p {
    color: var(--ink);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .inside { padding: 60px 0; }
    .inside-zk { padding: 24px 22px; }
    .inside-card { padding: 20px; }
}
