* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #b9c0d9;
  --accent: #6d8cff;
  --accent-2: #7ef0c7;
  --danger: #ff7b7b;
  --success: #8ef0a7;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(109, 140, 255, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(126, 240, 199, 0.15), transparent 25%),
    linear-gradient(180deg, #0b1020 0%, #11182d 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-2);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #8c6dff);
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: bold;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, opacity 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-small {
  padding: 10px 16px;
  border-radius: 12px;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-description {
  color: var(--muted);
  max-width: 580px;
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.upload-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.upload-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: rgba(109, 140, 255, 0.16);
  border-radius: 18px;
  margin-bottom: 18px;
}

.upload-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.upload-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.file-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  padding: 12px 14px;
  border-radius: 14px;
  color: #e8ecff;
  font-size: 0.95rem;
}

.features {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
}

.security {
  padding: 20px 0 70px;
}

.security-box,
.cta-box,
.dashboard-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.security-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.security-box p:last-child {
  color: var(--muted);
  max-width: 700px;
}

.cta {
  padding: 0 0 80px;
}

.cta-box {
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 22px;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  background: rgba(0,0,0,0.12);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-content p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  /*display: grid;*/
  place-items: center;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay.hidden {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(10px);
}

.login-modal {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  background: rgba(18, 25, 51, 0.5);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
}

.login-header {
  margin-bottom: 18px;
}

.login-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.login-subtext {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: white;
  outline: none;
}

.form-group input:focus {
  border-color: rgba(126, 240, 199, 0.7);
  box-shadow: 0 0 0 3px rgba(126, 240, 199, 0.12);
}

.login-message {
  min-height: 24px;
  font-size: 0.95rem;
}

.login-message.error {
  color: var(--danger);
}

.login-message.success {
  color: var(--success);
}

.demo-note {
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

/* Dashboard */
.dashboard-page {
  min-height: 100vh;
}

.dashboard-header {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: blur(12px);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.logout-link {
  color: white;
  text-decoration: none;
}

.dashboard-main {
  padding: 40px 0 80px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dashboard-card h2 {
  margin-bottom: 10px;
}

.dashboard-card p {
  color: var(--muted);
}

.fake-dropzone {
  margin-top: 18px;
  padding: 28px;
  border-radius: 20px;
  border: 2px dashed rgba(255,255,255,0.18);
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

.fake-dropzone.dragover {
  border-color: rgba(126, 240, 199, 0.8);
  background: rgba(126, 240, 199, 0.08);
}

.folder-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.folder-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .security-box,
  .footer-content,
  .dashboard-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .security-box,
  .footer-content {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav,
  .dashboard-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  nav {
    justify-content: center;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-points {
    flex-direction: column;
    gap: 8px;
  }

  .login-modal {
    padding: 22px;
  }
}

.dashboard-layout {
  display: grid;
  gap: 24px;
}

.toolbar-card {
  padding: 16px 20px;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crumb {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.crumb.active {
  border-color: #7ef0c7;
}

.crumb-sep {
  color: #b9c0d9;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.upload-area-top {
  margin-bottom: 18px;
}

.explorer-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.explorer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: 0.2s ease;
}

.explorer-item:hover {
  background: rgba(255,255,255,0.08);
}

.explorer-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.explorer-icon {
  font-size: 1.1rem;
}

.explorer-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-meta {
  color: #b9c0d9;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.explorer-item-up {
  border: 1px dashed rgba(255,255,255,0.18);
}

@media (max-width: 700px) {
  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .explorer-item {
    flex-direction: column;
    align-items: flex-start;
  }
}