/* =============================================================
   Heatsink — heatsink.uk
   Die Hard 4 / NDA Data Vault aesthetic. Dark navy + glowing red.
   ============================================================= */

:root {
    /* Theme palette — same hex values as the app's "Furnace" theme */
    --deep-navy:    #050d1c;
    --panel-navy:   #0d1a33;
    --panel-light:  #214677;
    --panel-stroke: rgba(89, 140, 199, 0.55);
    --station-blue: #9ec7eb;
    --chrome-text:  #d9ebff;
    --muted-text:   #8cadd9;
    --blade-red:    #ff2929;
    --glow-red:     #ff3d47;
    --dim-red:      #8c1a1a;
    --bar-green:    #52d966;
    --bar-amber:    #fab82e;
    --bar-red:      #fa4d33;

    --max-width: 1180px;
    --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
*::selection { background: var(--blade-red); color: white; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--deep-navy);
    color: var(--chrome-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =============================================================
   Background — animated subtle scanlines + radial glow
   ============================================================= */

body::before {
    /* Scanlines — fixed-position pattern that doesn't scroll */
    content: "";
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 0.025) 2px,
        rgba(255, 255, 255, 0.025) 3px
    );
    pointer-events: none;
    z-index: 1;
}

body::after {
    /* Radial vignette + faint red glow at top */
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 50% at 50% 0%,
            rgba(255, 41, 41, 0.10),
            transparent 60%
        ),
        radial-gradient(
            ellipse at center,
            transparent 0%,
            rgba(0, 0, 0, 0.6) 100%
        );
    pointer-events: none;
    z-index: 2;
}

main, header, footer { position: relative; z-index: 3; }

/* =============================================================
   Typography
   ============================================================= */

@font-face {
    font-family: "Heatsink Display";
    src: local("Helvetica Neue Condensed Bold"),
         local("HelveticaNeue-CondensedBold"),
         local("Avenir Next Condensed Heavy"),
         local("AvenirNextCondensed-Heavy"),
         local("Impact");
    font-display: swap;
}

h1, h2, h3, .display {
    font-family: "Heatsink Display", "Helvetica Neue", Impact, sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}

h1 { font-size: clamp(48px, 8vw, 96px); line-height: 0.95; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
h3 { font-size: clamp(18px, 2vw, 22px); line-height: 1.2; }

p, li {
    color: var(--muted-text);
    font-size: 16px;
    line-height: 1.65;
}

.eyebrow {
    font-family: "Heatsink Display", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    color: var(--blade-red);
    font-weight: 700;
    margin-bottom: 12px;
}

a { color: var(--station-blue); text-decoration: none; }
a:hover { color: var(--blade-red); }

code, .mono {
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
        "Courier New", monospace;
    font-size: 0.92em;
    color: var(--station-blue);
}

/* =============================================================
   Layout
   ============================================================= */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section {
    padding: clamp(64px, 10vw, 120px) 0;
    position: relative;
}

/* =============================================================
   Top bar — minimal navigation
   ============================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    background: rgba(5, 13, 28, 0.65);
    border-bottom: 1px solid var(--panel-stroke);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Heatsink Display", system-ui, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--chrome-text);
    font-size: 16px;
}
.brand-mark img {
    width: 28px; height: 28px;
    border-radius: 7px;
    box-shadow: 0 0 16px rgba(255, 41, 41, 0.35);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-links a {
    font-size: 13px;
    color: var(--muted-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 120ms ease;
}
.nav-links a:hover { color: var(--blade-red); }

@media (max-width: 600px) {
    .nav-links { gap: 16px; }
    .nav-links li:nth-child(3) { display: none; }
}

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

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-icon {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 420px;
    justify-self: center;
}
.hero-icon img {
    width: 100%; height: 100%;
    border-radius: 22%;
    box-shadow:
        0 0 60px rgba(255, 41, 41, 0.30),
        0 0 120px rgba(255, 41, 41, 0.18),
        0 30px 80px rgba(0, 0, 0, 0.6);
    animation: pulse 5s ease-in-out infinite;
}
.hero-icon::after {
    content: "";
    position: absolute; inset: -20%;
    background: radial-gradient(
        circle,
        rgba(255, 41, 41, 0.15),
        transparent 65%
    );
    z-index: -1;
    animation: pulse-halo 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
@keyframes pulse-halo {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.hero-eyebrow {
    color: var(--blade-red);
    font-family: "Heatsink Display", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.30em;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-eyebrow::before {
    content: ""; width: 8px; height: 8px;
    background: var(--blade-red); border-radius: 50%;
    box-shadow: 0 0 10px var(--blade-red);
    animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

h1 {
    color: var(--chrome-text);
}
h1 .accent {
    color: var(--blade-red);
    text-shadow: 0 0 30px rgba(255, 41, 41, 0.4);
}

.hero-tagline {
    margin-top: 22px;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--muted-text);
    max-width: 560px;
}
.hero-tagline strong {
    color: var(--chrome-text);
    font-weight: 600;
}

.hero-meta {
    margin-top: 28px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 160ms ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--blade-red);
    color: white;
    box-shadow: 0 0 24px rgba(255, 41, 41, 0.35);
}
.btn-primary:hover {
    background: var(--glow-red);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 0 36px rgba(255, 41, 41, 0.55);
}
.btn-secondary {
    background: transparent;
    color: var(--chrome-text);
    border: 1px solid var(--panel-stroke);
}
.btn-secondary:hover {
    border-color: var(--blade-red);
    color: var(--blade-red);
}

.hero-status {
    color: var(--muted-text);
    font-size: 13px;
    font-family: "SF Mono", ui-monospace, Menlo, monospace;
}
.hero-status::before {
    content: "▸ ";
    color: var(--blade-red);
}

/* =============================================================
   Section header (eyebrow + title)
   ============================================================= */

.section-head {
    margin-bottom: 56px;
    text-align: center;
}
.section-head .eyebrow { display: block; margin-bottom: 8px; }
.section-head p {
    margin: 14px auto 0;
    max-width: 640px;
    color: var(--muted-text);
    font-size: 17px;
}

/* =============================================================
   Feature cards
   ============================================================= */

.features {
    background:
        linear-gradient(to bottom, transparent, rgba(13, 26, 51, 0.4), transparent);
}

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

.feature {
    background: rgba(13, 26, 51, 0.55);
    border: 1px solid var(--panel-stroke);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 240ms ease;
    position: relative;
    overflow: hidden;
}
.feature:hover {
    border-color: rgba(255, 41, 41, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 41, 41, 0.10);
}
.feature::before {
    /* Faint glow on hover */
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: radial-gradient(
        300px at var(--mx, 50%) var(--my, 50%),
        rgba(255, 41, 41, 0.08),
        transparent 60%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 240ms ease;
}
.feature:hover::before { opacity: 1; }

.feature-icon {
    width: 44px; height: 44px;
    background: rgba(255, 41, 41, 0.12);
    border: 1px solid rgba(255, 41, 41, 0.4);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blade-red);
    margin-bottom: 16px;
}
.feature-icon svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.feature h3 {
    color: var(--chrome-text);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 17px;
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 600;
}
.feature p { font-size: 14px; line-height: 1.55; }

/* =============================================================
   Screenshot showcase
   ============================================================= */

.showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--panel-stroke);
    color: var(--muted-text);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 160ms ease;
    font-family: inherit;
}
.tab-btn:hover {
    border-color: var(--blade-red);
    color: var(--chrome-text);
}
.tab-btn[aria-selected="true"] {
    background: rgba(255, 41, 41, 0.12);
    border-color: var(--blade-red);
    color: var(--blade-red);
}

