:root {
  color-scheme: dark;
  --panel: rgba(13, 18, 31, 0.8);
  --panel-strong: rgba(18, 25, 42, 0.94);
  --line: rgba(121, 147, 196, 0.16);
  --line-strong: rgba(121, 147, 196, 0.3);
  --text: #eef4ff;
  --muted: #9fb0cf;
  --brand: #69a8ff;
  --brand-dark: #2459bd;
  --accent: #ff9c63;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(74, 140, 255, 0.2), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(255, 144, 85, 0.16), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(57, 91, 183, 0.18), transparent 30%),
    linear-gradient(180deg, #060913 0%, #0b1020 52%, #0f1527 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  background: none;
}

.page-shell {
  position: relative;
  overflow-x: hidden;
}

.backdrop-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(105, 168, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 168, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.68;
  pointer-events: none;
}

.orb-left {
  width: 380px;
  height: 380px;
  top: 80px;
  left: -140px;
  background: rgba(64, 118, 255, 0.26);
}

.orb-right {
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: 40px;
  background: rgba(255, 146, 83, 0.22);
}

.shell-width {
  width: var(--shell);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
}

.brand {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.topnav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.topnav a:hover,
.support-links a:hover,
.result-box a:hover,
.inline-link:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-chip,
.muted-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 22, 38, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.glass-card {
  background: var(--panel);
  border: 1px solid rgba(138, 164, 215, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(105, 168, 255, 0.12);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-copy h1,
.download-header h1,
.state-card h1,
.panel-intro h2,
.dashboard-hero h1,
.auth-copy h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.hero-copy h1,
.dashboard-hero h1,
.auth-copy h1 {
  font-size: clamp(44px, 6vw, 78px);
}

.download-header h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.hero-copy p,
.panel-intro p,
.download-header p,
.state-card p,
.feature-card p,
.stack-item p,
.auth-copy p,
.empty-box,
.file-meta-line,
.file-links a {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.landing-layout {
  padding: 42px 0 46px;
}

.hero-copy {
  max-width: 860px;
  padding: 28px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.hero-panel-title,
.feature-title,
.info-title,
.meta-value,
.result-label,
.file-name,
.section-title {
  display: block;
  font-weight: 700;
}

.hero-panel-title,
.section-title {
  margin-bottom: 16px;
  font-size: 22px;
  font-family: "Manrope", sans-serif;
}

.feature-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.stack-item,
.file-stat-row {
  display: flex;
  gap: 14px;
}

.stack-item {
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.stack-item .material-symbols-outlined,
.feature-card .material-symbols-outlined,
.stat-card .material-symbols-outlined {
  color: var(--brand);
  font-size: 28px;
}

.stack-item strong {
  display: block;
  margin-bottom: 4px;
}

.feature-grid,
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 30px;
}

.feature-card,
.info-card,
.stat-card {
  padding: 22px;
  border-radius: 24px;
}

.feature-title {
  margin-bottom: 10px;
  font-size: 20px;
  font-family: "Manrope", sans-serif;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.auth-shell {
  min-height: 100vh;
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.95fr 0.85fr;
  gap: 36px;
  align-items: center;
  min-height: 100vh;
  padding: 40px 0;
}

.auth-copy {
  padding-right: 20px;
}

.auth-card,
.upload-panel,
.files-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.auth-form,
.upload-form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.input-group input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.input-group input:focus {
  border-color: rgba(105, 168, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(105, 168, 255, 0.14);
  transform: translateY(-1px);
}

.file-drop input {
  padding: 22px 18px;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(105, 168, 255, 0.08), rgba(105, 168, 255, 0.02)),
    var(--panel-strong);
}

.wide {
  grid-column: 1 / -1;
}

.primary-button,
.secondary-button,
.ghost-button,
.button-link,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 22px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.primary-button,
.button-link {
  width: 100%;
  margin-top: 22px;
  padding: 18px 22px;
  border: 0;
  background: linear-gradient(135deg, #2f67d4 0%, #6caeff 100%);
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 22px 40px rgba(26, 92, 209, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.button-link:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.ghost-button,
.secondary-button,
.small-button {
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 24, 39, 0.94);
  color: var(--text);
  box-shadow: none;
}

.secondary-button {
  width: 100%;
  margin-top: 16px;
}

.slim-button {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
}

.cta-button {
  width: auto;
  margin-top: 0;
}

.status-box,
.result-box,
.note-row,
.empty-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(19, 26, 42, 0.82);
}

.status-box.error {
  border-color: rgba(207, 63, 69, 0.25);
  background: rgba(207, 63, 69, 0.14);
  color: #ffb9be;
}

.status-box.success {
  border-color: rgba(30, 157, 99, 0.24);
  background: rgba(30, 157, 99, 0.14);
  color: #9ce7c3;
}

.result-box {
  display: grid;
  gap: 14px;
}

.result-box a {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand);
  word-break: break-word;
}

.dashboard-layout {
  padding: 22px 0 46px;
}

.dashboard-hero {
  max-width: 760px;
  margin-bottom: 26px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.files-panel {
  min-height: 520px;
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.files-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.files-list {
  display: grid;
  gap: 14px;
}

.file-row {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.file-row-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.file-name {
  font-size: 18px;
  margin-bottom: 6px;
  word-break: break-word;
}

.file-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.file-stat-row {
  flex-wrap: wrap;
  margin-top: 14px;
}

.file-stat {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(105, 168, 255, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.file-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.file-links a {
  color: var(--brand);
  word-break: break-word;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.danger-button {
  border-color: rgba(207, 63, 69, 0.24);
  color: #a2353a;
}

.download-shell {
  min-height: 100vh;
}

.download-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 0 40px;
}

.download-shell,
.download-shell * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.download-card {
  width: min(760px, 100%);
  padding: 34px;
  border-radius: 40px;
}

.download-header {
  text-align: center;
}

.download-header h1 {
  font-size: clamp(30px, 4vw, 52px);
}

.state-card h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.file-icon-badge {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 32px 0 20px;
}

.file-icon-surface {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: rgba(105, 168, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(105, 168, 255, 0.08);
  transform: rotate(3deg);
}

.file-icon-surface .material-symbols-outlined {
  font-size: 62px;
  color: var(--brand);
}

.file-lock {
  position: absolute;
  right: calc(50% - 76px);
  top: -8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
  transform: rotate(-12deg);
}

.meta-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(105, 168, 255, 0.1);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(90, 109, 140, 0.5);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.meta-card-alert {
  background: rgba(255, 156, 99, 0.1);
  border-color: rgba(255, 156, 99, 0.2);
}

.meta-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: rgba(105, 168, 255, 0.1);
  color: var(--brand);
}

.meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.detail-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

.detail-line strong {
  color: var(--text);
  font-size: 18px;
}

.note-row {
  color: var(--muted);
  line-height: 1.65;
}

.support-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.state-card {
  text-align: center;
}

@media (max-width: 1080px) {
  .landing-layout,
  .auth-layout,
  .dashboard-grid,
  .feature-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .shell-width {
    width: min(calc(100vw - 24px), 100%);
  }

  .topbar {
    flex-wrap: wrap;
    padding-top: 14px;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .header-actions,
  .hero-actions,
  .file-actions {
    width: 100%;
  }

  .header-actions > *,
  .hero-actions > *,
  .file-actions > * {
    flex: 1 1 auto;
  }

  .auth-card,
  .upload-panel,
  .files-panel,
  .hero-panel,
  .download-card {
    padding: 22px;
    border-radius: 28px;
  }

  .form-grid,
  .meta-grid,
  .detail-row,
  .footer,
  .file-row-header,
  .files-header {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
  }

  .hero-copy h1,
  .download-header h1,
  .state-card h1,
  .panel-intro h2,
  .dashboard-hero h1,
  .auth-copy h1,
  .files-header h2 {
    line-height: 1.02;
  }

  .file-row-header,
  .files-header {
    display: grid;
  }
}
