:root {
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f5f8ff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand svg { width: 32px; height: 32px; }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--body); font-weight: 500; }
.nav nav a:hover, .acct a:not(.btn-sm):hover { color: var(--blue); }
.acct { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.btn-sm { padding: 8px 16px; border-radius: 10px; background: var(--blue); color: #fff; }
.btn-sm:hover { background: var(--blue-dark); }

/* ---------- buttons ---------- */
.btn-full, .btn-outline { display: block; width: 100%; padding: 12px 18px; border: 1px solid var(--blue); border-radius: 12px; font: inherit; font-weight: 700; text-align: center; cursor: pointer; }
.btn-full { background: var(--blue); color: #fff; }
.btn-full:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue); }
.btn-outline:hover { background: var(--tint); }
button:disabled { cursor: default; opacity: .75; }
button.loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 10px -2px 0; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.hero h1 { margin: 18px 0 0; font-size: clamp(40px, 5.6vw, 62px); line-height: 1.05; font-weight: 800; }
.hero h1 span { color: var(--blue); }
.hero-text p { margin: 20px 0 0; font-size: 19px; color: var(--body); max-width: 460px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--ink); font-weight: 500; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; flex: none; }

/* ---------- uploader ---------- */
.uploader { padding: 14px; border-radius: 24px; background: var(--tint); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(37, 99, 235, .35); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 340px; padding: 32px 20px; border: 2px dashed #bfdbfe; border-radius: 16px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: #f8fbff; }
.drop-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 12px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.drop-icon svg { width: 38px; height: 38px; }
.drop strong { font-size: 20px; }
.drop-sub { color: var(--body); }
.drop-sub u { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.progress { display: flex; flex-direction: column; justify-content: center; min-height: 340px; padding: 32px 28px; border-radius: 16px; background: #fff; }
.file-row { display: flex; align-items: center; gap: 14px; }
.file-icon svg { width: 44px; height: 44px; display: block; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 14px; color: var(--muted); }
.cancel { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f9; color: var(--body); font-size: 22px; line-height: 1; cursor: pointer; }
.cancel:hover { background: #e2e8f0; color: var(--ink); }
.bar { height: 10px; margin-top: 26px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, var(--blue-dark)); transition: width .2s linear; }
.status { display: flex; justify-content: space-between; margin-top: 12px; font-size: 15px; color: var(--body); }
#pct { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- how it works ---------- */
.how { padding-bottom: 88px; }
h2 { margin: 0 0 36px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: 18px; }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 800; }
.steps h3, .card h3 { margin: 18px 0 6px; font-size: 19px; }
.steps p, .card p { margin: 0; color: var(--body); }

/* ---------- features ---------- */
.features { padding: 80px 0 88px; background: var(--tint); border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.card svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }

/* ---------- log in / sign up ---------- */
.auth-page { display: flex; justify-content: center; padding: 64px 16px 88px; background: var(--tint); }
.auth { width: 100%; max-width: 420px; padding: 36px 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 60px -32px rgba(37, 99, 235, .35); }
.auth h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.auth-sub { margin: 6px 0 24px; color: var(--body); }
.auth label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a, .auth-alt a, .check a, .doc a { color: var(--blue); font-weight: 600; }
.label-row a { font-size: 14px; }
.auth input[type=email], .auth input[type=password] { display: block; width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; color: var(--ink); }
.auth input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.auth input.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.auth .check { display: flex; align-items: center; gap: 8px; margin: 18px 0 22px; font-weight: 500; color: var(--body); }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.alert { padding: 10px 12px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; font-weight: 600; }
.auth-alt { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--body); }
.done { text-align: center; }
.done p { color: var(--body); }
.done .btn-outline { margin-top: 18px; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.done-icon svg { width: 30px; height: 30px; }

/* ---------- pricing ---------- */
.page-head { padding-top: 64px; padding-bottom: 40px; text-align: center; }
.page-head h1 { margin: 0; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1; }
.page-head p { margin: 14px auto 0; max-width: 520px; font-size: 18px; color: var(--body); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 24px 60px -28px rgba(37, 99, 235, .45); }
.plan .pill { position: absolute; top: -14px; left: 28px; }
.plan h2 { margin: 0; font-size: 20px; text-align: left; }
.price { margin: 12px 0 0; font-size: 42px; font-weight: 800; line-height: 1; }
.price span { font-size: 16px; font-weight: 500; color: var(--body); }
.plan-sub { margin: 8px 0 0; color: var(--body); }
.plan .ticks { margin: 22px 0 28px; font-size: 15px; }
.plans-note { padding-top: 28px; padding-bottom: 88px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- about / terms / privacy ---------- */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 88px; color: var(--body); font-size: 17px; }
.doc h1 { margin: 0 0 8px; color: var(--ink); font-size: clamp(32px, 4.4vw, 44px); line-height: 1.15; }
.doc h2 { margin: 36px 0 10px; color: var(--ink); font-size: 21px; text-align: left; }
.doc .lede { font-size: 20px; color: var(--ink); }
.doc .updated { margin-top: 0; font-size: 14px; color: var(--muted); }
.doc li { margin-bottom: 8px; }
.doc b { color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a:hover { color: var(--blue); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .steps, .cards, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 440px; gap: 32px; }
}
@media (max-width: 880px) {
  .nav nav { display: none; }
  .acct { margin-left: auto; }
}
@media (max-width: 520px) {
  .auth { padding: 28px 20px; }
  .auth-page { padding-top: 32px; }
  .drop, .progress { min-height: 260px; }
  .progress { padding: 24px 18px; }
  .foot .wrap { flex-direction: column; gap: 4px; }
}

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.contact-cards .card { padding: 24px; }
.contact-cards h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.contact-cards p { margin: 0 0 14px; font-size: 15px; }
.contact-cards a { font-size: 15px; }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- shared file page ---------- */
.file-page { padding: 48px 16px 88px; background: var(--tint); }
.file-card { --ar: 16 / 9; width: min(100%, 860px, calc(70vh * var(--ar))); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 60px -32px rgba(37, 99, 235, .35); }
.player { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: contain; background: #000; }

/* video player */
.vp { position: relative; background: #000; user-select: none; }
.vp.full { display: flex; align-items: center; }
.vp.full .player { max-height: none; height: 100%; }
.vp-big, .vp-spin, .vp-controls { display: none; }
.vp.ready .vp-big { display: grid; }
.vp.ready .vp-controls { display: block; }
.vp-big { position: absolute; top: 50%; left: 50%; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 10px 34px rgba(37, 99, 235, .55); cursor: pointer; transition: transform .15s, opacity .2s, background .15s; }
.vp-big svg { width: 40px; height: 40px; margin-left: 5px; fill: currentColor; }
.vp-big:hover { background: var(--blue-dark); transform: scale(1.07); }
.vp:not(.paused) .vp-big { opacity: 0; pointer-events: none; transform: scale(.85); }
.vp.buffering:not(.paused) .vp-spin { display: block; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; pointer-events: none; }
.vp-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; transition: opacity .25s; }
.vp.idle .vp-controls { opacity: 0; pointer-events: none; }
.vp.idle { cursor: none; }
.vp-seek { position: relative; height: 16px; cursor: pointer; touch-action: none; }
.vp-seek:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; border-radius: 4px; }
.vp-track { position: absolute; left: 0; right: 0; top: 6px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .25); transition: height .15s, top .15s; }
.vp-seek:hover .vp-track { top: 5px; height: 6px; }
.vp-buf, .vp-prog { position: absolute; top: 0; bottom: 0; left: 0; width: 0; }
.vp-buf { background: rgba(255, 255, 255, .35); }
.vp-prog { background: #3b82f6; }
.vp-thumb { position: absolute; top: 2px; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, .6); transform: scale(0); transition: transform .15s; }
.vp-seek:hover .vp-thumb, .vp.paused .vp-thumb { transform: scale(1); }
.vp-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.vp-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; }
.vp-btn:hover { background: rgba(255, 255, 255, .15); }
.vp-btn svg { width: 24px; height: 24px; fill: currentColor; }
.vp .i-pause, .vp .i-muted, .vp.muted .i-vol, .vp .i-exit, .vp.full .i-fs { display: none; }
.vp:not(.paused) .i-play { display: none; }
.vp:not(.paused) .i-pause, .vp.muted .i-muted, .vp.full .i-exit { display: block; }
.vp-vol { --vol: 100%; width: 80px; height: 4px; margin: 0 6px 0 0; border-radius: 4px; background: linear-gradient(90deg, #fff var(--vol), rgba(255, 255, 255, .3) var(--vol)); appearance: none; -webkit-appearance: none; cursor: pointer; }
.vp-vol::-webkit-slider-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; -webkit-appearance: none; }
.vp-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.vp-time { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-speed { width: auto; min-width: 44px; margin-left: auto; padding: 0 8px; font: inherit; font-size: 14px; font-weight: 700; }
@media (max-width: 520px) {
  .vp-vol { display: none; }
  .vp-big { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .vp-big svg { width: 32px; height: 32px; }
}
.file-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 22px; }
.file-bar .btn-sm { flex: none; font-weight: 600; }
.file-note { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--body); }
.file-note a { color: var(--blue); font-weight: 600; }