.shot-frame {
    background: linear-gradient(135deg,
        rgba(13, 26, 51, 0.7),
        rgba(5, 13, 28, 0.9));
    border: 1px solid var(--panel-stroke);
    border-radius: 14px;
    padding: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 41, 41, 0.10);
    position: relative;
}

.shot-frame img {
    width: 100%;
    border-radius: 8px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.shot-caption {
    margin-top: 14px;
    color: var(--muted-text);
    font-size: 13px;
    text-align: center;
    font-family: "SF Mono", monospace;
}

.shot-pane { display: none; }
.shot-pane.active { display: block; animation: fade-in 240ms ease; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   Privacy / promise band
   ============================================================= */

.promise {
    background:
        linear-gradient(to bottom,
            transparent,
            rgba(255, 41, 41, 0.04),
            transparent);
}
.promise .container {
    text-align: center;
    max-width: 740px;
}
.promise h2 { color: var(--chrome-text); }
.promise h2 .accent { color: var(--blade-red); }
.promise p { font-size: 18px; }

.checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 36px;
}
.check {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: rgba(13, 26, 51, 0.5);
    border: 1px solid var(--panel-stroke);
    border-radius: 10px;
    font-size: 13px;
    font-family: "SF Mono", monospace;
    color: var(--chrome-text);
}
.check svg {
    flex-shrink: 0;
    width: 16px; height: 16px;
    color: var(--bar-green);
}

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

.cta {
    text-align: center;
    background:
        radial-gradient(ellipse at center,
            rgba(255, 41, 41, 0.12),
            transparent 70%);
}
.cta h2 .accent { color: var(--blade-red); }
.cta p { font-size: 18px; max-width: 580px; margin: 18px auto 0; }
.cta .btn { margin-top: 36px; }

/* =============================================================
   Footer
   ============================================================= */

footer {
    border-top: 1px solid var(--panel-stroke);
    padding: 44px var(--gutter) 36px;
    margin-top: 60px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--chrome-text);
    font-family: "Heatsink Display", system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 14px;
}
.footer-brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer-links {
    display: flex; gap: 24px; list-style: none; margin: 0; padding: 0;
}
.footer-links a {
    font-size: 12px;
    color: var(--muted-text);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-weight: 600;
}
.footer-copy {
    color: var(--muted-text);
    font-size: 12px;
    font-family: "SF Mono", monospace;
}

/* =============================================================
   Article (privacy / support pages)
   ============================================================= */

.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px var(--gutter) 80px;
}
.article h1 {
    font-size: clamp(36px, 5vw, 52px);
    color: var(--chrome-text);
    margin-bottom: 12px;
}
.article h1 .accent { color: var(--blade-red); }
.article .updated {
    color: var(--muted-text);
    font-family: "SF Mono", monospace;
    font-size: 13px;
    margin-bottom: 36px;
}
.article h2 {
    font-size: 22px;
    color: var(--chrome-text);
    margin-top: 36px;
    margin-bottom: 14px;
    text-transform: none;
    letter-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 700;
}
.article h3 {
    font-size: 17px;
    color: var(--chrome-text);
    margin-top: 24px;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-family: -apple-system, system-ui, sans-serif;
    font-weight: 600;
}
.article p, .article li { color: var(--muted-text); font-size: 16px; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article a { color: var(--station-blue); border-bottom: 1px solid currentColor; }
.article a:hover { color: var(--blade-red); }

.article .callout {
    background: rgba(13, 26, 51, 0.55);
    border: 1px solid var(--panel-stroke);
    border-left: 3px solid var(--blade-red);
    padding: 18px 22px;
    border-radius: 8px;
    margin: 24px 0;
}
.article .callout p:last-child { margin-bottom: 0; }
