:root {
  --primary: #4F46E5;
  --primary-600: #4338CA;
  --secondary: #7C3AED;
  --accent: #06B6D4;
  --bg: #F8FAFC;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --text: #0F172A;
  --text-2: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-cool: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  --gradient-warm: linear-gradient(135deg, #7C3AED 0%, #EC4899 70%, #F59E0B 100%);
  --gradient-cta: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #06B6D4 100%);

  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 24px;
  --spacing-6: 32px;
  --spacing-7: 48px;
  --spacing-8: 64px;
  --spacing-9: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 60px rgba(79, 70, 229, 0.18), 0 10px 24px rgba(15, 23, 42, 0.08);

  --container: 1200px;
  --header-height: 72px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --trans: 220ms cubic-bezier(.2,.8,.2,1);
  --trans-slow: 400ms cubic-bezier(.2,.8,.2,1);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

[data-theme="dark"] {
  --bg: #0B1120;
  --bg-2: #0F172A;
  --surface: #111C33;
  --surface-alt: #172240;
  --text: #F1F5F9;
  --text-2: #CBD5E1;
  --text-muted: #94A3B8;
  --border: #1E293B;
  --border-strong: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.45), 0 4px 10px rgba(0,0,0,0.3);
  --shadow-xl: 0 24px 60px rgba(79, 70, 229, 0.25), 0 10px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--primary); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea, button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing-5);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 10px 16px; z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.section {
  padding: var(--spacing-9) 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--spacing-7);
}

.section-title {
  font-size: clamp(1.75rem, 3vw + 0.25rem, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--spacing-4);
  color: var(--text);
}

.section-sub {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.125rem);
  color: var(--text-muted);
  margin: 0;
}

.gradient-text {
  background: var(--gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans), border-color var(--trans);
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.2;
  min-height: 40px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 26px; font-size: 1rem; min-height: 50px; }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; min-height: 36px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.34);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { color: var(--primary-600); box-shadow: 0 10px 28px rgba(0,0,0,0.2); }

.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.18);
  margin-bottom: var(--spacing-5);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-icon { width: 40px; height: 28px; flex-shrink: 0; }
.brand-name { white-space: nowrap; }

.site-nav { display: none; }
.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--primary); background: var(--surface-alt); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--trans);
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-slow);
  border-top: 1px solid transparent;
  background: var(--surface);
}
.mobile-panel.open {
  max-height: 560px;
  border-top-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.mobile-panel .container { padding-top: var(--spacing-4); padding-bottom: var(--spacing-5); }
.mobile-nav-list {
  list-style: none; padding: 0; margin: 0 0 var(--spacing-5);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav-list a {
  display: block; padding: 12px 14px; border-radius: var(--radius-md);
  color: var(--text-2); font-weight: 500;
}
.mobile-nav-list a:hover { background: var(--surface-alt); color: var(--primary); }
.mobile-cta { display: flex; flex-direction: column; gap: var(--spacing-3); }

/* --- Hero --- */
.hero {
  padding-top: var(--spacing-7);
  padding-bottom: calc(var(--spacing-9) + 20px);
  overflow: hidden;
}
.hero-bg-shapes {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.shape-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(79,70,229,0.55), transparent 60%);
  top: -180px; left: -120px;
}
.shape-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(6,182,212,0.45), transparent 60%);
  top: 200px; right: -120px;
}
.shape-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 60%);
  bottom: -180px; left: 30%;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  gap: var(--spacing-7);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw + 0.5rem, 3.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 var(--spacing-5);
}

.hero-lead {
  font-size: clamp(1rem, 0.7vw + 0.9rem, 1.18rem);
  color: var(--text-muted);
  margin: 0 0 var(--spacing-6);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-6);
}

.trust-row {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: var(--spacing-3) var(--spacing-5);
  color: var(--text-2);
  font-size: 0.95rem;
}
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row li > span:first-child { color: var(--success); font-weight: 700; }

