:root {
  color-scheme: dark;
  --bg: #06111c;
  --bg-soft: #0a1928;
  --panel: rgba(16, 34, 52, .86);
  --panel-solid: #102234;
  --panel-light: #162b41;
  --line: #28435a;
  --text: #f3f7fb;
  --muted: #a8b7c6;
  --accent: #36e6b5;
  --accent-dark: #0b8d72;
  --blue: #58a6ff;
  --danger: #ff6d7d;
  --warning: #ffc861;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, #113b4d 0, transparent 36rem), var(--bg); color: var(--text); line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .055; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #03130f; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.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; }
.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .08em; }
.wordmark-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(54,230,181,.5); border-radius: 14px; color: var(--accent); font-size: 1.2rem; font-weight: 900; background: rgba(54,230,181,.08); }
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font-size: .85rem; }
.wordmark small { color: var(--muted); font-size: .65rem; letter-spacing: .04em; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a, .nav-button { padding: 10px 14px; color: var(--muted); text-decoration: none; border: 0; background: none; cursor: pointer; }
.site-header nav a:hover, .nav-button:hover { color: var(--text); }
.site-header .nav-primary { border: 1px solid rgba(54,230,181,.4); border-radius: 12px; color: var(--accent); }
.site-header form { margin: 0; }
.hero { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; min-height: 670px; padding: 80px 0 120px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 16px 0 24px; font-size: clamp(3rem, 7vw, 6.7rem); line-height: .92; letter-spacing: -.065em; }
h1 span { color: transparent; background: linear-gradient(90deg, var(--accent), #8fffe1); -webkit-background-clip: text; background-clip: text; }
.lead { max-width: 720px; color: #c0ccd7; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-copy .lead { max-width: 650px; }
.hero-actions, .form-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 13px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #021811; }
.button-primary:hover { background: #64f3cc; }
.button-secondary { border-color: var(--line); background: rgba(17,38,57,.6); color: var(--text); }
.button-danger { border-color: rgba(255,109,125,.45); background: rgba(255,109,125,.08); color: #ff9ba6; }
.button-wide { width: 100%; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.trust-card { position: relative; overflow: hidden; padding: 40px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(145deg, rgba(24,54,76,.92), rgba(8,24,37,.92)); box-shadow: var(--shadow); }
.trust-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -130px; bottom: -140px; background: var(--accent); filter: blur(70px); opacity: .16; }
.trust-orbit { display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid rgba(54,230,181,.42); border-radius: 50%; box-shadow: inset 0 0 0 14px rgba(54,230,181,.04), 0 0 45px rgba(54,230,181,.12); }
.trust-orbit span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #052018; font-weight: 900; letter-spacing: .08em; }
.trust-card h2 { margin: 28px 0 20px; font-size: 1.65rem; }
.check-list { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; color: #c8d4df; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 900; }
.section { padding: 105px 0; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading h2 { margin: 12px 0 18px; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); font-size: 1.1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-grid.compact { grid-template-columns: repeat(2, 1fr); }
.feature-card { min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,29,44,.72); }
.feature-card h2, .feature-card h3 { margin: 30px 0 10px; font-size: 1.25rem; }
.feature-card p { color: var(--muted); }
.feature-number { color: var(--accent); font-family: ui-monospace, monospace; font-size: .8rem; }
.compliance-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11,29,43,.72); }
.compliance-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.compliance-grid div { padding: 28px 22px; border-right: 1px solid var(--line); }
.compliance-grid div:first-child { border-left: 1px solid var(--line); }
.compliance-grid strong, .compliance-grid span { display: block; }
.compliance-grid strong { color: var(--accent); }
.compliance-grid span { margin-top: 4px; color: var(--muted); font-size: .83rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0; color: var(--muted); font-size: .86rem; }
.site-footer strong, .site-footer span { display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.auth-shell { display: grid; place-items: center; min-height: 650px; padding: 60px 0 100px; }
.auth-card { width: min(480px, 100%); padding: 44px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); }
.auth-card h1 { margin: 12px 0 14px; font-size: 3.4rem; }
.auth-card p { color: var(--muted); }
.form-stack { display: grid; gap: 12px; margin-top: 32px; }
label > span, .form-stack label, .password-panel label { display: block; margin-bottom: 8px; color: #c4d0dc; font-size: .9rem; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #0a1928; color: var(--text); padding: 13px 14px; }
input:hover, textarea:hover, select:hover { border-color: #3f627d; }
textarea { resize: vertical; }
.admin-shell { padding: 70px 0 120px; }
.admin-shell.narrow { max-width: 980px; }
.admin-heading, .detail-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.admin-heading h1, .detail-header h1 { margin: 10px 0 10px; font-size: clamp(2.6rem, 6vw, 5rem); }
.admin-heading p, .detail-header p { color: var(--muted); margin: 0; }
.admin-warning { margin-bottom: 24px; padding: 16px 18px; border: 1px solid rgba(255,200,97,.4); border-radius: 14px; background: rgba(255,200,97,.08); color: #ffe3ad; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 26px; }
.stat-grid div { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: rgba(14,32,49,.78); }
.stat-grid span, .stat-grid strong { display: block; }
.stat-grid span { color: var(--muted); font-size: .8rem; }
.stat-grid strong { margin-top: 7px; font-size: 1.65rem; }
.table-card, .upload-card, .share-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 55px rgba(0,0,0,.18); }
.table-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.table-header h2 { margin: 0; font-size: 1.15rem; }
.table-header span { color: var(--accent); font-size: .8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 18px 20px; border-bottom: 1px solid rgba(40,67,90,.68); vertical-align: middle; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
td > strong, td > span { display: block; }
td > span { color: var(--muted); font-size: .82rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(54,230,181,.025); }
.brand-pill { display: inline-flex !important; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .68rem !important; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.brand-nord { color: var(--accent) !important; background: rgba(54,230,181,.1); border: 1px solid rgba(54,230,181,.22); }
.brand-cobra { color: #d4deea !important; background: rgba(199,217,236,.08); border: 1px solid rgba(199,217,236,.2); }
.text-link { color: var(--accent); text-decoration: none; font-weight: 750; white-space: nowrap; }
.empty-state { padding: 70px 30px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: rgba(54,230,181,.1); color: var(--accent); font-size: 1.8rem; }
.empty-state p { color: var(--muted); }
.upload-card { overflow: hidden; }
.upload-card fieldset { padding: 30px; border: 0; border-bottom: 1px solid var(--line); }
.upload-card legend { float: left; width: 100%; margin-bottom: 24px; font-weight: 850; font-size: 1.05rem; }
.upload-card legend + * { clear: both; }
.brand-select { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.brand-select label { cursor: pointer; }
.brand-select input { position: absolute; opacity: 0; width: 1px; }
.brand-select span { display: block; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #0b1b2a; }
.brand-select strong, .brand-select small { display: block; }
.brand-select small { color: var(--muted); }
.brand-select input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(54,230,181,.06); }
.brand-select input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-grid.three { grid-template-columns: repeat(3,1fr); margin-bottom: 0; }
label small { color: var(--muted); font-weight: 500; }
.drop-zone { display: grid; place-items: center; min-height: 210px; padding: 28px; border: 1px dashed #47708d; border-radius: 18px; background: rgba(4,15,25,.4); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--accent); background: rgba(54,230,181,.055); }
.drop-zone.has-file { border-style: solid; border-color: var(--accent); }
.drop-zone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-zone strong, .drop-zone small { display: block; }
.drop-zone small { color: var(--muted); }
.drop-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 15px; border-radius: 15px; background: rgba(54,230,181,.1); color: var(--accent); font-size: 1.5rem; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.upload-card .form-actions { justify-content: flex-end; padding: 0 30px 30px; }
.upload-progress { position: relative; overflow: hidden; margin: 26px 30px; height: 50px; border: 1px solid var(--line); border-radius: 12px; background: #081725; }
.upload-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(54,230,181,.18); transition: width .2s; }
.upload-progress strong { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; font-size: .85rem; }
.field-error { min-height: 1.5em; margin: 0 30px; color: #ff9ba6; }
.detail-header { align-items: center; }
.detail-header .brand-pill { margin-bottom: 10px; }
.share-card { padding: 28px; margin-bottom: 20px; border-color: rgba(54,230,181,.35); background: linear-gradient(145deg, rgba(18,53,61,.92), rgba(10,27,42,.95)); }
.share-card h2 { margin: 10px 0; font-size: 1.7rem; }
.share-card p { color: var(--muted); }
.copy-field { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-feedback { min-height: 1.5em; margin: 8px 0 0 !important; color: var(--accent) !important; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.detail-card { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: rgba(15,33,50,.8); }
.detail-card span, .detail-card strong, .detail-card small { display: block; }
.detail-card span, .detail-card small { color: var(--muted); }
.detail-card strong { margin: 8px 0 4px; font-size: 1.2rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.detail-actions { justify-content: space-between; }
.detail-actions form { margin: 0; }
.action-group { display: flex; flex-wrap: wrap; gap: 12px; }
.download-shell { display: grid; place-items: center; min-height: 720px; padding: 70px 0 110px; }
.download-stage { width: min(760px, 100%); padding: 52px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(155deg, rgba(18,40,60,.95), rgba(7,21,34,.97)); box-shadow: var(--shadow); }
.status-mark { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 26px; border: 1px solid rgba(54,230,181,.4); border-radius: 22px; background: rgba(54,230,181,.08); color: var(--accent); font-size: 1.8rem; font-weight: 900; }
.download-stage h1 { margin: 12px 0 16px; font-size: clamp(2.5rem, 7vw, 5rem); }
.file-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 34px; padding: 18px; border: 1px solid rgba(54,230,181,.25); border-radius: 18px; background: rgba(54,230,181,.05); }
.file-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #031811; font-weight: 900; }
.file-main { min-width: 0; }
.file-main > strong, .file-main > span { display: block; }
.file-main > span > span { display: inline; }
.file-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-main span { color: var(--muted); font-size: .78rem; }
.download-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.download-meta div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.download-meta span, .download-meta strong { display: block; }
.download-meta span { color: var(--muted); font-size: .75rem; }
.download-meta strong { margin-top: 3px; }
.privacy-proof { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: min(760px,100%); margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(7,22,34,.75); }
.privacy-proof .shield { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(54,230,181,.1); color: var(--accent); }
.privacy-proof strong, .privacy-proof span { display: block; }
.privacy-proof span { color: var(--muted); font-size: .77rem; }
.privacy-proof a { color: var(--accent); font-size: .82rem; }
.password-panel, .download-error { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5,18,29,.64); }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.password-panel .field-error { margin: 8px 0 0; }
.message-shell { min-height: 650px; padding: 120px 0; }
.message-shell h1 { max-width: 800px; font-size: clamp(2.6rem, 7vw, 5.5rem); }
.message-shell p { color: var(--muted); }
.status-code { color: var(--accent); font-family: ui-monospace, monospace; font-size: 1.4rem; }
.legal-page { max-width: 900px; padding: 90px 0 130px; }
.legal-page h1 { margin: 12px 0 40px; font-size: clamp(3rem, 7vw, 6rem); }
.legal-page section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-page h2 { font-size: 1.25rem; }
.legal-page p, .legal-page li { color: #c0cbd6; }
.legal-page li + li { margin-top: 8px; }
.legal-page address { white-space: pre-line; font-style: normal; color: #c0cbd6; }
.legal-note { margin-top: 40px; padding: 18px; border-left: 3px solid var(--accent); background: rgba(54,230,181,.05); font-size: .86rem; }
.flash-stack { position: fixed; z-index: 50; top: 88px; right: 20px; width: min(420px, calc(100% - 40px)); }
.flash { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #102436; box-shadow: var(--shadow); }
.flash-error { border-color: rgba(255,109,125,.45); }
.flash-success { border-color: rgba(54,230,181,.45); }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 55px; }
  .feature-grid, .compliance-grid, .stat-grid { grid-template-columns: repeat(2,1fr); }
  .compliance-grid div:nth-child(odd) { border-left: 1px solid var(--line); }
  .form-grid.three { grid-template-columns: 1fr; }
  .site-header nav a:not(.nav-primary) { display: none; }
}
@media (max-width: 640px) {
  .shell, .site-header, .site-footer { width: min(100% - 24px, 1180px); }
  .site-header { padding: 14px 0; }
  .wordmark small { display: none; }
  .site-header .nav-primary { font-size: .8rem; padding: 8px 10px; }
  .nav-button { font-size: .8rem; padding: 8px; }
  .hero { min-height: 0; padding: 70px 0 90px; }
  h1 { letter-spacing: -.05em; }
  .trust-card, .download-stage, .auth-card { padding: 28px 22px; border-radius: 22px; }
  .feature-grid, .feature-grid.compact, .compliance-grid, .stat-grid, .form-grid, .detail-grid, .download-meta { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .compliance-grid div { border-left: 1px solid var(--line); }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .admin-heading, .detail-header { align-items: flex-start; flex-direction: column; }
  .admin-heading .button { width: 100%; }
  .brand-select { grid-template-columns: 1fr; }
  .upload-card fieldset { padding: 22px 18px; }
  .upload-card .form-actions { padding: 0 18px 22px; }
  .upload-card .form-actions .button { flex: 1; }
  .file-card { grid-template-columns: auto 1fr; }
  .file-card .button { grid-column: 1 / -1; }
  .privacy-proof { grid-template-columns: auto 1fr; }
  .privacy-proof a { grid-column: 2; }
  .copy-field, .inline-form { grid-template-columns: 1fr; }
  .table-header span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (prefers-contrast: more) {
  :root { --line: #6f879a; --muted: #d0d9e1; }
  .button-primary { border-color: #fff; }
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --bg: #f2f7f8; --bg-soft: #e9f1f3; --panel: rgba(255,255,255,.94); --panel-solid: #fff; --panel-light: #f4f8fa; --line: #b9cbd3; --text: #0a1a24; --muted: #536773; --accent: #087a62; --accent-dark: #075e4d; --shadow: 0 24px 70px rgba(22,52,64,.12); }
  body { background: radial-gradient(circle at 85% 0%, #cbe9e6 0, transparent 36rem), var(--bg); }
  body::before { opacity: .08; }
  .lead, .legal-page p, .legal-page li { color: #405762; }
  input, textarea, select, .brand-select span { background: #fff; }
  .button-primary { color: #fff; }
  .button-secondary { background: rgba(255,255,255,.7); }
  .trust-card, .download-stage { background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(231,244,246,.97)); }
  .feature-card, .stat-grid div, .detail-card { background: rgba(255,255,255,.82); }
  .upload-progress { background: #edf4f5; }
}
