/* Stealth-IP - dark theme carried over from the 2008 original.
   Same black background, white text, blue accent on the logo. */

:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #b8b8b8;
    --accent: #4a9eff;
    --panel: #0d0d0d;
    --border: #2a2a2a;
    --danger: #801010;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Bitstream Vera Sans", "Trebuchet MS", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.brand {
    text-align: center;
    padding: 28px 16px 8px;
}
.brand img { max-width: 100%; height: auto; display: inline-block; }

main {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ---- hero / wordmark ---- */

.hero {
    text-align: center;
    padding: 34px 0 8px;
}

/* The wordmark is real text, not an image: it stays crisp at any size, scales
   on retina displays, is selectable, and reads correctly to screen readers. */
.wordmark {
    margin: 0;
    font-size: clamp(38px, 7vw, 68px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.wordmark .stealth {
    background: linear-gradient(180deg, #ffffff 0%, #d8dee6 42%, #9aa6b4 58%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.wordmark .dash {
    color: #4a9eff;
    -webkit-text-fill-color: #4a9eff;
    text-shadow: 0 0 18px rgba(74, 158, 255, .55);
}

.wordmark .ip {
    background: linear-gradient(180deg, #9ad2ff 0%, #4a9eff 45%, #1d6fd0 70%, #8fd0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(74, 158, 255, .45));
}

.tagline {
    margin: 8px 0 0;
    font-size: clamp(12px, 1.6vw, 14px);
    letter-spacing: .34em;
    text-transform: uppercase;
    color: #7f8b99;
}

.hero-art {
    position: relative;
    margin: 26px 0 6px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    line-height: 0;
}

/* Feather the banner into the black background so it does not look like a
   pasted rectangle. */
.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,.85) 100%),
        linear-gradient(to right, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, rgba(0,0,0,.8) 100%);
}

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- landing form ---- */

.celo-form {
    margin: 22px 0 34px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.field-row label {
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: .02em;
}

.field-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--fg);
    background: #141414;
    border: 1px solid #444;
    border-radius: 4px;
}

.field-row input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, .25);
}

.options {
    border: 0;
    padding: 0;
    margin: 18px 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

@media (max-width: 560px) {
    .options { grid-template-columns: 1fr; }
}

.opt {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 14px;
    color: #e4e4e4;
}

.opt input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin: 0;
    border: 1px solid #666;
    border-radius: 2px;
    background: #141414;
    cursor: pointer;
    position: relative;
}

.opt input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.opt input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.opt input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button.go {
    width: 100%;
    padding: 11px 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #06121f;
    background: linear-gradient(#8cc4ff, #4a9eff);
    border: 1px solid #2b6fb8;
    border-radius: 4px;
    cursor: pointer;
}

button.go:hover { background: linear-gradient(#a5d1ff, #5fa9ff); }
button.go:active { transform: translateY(1px); }

/* ---- notes ---- */

.notes {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 12.5px;
    color: var(--muted);
}

.notes p { margin: 0 0 12px; }
.notes .muted { color: #9a9a9a; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
}

.footer-links.legal {
    margin-top: 8px;
    border-top: 0;
    padding-top: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.sig {
    text-align: center;
    padding: 14px 20px 26px;
    font-size: 12.5px;
    font-weight: 400;
    color: #6d7885;
}

.sig a {
    color: #8fa4ba;
}

.provided-by {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11.5px;
    letter-spacing: .05em;
    color: #6d7885;
}

.provided-by a { color: #8fa4ba; }

/* ---- error page ---- */

.error-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 3px solid var(--fg);
    padding: 16px;
    margin-top: 30px;
    background: var(--panel);
}

.error-mark {
    flex: 0 0 auto;
    background: var(--danger);
    color: var(--fg);
    font-weight: 700;
    font-size: 54px;
    line-height: 1;
    padding: 2px 14px;
    border: 1px solid #602020;
}

.error-text h1 {
    margin: 0 0 10px;
    font-size: 15pt;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.error-text p { margin: 0 0 10px; font-size: 14px; }
.error-url code { color: #ffb3b3; word-break: break-all; font-size: 12.5px; }

/* ---- legal pages ---- */

.legal-page {
    max-width: 760px;
    padding-top: 44px;
    font-size: 14.5px;
    color: #cfd6de;
}

.legal-page h1 {
    font-size: clamp(26px, 4vw, 36px);
    margin: 0 0 6px;
    color: #fff;
    letter-spacing: -0.01em;
}

.legal-meta {
    margin: 0 0 28px;
    font-size: 12.5px;
    color: #7f8b99;
    letter-spacing: .04em;
}

.legal-page h2 {
    font-size: 17px;
    margin: 32px 0 10px;
    color: #fff;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.legal-page h3 {
    font-size: 14.5px;
    margin: 20px 0 6px;
    color: #9ad2ff;
}

.legal-page p,
.legal-page li {
    line-height: 1.65;
}

.legal-page ul {
    padding-left: 22px;
    margin: 10px 0;
}

.legal-page li { margin-bottom: 6px; }

.legal-page strong { color: #fff; }

.legal-back {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* ---- proxied page shell ---- */

.frame-shell {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.frame-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    flex: 0 0 auto;
}

.frame-bar form { display: flex; flex: 1; gap: 8px; margin: 0; min-width: 0; }

.frame-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 5px 9px;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--fg);
    background: #141414;
    border: 1px solid #444;
    border-radius: 3px;
}

.frame-bar button {
    padding: 5px 12px;
    font-family: inherit;
    font-size: 12.5px;
    color: #06121f;
    background: #4a9eff;
    border: 1px solid #2b6fb8;
    border-radius: 3px;
    cursor: pointer;
}

.frame-bar .home { color: var(--accent); white-space: nowrap; }

.frame-shell iframe {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 560px) {
    .field-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .error-card { flex-direction: column; }
}