.hero-upload {
  position: relative;
  z-index: 1;
}
.floating-bg {
  position: absolute;
  inset: -30px -20px -30px -20px;
  pointer-events: none;
  opacity: 0.9;
}
.floating-bg img { width: 100%; height: 100%; object-fit: contain; animation: floatY 12s ease-in-out infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.upload-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-xl);
  z-index: 1;
}

.upload-card-head { margin-bottom: var(--spacing-5); }
.upload-card-head h2 {
  margin: 0 0 var(--spacing-2);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.upload-card-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  padding: var(--spacing-7) var(--spacing-5);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-alt) 0%, transparent 100%);
  text-align: center;
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover, .upload-zone:focus-visible {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}
.upload-zone.dragover { transform: scale(1.01); }

.upload-icon { width: 90px; height: 90px; }
.upload-hint { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.upload-hint strong { color: var(--text-2); }

.upload-meta {
  margin-top: var(--spacing-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-2);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.upload-meta strong { color: var(--text-2); }
.upload-formats { letter-spacing: 0.01em; }

.upload-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  max-height: 260px;
  overflow-y: auto;
}

.upload-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3) var(--spacing-4);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: slideIn 280ms var(--ease);
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px);} to { opacity: 1; transform: none;} }

.upload-item.success { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.08); }
.upload-item.error { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.08); }

.file-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
}
.file-icon.pdf { background: #EF4444; }
.file-icon.doc { background: #3B82F6; }
.file-icon.img { background: #10B981; }
.file-icon.zip { background: #F59E0B; }
.file-icon.video { background: #8B5CF6; }
.file-icon.audio { background: #EC4899; }
.file-icon.default { background: #64748B; }

.file-meta { min-width: 0; }
.file-name-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--spacing-3);
}
.file-name {
  font-weight: 600; font-size: 0.92rem; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-size { font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }

.file-progress {
  margin-top: 8px;
  height: 8px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}
.file-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient-cool);
  border-radius: inherit;
  transition: width 220ms linear;
}
.file-status {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.file-status.success { color: var(--success); font-weight: 600; }
.file-status.error { color: var(--danger); font-weight: 600; }

.item-actions {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.remove-btn, .cancel-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.remove-btn:hover, .cancel-btn:hover { background: rgba(239,68,68,0.12); color: var(--danger); }

/* --- Share Links Section --- */
.share-links-section {
  margin-top: var(--spacing-6);
  padding: var(--spacing-5);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--radius-lg);
  animation: slideIn 320ms var(--ease);
}
.share-links-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--spacing-4);
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
}
.share-links-head svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-bottom: 6px;
}
.share-links-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.share-links-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.share-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}
.share-link-item {
  padding: var(--spacing-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  animation: slideIn 280ms var(--ease);
}
.share-link-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  min-width: 0;
}
.share-link-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-3);
  flex-wrap: wrap;
}
.share-link-filename {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.share-link-filesize {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 2px 10px;
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
}
.share-link-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--spacing-2);
  align-items: center;
}
.share-link-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 0;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.share-link-input:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}
.share-link-input svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.share-link-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  color: var(--text-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 2px 0;
  outline: none;
}
.share-open-btn {
  text-decoration: none;
}

@media (max-width: 540px) {
  .share-link-row {
    grid-template-columns: 1fr;
  }
  .share-link-row .btn {
    width: 100%;
  }
  .share-link-filename {
    max-width: 200px;
  }
}

/* --- Features --- */
.features-grid {
  display: grid;
  gap: var(--spacing-5);
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-slow);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(6,182,212,0.1));
  color: var(--primary);
  margin-bottom: var(--spacing-4);
  transition: transform var(--trans-slow);
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  margin: 0 0 var(--spacing-2);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- How it works --- */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--spacing-5);
  grid-template-columns: 1fr;
  position: relative;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  position: relative;
  text-align: left;
}

