:root {
  --ink: #071b24;
  --muted: #587076;
  --paper: #e8f4f3;
  --surface: #fff;
  --line: #b9d0cf;
  --acid: #2bd6c4;
  --cyan: #ff6b4a;
  --coral: #ffb02e;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, sans-serif; letter-spacing: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }

.noise { position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.topbar { height: 76px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4vw; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 600 21px/1 Space Grotesk, sans-serif; width: max-content; }
.brand-mark, .dialog-mark { display: grid; place-items: center; background: var(--acid); width: 31px; height: 31px; border-radius: 3px; }
.brand-mark svg, .dialog-mark svg { width: 17px; stroke-width: 2.5; }
.system-status { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.system-status span { display: inline-block; width: 7px; height: 7px; background: #72c867; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 4px rgba(114,200,103,.13); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.button { border: 0; border-radius: 4px; min-height: 40px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-weight: 600; font-size: 13px; transition: transform .18s, background .18s, opacity .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: white; }
.button-ghost { background: transparent; border: 1px solid var(--line); }
.button-accent { background: var(--acid); color: var(--ink); }
.button:disabled { opacity: .36; cursor: not-allowed; }
.button svg { width: 16px; }
.icon-button { border: 0; background: transparent; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border-radius: 4px; }
.icon-button:hover { background: rgba(17,19,18,.06); }
.icon-button svg { width: 19px; }
.avatar { width: 38px; height: 38px; border: 0; background: var(--cyan); border-radius: 50%; font-weight: 700; cursor: pointer; }

main { overflow: hidden; }
.workspace { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); align-items: center; gap: clamp(50px, 8vw, 140px); padding: 72px max(4vw, calc((100vw - 1380px)/2)); position: relative; }
.workspace::before { content: "F"; position: absolute; z-index: -1; left: 1.5vw; bottom: -14vw; font: 600 min(58vw, 820px)/.7 Space Grotesk; color: transparent; -webkit-text-stroke: 1px rgba(7,27,36,.08); }
.intro { max-width: 690px; }
.eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); margin: 0 0 22px; }
h1 { font: 500 clamp(62px, 7.5vw, 118px)/.86 Space Grotesk, sans-serif; margin: 0; letter-spacing: 0; }
h1 span { color: var(--muted); }
.intro-copy { max-width: 520px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; color: #405f65; margin: 42px 0 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.trust-row span { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.trust-row svg { width: 15px; color: var(--muted); }

.transfer-panel { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 12px 12px 0 rgba(17,19,18,.07); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.panel-head > div { display: flex; align-items: center; gap: 13px; }
.panel-head h2, .section-heading h2 { margin: 0; font: 600 24px/1.1 Space Grotesk; }
.step-number { width: 28px; height: 28px; border: 1px solid var(--line); display: grid; place-items: center; border-radius: 50%; font-size: 10px; color: var(--muted); }
.secure-label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.secure-label svg { width: 15px; }
.dropzone { width: 100%; min-height: 285px; border: 1px dashed #aeb1aa; border-radius: 4px; background: #fafaf7; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: border .2s, background .2s; padding: 24px; }
.dropzone:hover, .dropzone.is-dragging { background: #ecfffb; border-color: var(--ink); }
.upload-orbit { width: 66px; height: 66px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; margin-bottom: 23px; position: relative; }
.upload-orbit::before { content: ""; position: absolute; inset: -8px; border: 1px solid var(--line); border-radius: 50%; }
.upload-orbit svg { width: 24px; }
.dropzone strong { font: 600 18px Space Grotesk; margin-bottom: 7px; }
.dropzone > span:not(.upload-orbit) { color: var(--muted); font-size: 13px; }
.dropzone small { margin-top: 28px; text-transform: uppercase; color: #8a8f8b; font-size: 9px; letter-spacing: .08em; }
.transfer-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.transfer-options label, .auth-dialog form > label:not(.checkbox) { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 5px; }
.transfer-options label > span, .auth-dialog label > span:first-child { text-transform: uppercase; color: var(--muted); font-size: 9px; letter-spacing: .07em; }
select, .auth-dialog input { border: 0; background: transparent; outline: 0; width: 100%; font-size: 13px; font-weight: 600; }
.button-wide { width: 100%; min-height: 51px; }
.files-list { display: grid; gap: 8px; margin-top: 14px; }
.file-item { border: 1px solid var(--line); padding: 12px; display: flex; align-items: center; gap: 12px; border-radius: 4px; }
.file-type { width: 38px; height: 38px; background: var(--cyan); display: grid; place-items: center; border-radius: 3px; font-size: 9px; font-weight: 700; }
.file-item > div { min-width: 0; flex: 1; }
.file-item strong, .file-item span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item strong { font-size: 12px; }
.file-item span { font-size: 10px; color: var(--muted); margin-top: 3px; }
.file-item button { width: 30px; height: 30px; }

.activity { border-top: 1px solid var(--line); padding: 80px max(4vw, calc((100vw - 1380px)/2)) 110px; background: #d8e8e5; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 35px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { font-size: 44px; }
.text-button { border: 0; background: none; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button svg { width: 15px; }
.transfer-table { border-top: 1px solid var(--ink); }
.table-row { display: grid; grid-template-columns: minmax(300px, 2fr) .8fr .7fr .6fr 44px; align-items: center; gap: 20px; border-bottom: 1px solid #c9cac4; min-height: 96px; }
.table-labels { min-height: 46px; text-transform: uppercase; font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.file-cell { display: flex; align-items: center; gap: 15px; min-width: 0; }
.file-cell img { width: 56px; height: 56px; object-fit: cover; filter: saturate(.9) hue-rotate(145deg); border-radius: 3px; }
.file-cell strong, .file-cell span { display: block; }
.file-cell strong { font-size: 13px; }
.file-cell span { font-size: 10px; color: var(--muted); margin-top: 5px; }
.status { width: max-content; border: 1px solid #c8c9c2; border-radius: 50px; padding: 6px 9px; font-size: 10px; text-transform: uppercase; }
.status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: #58b968; }
.status.expiring i { background: var(--coral); }
.downloads { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.downloads svg { width: 14px; color: var(--muted); }
.empty-state { text-align: center; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; }
.empty-state svg { width: 28px; margin-bottom: 16px; }
.empty-state strong { font: 600 18px Space Grotesk; }
.empty-state span { color: var(--muted); font-size: 12px; margin-top: 6px; }

footer { min-height: 90px; background: var(--ink); color: #bbbdb9; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4vw; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
footer div { display: flex; gap: 30px; }
footer > span:last-child { justify-self: end; display: flex; align-items: center; gap: 5px; }
footer svg { width: 13px; }

dialog { border: 0; border-radius: 6px; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(17,19,18,.64); backdrop-filter: blur(8px); }
.auth-dialog, .success-dialog { width: min(440px, calc(100vw - 30px)); padding: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.dialog-close { position: absolute; right: 18px; top: 18px; }
.dialog-mark { margin-bottom: 25px; }
.auth-dialog .eyebrow, .success-dialog .eyebrow { margin-bottom: 10px; }
.auth-dialog h2, .success-dialog h2 { font: 600 30px/1.1 Space Grotesk; margin: 0 0 10px; }
.dialog-copy, .success-dialog > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 24px; }
.auth-dialog form { display: grid; gap: 10px; }
.auth-dialog form > label:not(.checkbox) { min-height: 58px; }
.auth-dialog input { font-weight: 500; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; margin: 7px 0; font-size: 10px; line-height: 1.5; color: var(--muted); }
.checkbox input { width: auto; margin: 2px 0; accent-color: var(--ink); }
.form-error { margin: 2px 0; padding: 10px 11px; display: flex; align-items: center; gap: 8px; background: #fff0ed; border: 1px solid #efb7ae; border-radius: 4px; color: #8d3327; font-size: 10px; line-height: 1.4; }
.form-error svg { width: 15px; flex: 0 0 auto; }
.switch-auth { width: 100%; border: 0; background: none; margin-top: 17px; font-size: 11px; cursor: pointer; }
.success-dialog { text-align: center; }
.success-icon { margin: 0 auto 24px; width: 58px; height: 58px; display: grid; place-items: center; background: var(--acid); border-radius: 50%; }
.link-field { display: flex; align-items: center; border: 1px solid var(--line); padding: 6px 7px 6px 14px; margin: 24px 0 12px; text-align: left; }
.link-field span { flex: 1; font: 600 12px Space Grotesk; }
.mail-confirmation { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 1px solid var(--line); background: #f7f7f2; margin: 24px 0 12px; padding: 10px; border-radius: 4px; }
.mail-confirmation svg { width: 18px; color: var(--muted); }
.mail-confirmation span { font: 600 12px Space Grotesk; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 12px 17px; border-radius: 4px; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 20px; }
  .system-status { display: none; }
  .nav-actions .icon-button, .button-ghost { display: none; }
  .workspace { grid-template-columns: 1fr; padding: 64px 20px 80px; gap: 48px; min-height: auto; }
  h1 { font-size: clamp(58px, 16vw, 94px); }
  .intro-copy { margin: 30px 0 25px; }
  .transfer-panel { max-width: 600px; width: 100%; justify-self: center; }
  .activity { padding: 65px 20px 80px; }
  .table-row { grid-template-columns: 1fr auto; padding: 16px 0; min-height: 0; }
  .table-labels { display: none; }
  .demo-row > span:nth-of-type(2), .downloads, .demo-row > .icon-button { display: none; }
  footer { grid-template-columns: 1fr auto; padding: 25px 20px; }
  footer div { display: none; }
}

@media (max-width: 520px) {
  .topbar { height: 66px; }
  .brand { font-size: 18px; }
  .nav-actions .button { padding: 0 12px; font-size: 11px; }
  .workspace { padding-top: 46px; }
  h1 { font-size: 16vw; }
  .intro-copy { font-size: 14px; }
  .trust-row { gap: 10px 14px; }
  .trust-row span { font-size: 9px; }
  .transfer-panel { padding: 18px; box-shadow: 7px 7px 0 rgba(17,19,18,.07); }
  .panel-head h2 { font-size: 20px; }
  .dropzone { min-height: 230px; }
  .transfer-options { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 36px; }
  .section-heading .text-button { font-size: 0; }
  .file-cell img { width: 48px; height: 48px; }
  .file-cell strong { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .auth-dialog, .success-dialog { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