.step-number {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-4);
  box-shadow: 0 6px 16px rgba(79,70,229,0.25);
}

.step h3 {
  margin: 0 0 var(--spacing-2);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--text-muted); }

.step-arrow { display: none; }

/* --- Dashboard preview --- */
.dashboard-preview { background: var(--bg-2); }

.dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dash-sidebar {
  padding: var(--spacing-5);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.dash-avatar {
  display: flex; align-items: center; gap: var(--spacing-3);
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--spacing-4);
}
.avatar-letter {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.dash-avatar strong { display: block; font-size: 0.95rem; }
.dash-avatar small { color: var(--text-muted); font-size: 0.8rem; }

.storage-bar {
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--spacing-5);
}
.storage-bar span {
  display: block; height: 100%;
  background: var(--gradient-cool);
  border-radius: inherit;
}

.dash-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
}
.dash-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-nav a:hover { background: var(--surface); color: var(--primary); }
.dash-nav li.active a { background: var(--surface); color: var(--primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }

.dash-main { display: flex; flex-direction: column; min-width: 0; }

.dash-topbar {
  display: flex; flex-direction: column;
  gap: var(--spacing-3);
  padding: var(--spacing-4) var(--spacing-5);
  border-bottom: 1px solid var(--border);
}
.dash-search {
  position: relative;
  flex: 1;
}
.dash-search svg {
  position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted);
}
.dash-search input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  transition: all var(--trans);
}
.dash-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.dash-actions { display: flex; gap: var(--spacing-3); flex-wrap: wrap; }
.dash-actions svg { width: 16px; height: 16px; }

.dash-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dash-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.dash-table thead { background: var(--surface-alt); }
.dash-table th, .dash-table td {
  padding: 14px var(--spacing-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dash-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.dash-table tbody tr { transition: background var(--trans); }
.dash-table tbody tr:hover { background: var(--surface-alt); }
.dash-table td:first-child {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; padding-bottom: 16px;
  font-weight: 500;
}
.file-chip {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.file-chip svg { width: 18px; height: 18px; }
.file-chip.pdf { background: rgba(239,68,68,0.12); color: #EF4444; }
.file-chip.image { background: rgba(16,185,129,0.12); color: #10B981; }
.file-chip.ppt { background: rgba(245,158,11,0.12); color: #F59E0B; }
.file-chip.zip { background: rgba(139,92,246,0.12); color: #8B5CF6; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}

.row-menu {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all var(--trans);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.row-menu:hover { background: var(--surface-alt); color: var(--primary); }

/* --- Sharing --- */
.sharing-grid {
  display: grid;
  gap: var(--spacing-7);
  align-items: center;
}
.sharing-points {
  list-style: none; padding: 0; margin: var(--spacing-5) 0 0;
  display: flex; flex-direction: column; gap: var(--spacing-3);
}
.sharing-points li {
  display: flex; align-items: flex-start; gap: var(--spacing-3);
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
  color: var(--text-2);
}
.sharing-points li > span:first-child { font-size: 1.2rem; }

.share-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.share-dialog::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-cool);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}

.share-dialog-head { margin-bottom: var(--spacing-5); position: relative; }
.share-dialog-head h3 { margin: 0 0 var(--spacing-2); font-size: 1.2rem; font-weight: 700; }
.share-dialog-head p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.share-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-5);
}
.share-link-input {
  position: relative;
  display: flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  padding: 0 12px 0 40px;
  min-width: 0;
}
.share-link-input svg {
  position: absolute; left: 12px;
  width: 18px; height: 18px; color: var(--text-muted);
}
.share-link-input input {
  width: 100%;
  padding: 12px 4px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 0.92rem;
  outline: none;
  text-overflow: ellipsis;
}

.share-perms, .share-expiry { margin-bottom: var(--spacing-5); }
.share-perms {
  border: none; padding: 0; margin-bottom: var(--spacing-5);
}
.share-perms legend, .share-expiry label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-3);
  display: block;
}
.share-perms legend { padding: 0; }
.radio-row { display: flex; flex-direction: column; gap: var(--spacing-2); }
.radio {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  cursor: pointer;
  transition: all var(--trans);
  font-weight: 500;
  color: var(--text-2);
  user-select: none;
  border: 1px solid transparent;
}
.radio:hover { background: color-mix(in srgb, var(--primary) 8%, var(--surface-alt)); }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--trans);
  flex-shrink: 0;
}
.radio input:checked ~ .radio-dot {
  border-color: var(--primary);
  border-width: 5px;
}
.radio input:checked ~ .radio-dot::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
}
.radio input:focus-visible ~ .radio-dot {
  box-shadow: 0 0 0 3px rgba(79,70,229,0.25);
}
.radio input:checked + * + * { /* fallback */ }
.radio:has(input:checked) {
  background: rgba(79,70,229,0.08);
  color: var(--primary);
  border-color: rgba(79,70,229,0.25);
}

.share-expiry select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 500;
}
.share-expiry select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

.share-foot { display: flex; justify-content: flex-end; }

/* --- Security --- */
.security {
  background: linear-gradient(180deg, #0B1120 0%, #0F172A 60%, #111C33 100%);
  color: #E2E8F0;
  overflow: hidden;
  position: relative;
}
.security::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(79,70,229,0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(6,182,212,0.18), transparent 45%);
  pointer-events: none;
}
.security .section-title, .security .section-sub { color: inherit; }
.security .section-title { color: #F8FAFC; }
.security .section-sub { color: rgba(226, 232, 240, 0.75); }

.security-grid {
  display: grid;
  gap: var(--spacing-7);
  align-items: center;
  position: relative;
}

.security-list {
  list-style: none; padding: 0; margin: var(--spacing-5) 0 0;
  display: flex; flex-direction: column; gap: var(--spacing-4);
}
.security-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--spacing-4);
  align-items: flex-start;
  padding: var(--spacing-4);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.15);
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.security-list li:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(79,70,229,0.45);
  transform: translateX(2px);
}
.sec-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(79,70,229,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.security-list li strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.security-list li p {
  margin: 0;
  color: rgba(226,232,240,0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.security-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.security-art img { width: 100%; max-width: 420px; animation: floatY 10s ease-in-out infinite; }

/* --- Stats --- */
.stats {
  background: var(--bg-2);
  padding-top: var(--spacing-7);
  padding-bottom: var(--spacing-7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  gap: var(--spacing-5);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
.stat-number {
  font-size: clamp(1.8rem, 3vw + 0.8rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: var(--gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.stat p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  gap: var(--spacing-5);
  grid-template-columns: 1fr;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.price-card.featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 4%, var(--surface)) 0%, var(--surface) 100%);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: visible;
}
.price-card.featured::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price-card h3 {
  margin: 0 0 var(--spacing-2);
  font-size: 1.15rem;
  font-weight: 700;
}
.ribbon {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: var(--spacing-3) 0 var(--spacing-2);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price .currency { font-size: 1.4rem; color: var(--text-muted); font-weight: 600; }
.price:not(.price .currency, .price .period) { font-size: 3rem; color: var(--text); }
.price > *:nth-child(2) { font-size: 3rem; color: var(--text); }
.price .period { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin-left: 4px; }

.price-sub {
  margin: 0 0 var(--spacing-5);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-5);
  display: flex; flex-direction: column; gap: var(--spacing-3);
  flex: 1;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.price-features li > span:first-child { color: var(--success); font-weight: 700; }

/* --- FAQ --- */
.faq-grid {
  display: grid;
  gap: var(--spacing-7);
  align-items: start;
}

.faq-accordion {
  display: flex; flex-direction: column;
  gap: var(--spacing-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.faq-item.open {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-md);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  transition: background var(--trans), color var(--trans);
}
.faq-q:hover { background: var(--surface-alt); }
.faq-chevron {
  width: 22px; height: 22px;
  color: var(--text-muted);
  transition: transform var(--trans), color var(--trans);
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-slow);
  padding: 0 22px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-a.open { padding-bottom: 22px; }
.faq-a p { margin: 0; font-size: 0.95rem; }

/* --- Legal Pages --- */
.legal-hero {
  padding-top: 150px;
  padding-bottom: 72px;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.legal-hero::before,
.legal-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.legal-hero::before {
  width: 420px; height: 420px;
  background: rgba(124, 58, 237, 0.55);
  top: -160px; left: -100px;
}
.legal-hero::after {
  width: 380px; height: 380px;
  background: rgba(6, 182, 212, 0.45);
  bottom: -140px; right: -90px;
}
.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: left;
}
.legal-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.legal-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px 0;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.legal-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 720px;
}

.legal-body {
  padding-top: 80px;
  padding-bottom: 80px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: flex-start;
}

.legal-toc {
  position: sticky;
  top: 110px;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.legal-toc h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 12px 0;
}
.legal-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc a {
  display: block;
  padding: 7px 10px;
  font-size: 0.88rem;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.legal-toc a:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border-left-color: var(--primary);
}

.legal-content {
  max-width: 820px;
}
.legal-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 14px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  scroll-margin-top: 96px;
  letter-spacing: -0.01em;
}
.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content p {
  color: var(--text-2);
  line-height: 1.78;
  margin: 0 0 14px 0;
  font-size: 0.97rem;
}
.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin: 0 0 14px 0;
  color: var(--text-2);
  line-height: 1.78;
}
.legal-content li {
  margin-bottom: 8px;
  font-size: 0.97rem;
}
.legal-content li::marker {
  color: var(--primary);
}
.legal-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans), color var(--trans);
}
.legal-content a:hover {
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}
.legal-content strong {
  color: var(--text);
  font-weight: 700;
}
.legal-content em {
  color: var(--text);
  font-style: italic;
}
.legal-content code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--primary);
}
.legal-content address {
  font-style: normal;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 12px 0 16px 0;
  color: var(--text-2);
  line-height: 1.7;
}

.cookie-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 18px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.92rem;
  box-shadow: var(--shadow-xs);
}
.cookie-table thead {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.08));
}
.cookie-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}
.cookie-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
  line-height: 1.6;
  vertical-align: top;
}
.cookie-table tr:last-child td {
  border-bottom: none;
}
.cookie-table tbody tr:hover {
  background: var(--surface-alt);
}

.disclaimer-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 36px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(239, 68, 68, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 5px solid #F59E0B;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.6;
}
.disclaimer-banner svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #F59E0B;
  margin-top: 2px;
}
.disclaimer-banner strong {
  color: var(--text);
}

.legal-cta {
  padding-top: 72px;
  padding-bottom: 72px;
  margin-top: 0;
}
.legal-cta .section-title {
  color: #fff;
}
.legal-cta .section-sub {
  color: rgba(255,255,255,0.88);
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-toc {
    position: static;
    max-height: none;
  }
}
@media (max-width: 540px) {
  .legal-hero {
    padding-top: 130px;
    padding-bottom: 56px;
  }
  .legal-body {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .legal-content h2 {
    font-size: 1.25rem;
  }
  .cookie-table {
    font-size: 0.82rem;
  }
  .cookie-table th,
  .cookie-table td {
    padding: 8px 10px;
  }
  .disclaimer-banner {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- CTA --- */
.cta {
  background: var(--gradient-cta);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.cta .section-title, .cta .section-sub { color: #fff; }
.cta .section-sub { color: rgba(255,255,255,0.88); }

.cta-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.blob-1 { width: 420px; height: 420px; background: #EC4899; top: -140px; left: -80px; animation: blobFloat 18s ease-in-out infinite; }
.blob-2 { width: 360px; height: 360px; background: #06B6D4; bottom: -120px; right: -60px; animation: blobFloat 22s ease-in-out infinite reverse; }
.blob-3 { width: 240px; height: 240px; background: #F59E0B; top: 50%; left: 55%; transform: translate(-50%, -50%); animation: blobFloat 26s ease-in-out infinite; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(14px, -18px) scale(1.08); }
  66% { transform: translate(-12px, 16px) scale(0.95); }
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.cta-actions {
  margin-top: var(--spacing-6);
  display: flex;
  justify-content: center;
  gap: var(--spacing-3);
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-8);
}
.footer-grid {
  display: grid;
  gap: var(--spacing-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--spacing-7);
}
.footer-col h4 {
  margin: 0 0 var(--spacing-4);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--trans), transform var(--trans);
  display: inline-block;
}
.footer-col a:hover { color: var(--primary); transform: translateX(2px); }

.footer-brand p {
  color: var(--text-muted);
  margin: var(--spacing-4) 0 var(--spacing-5);
  font-size: 0.95rem;
  max-width: 320px;
}
.social {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: var(--spacing-3);
}
.social a {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  transition: all var(--trans);
}
.social a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--spacing-5) 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-3);
}
.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Reveal / scroll animations --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }

/* --- Toast --- */
.toast-container {
  position: fixed;
  right: var(--spacing-5);
  bottom: var(--spacing-5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  padding: 14px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 380px;
  font-size: 0.92rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toastIn 280ms var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) translateX(8px); }
  to   { opacity: 1; transform: none; }
}
.toast.leave { animation: toastOut 260ms var(--ease) forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px) translateX(8px); }
}
.toast-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  font-size: 0.9rem;
}
.toast.success .toast-icon { background: var(--success); }
.toast.error .toast-icon { background: var(--danger); }
.toast.info .toast-icon { background: var(--primary); }
.toast-body { flex: 1; min-width: 0; padding-top: 2px; }

/* --- Responsive --- */
@media (min-width: 480px) {
  .container { padding: 0 var(--spacing-6); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid .price-card.featured { order: 3; grid-column: span 2; max-width: 480px; margin: 0 auto; }
  .dash-topbar { flex-direction: row; align-items: center; }
}

@media (min-width: 768px) {
  .header-inner { height: 76px; }
  .site-nav { display: block; }
  .hamburger { display: none; }
  .header-actions .theme-toggle { margin-left: 4px; }

  .hero { padding-top: var(--spacing-8); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-8); }
  .hero-copy { order: 1; }
  .hero-upload { order: 2; }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  .step { text-align: center; }
  .step-arrow {
    display: block;
    position: absolute;
    top: 50%;
    right: -22px;
    width: 44px; height: 2px;
    background: var(--gradient-primary);
    opacity: 0.5;
    transform: translateY(-50%);
    z-index: 0;
  }
  .step-arrow::after {
    content: "";
    position: absolute;
    right: -2px; top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px; height: 12px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
  }
  .step:last-child .step-arrow { display: none; }

  .sharing-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-8); }
  .security-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-8); }
  .faq-grid { grid-template-columns: 1fr 1.3fr; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--spacing-6); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-5);
  }
  .pricing-grid .price-card.featured {
    order: 2;
    grid-column: auto;
    max-width: none;
    margin: -12px 0;
    transform: scale(1.03);
  }
  .pricing-grid .price-card.featured:hover { transform: scale(1.03) translateY(-4px); }

  .dashboard {
    grid-template-columns: 260px 1fr;
  }
  .dash-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

@media (min-width: 1366px) {
  .hero-grid { gap: 80px; }
  .section { padding: 120px 0; }
  .hero { padding-top: 96px; }
  .security-art img { max-width: 460px; }
}

@media (max-width: 479px) {
  .share-link-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .toast-container { left: 16px; right: 16px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
