/* ============================================================
   ShareDrop — styles.css
   Modern minimal design — warm neutrals, clean typography
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg:          #f8f7f4;
  --surface:     #ffffff;
  --surface-2:   #f2f0eb;
  --border:      #e4e1d8;
  --text:        #1a1916;
  --text-muted:  #7a7670;
  --accent:      #2d6ef6;
  --accent-dark: #1a52d4;
  --accent-light:#eef2ff;
  --success:     #16a34a;
  --success-bg:  #f0fdf4;
  --warning:     #d97706;
  --error:       #dc2626;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
  --font:        'DM Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', monospace;
  --transition:  .18s ease;
  --max-w:       1140px;
  --header-h:    64px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

/* ── Layout helpers ───────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248,247,244,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 18px; height: 18px; color: white; }
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { background: var(--surface-2); color: var(--text); }

.nav-cta {
  padding: 8px 18px !important;
  background: var(--accent) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   AD PLACEHOLDERS
   ============================================================ */
.ad-slot {
  background: var(--surface-2);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: .75rem;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  user-select: none;
}
.ad-slot::before { content: '[ AD SPACE ]'; font-weight: 500; color: #c4c0b6; }
.ad-top    { width: 100%; height: 90px; margin: 0 0 24px; }
.ad-middle { width: 100%; height: 120px; margin: 32px 0; }
.ad-footer { width: 100%; height: 90px; margin: 24px 0 0; }
.ad-sidebar { width: 160px; min-width: 160px; height: 600px; }

/* ============================================================
   HERO / TRANSFER SECTION
   ============================================================ */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .01em;
}
.hero h1 { margin-bottom: 16px; color: var(--text); }
.hero p  { max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* Transfer card */
.transfer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
}

.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tab-btn {
  flex: 1;
  padding: 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--accent); background: var(--surface); border-bottom-color: var(--accent); }

.tab-panel { display: none; padding: 32px; }
.tab-panel.active { display: block; }

/* ── Upload Zone ──────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.upload-zone p  { font-size: .85rem; }

/* ── File info strip ──────────────────────────────────────── */
.file-info-strip {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: var(--radius);
  margin-top: 16px;
  border: 1px solid var(--border);
}
.file-info-strip.visible { display: flex; }
.file-icon { font-size: 1.8rem; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.file-size { font-size: .78rem; color: var(--text-muted); }
.btn-clear { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.2rem; padding: 4px; border-radius: 4px; transition: color var(--transition); }
.btn-clear:hover { color: var(--error); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(45,110,246,.35); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--success); color: white; }
.btn-lg { padding: 15px 36px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; margin-top: 20px; }

/* QR section */
.qr-section { display: none; text-align: center; }
.qr-section.visible { display: block; }
.qr-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 16px auto;
}
.qr-wrapper img { border-radius: 4px; }
.session-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 12px 0;
}
.session-link-box span {
  flex: 1;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  word-break: break-all;
}
.btn-copy { background: none; border: none; cursor: pointer; color: var(--accent); font-size: .85rem; font-weight: 600; white-space: nowrap; padding: 4px 8px; }

/* Progress */
.transfer-progress { display: none; margin-top: 20px; }
.transfer-progress.visible { display: block; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.progress-pct { font-size: .85rem; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 999px;
  width: 0%;
  transition: width .3s ease;
}
.progress-stats { display: flex; justify-content: space-between; margin-top: 6px; }
.progress-stats span { font-size: .78rem; color: var(--text-muted); font-family: var(--font-mono); }

/* Status messages */
.status-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  margin-top: 16px;
}
.status-waiting  { background: #fef9c3; color: #854d0e; }
.status-connect  { background: #eff6ff; color: #1d4ed8; }
.status-transfer { background: #f0fdf4; color: #15803d; }
.status-done     { background: #f0fdf4; color: #15803d; font-weight: 700; }
.status-error    { background: #fef2f2; color: #dc2626; }

/* ── Receive tab ──────────────────────────────────────────── */
.scan-area {
  text-align: center;
  padding: 20px 0;
}
.scan-icon { font-size: 4rem; margin-bottom: 16px; }
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: .85rem;
}
.or-divider::before, .or-divider::after { content:''; flex:1; height:1px; background:var(--border); }

.link-input-group { display: flex; gap: 8px; }
.link-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
}
.link-input:focus { outline: none; border-color: var(--accent); }

/* Incoming file */
.incoming-file {
  display: none;
  text-align: center;
  padding: 24px;
  border: 1.5px solid var(--success);
  border-radius: var(--radius);
  background: var(--success-bg);
  margin-top: 20px;
}
.incoming-file.visible { display: block; }
.incoming-file h3 { color: var(--success); margin-bottom: 4px; }
.incoming-file p  { font-size: .85rem; margin-bottom: 16px; }

/* ── Peer List (multi-receiver) ───────────────────────────── */
.peer-list-section { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.peer-list-section.visible { display: block !important; }
.peer-list-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text); }
.peer-card { padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.peer-card:last-child { border-bottom: none; }
.peer-card.peer-done  { background: var(--success-bg); }
.peer-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.peer-icon  { font-size: 1.1rem; }
.peer-name  { font-size: .85rem; font-weight: 600; flex: 1; color: var(--text); }
.peer-status-badge { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); }
.badge-waiting  { background: #fef9c3; color: #854d0e; }
.badge-connect  { background: #eff6ff; color: #1d4ed8; }
.badge-transfer { background: #f0fdf4; color: #15803d; }
.badge-done     { background: #dcfce7; color: #15803d; }
.badge-error    { background: #fef2f2; color: #dc2626; }
.peer-stats { display: flex; gap: 12px; margin-top: 4px; font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ── Camera view ──────────────────────────────────────────── */
#camera-view {
  display: none;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
  background: #000;
}
#camera-view.visible { display: block; }
#camera-video { width: 100%; display: block; }
.scan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-frame {
  width: 200px; height: 200px;
  border: 3px solid rgba(255,255,255,.6);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.4);
}
#camera-stop { position: absolute; top: 12px; right: 12px; }

/* ============================================================
   HOW IT WORKS SECTION (Homepage)
   ============================================================ */
.how-it-works { padding: 64px 0; }
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title { margin-bottom: 12px; }
.section-sub   { max-width: 520px; margin-bottom: 48px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step-num {
  display: inline-flex;
  width: 32px; height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.step-card p  { font-size: .85rem; }
.step-emoji { font-size: 1.6rem; margin-bottom: 10px; display: block; }

/* ============================================================
   FEATURES / TRUST SECTION
   ============================================================ */
.features { padding: 48px 0 64px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.feature-item h4 { font-size: .95rem; margin-bottom: 4px; color: var(--text); }
.feature-item p  { font-size: .82rem; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-hero .badge { display: inline-block; padding: 3px 12px; background: var(--accent-light); color: var(--accent); border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p  { max-width: 560px; font-size: 1rem; }

/* ============================================================
   CONTENT PROSE
   ============================================================ */
.prose-section { padding: 48px 0 64px; }
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .prose-grid { grid-template-columns: 1fr; } .ad-sidebar { display: none; } }

.prose-body { max-width: 720px; }
.prose-body h2 { margin: 40px 0 14px; font-size: 1.35rem; }
.prose-body h2:first-child { margin-top: 0; }
.prose-body h3 { margin: 28px 0 10px; font-size: 1.1rem; }
.prose-body p  { color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.prose-body ul, .prose-body ol { padding-left: 20px; margin-bottom: 16px; }
.prose-body li { line-height: 1.75; margin-bottom: 6px; }
.prose-body a  { color: var(--accent); }
.prose-body strong { color: var(--text); font-weight: 600; }
.prose-body blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 20px 0; background: var(--accent-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose-body blockquote p { margin: 0; color: var(--accent-dark); }
.prose-body code { font-family: var(--font-mono); font-size: .85em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }

/* ============================================================
   HOW IT WORKS PAGE
   ============================================================ */
.hiw-steps { counter-reset: step; }
.hiw-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step-num {
  width: 48px; height: 48px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.hiw-step-content h3 { margin-bottom: 8px; color: var(--text); }
.hiw-step-content p  { margin-bottom: 0; font-size: .9rem; }

.tech-stack-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.tech-card .icon { font-size: 2rem; margin-bottom: 10px; }
.tech-card h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tech-card p  { font-size: .78rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,110,246,.1); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-success { display: none; padding: 20px; background: var(--success-bg); border: 1.5px solid #bbf7d0; border-radius: var(--radius); color: var(--success); font-weight: 600; text-align: center; }
.form-success.visible { display: block; }

.contact-info-cards { display: grid; gap: 16px; margin-top: 40px; }
.contact-info-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-info-card .ci-icon { font-size: 1.5rem; }
.contact-info-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.contact-info-card p  { font-size: .85rem; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: .85rem; margin: 10px 0 16px; max-width: 240px; }
.footer-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--text-muted); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .8rem; color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--text); }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.page-404 .num { font-size: clamp(5rem, 15vw, 9rem); font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 12px; letter-spacing: -.05em; }
.page-404 h2 { margin-bottom: 10px; }
.page-404 p  { margin-bottom: 28px; }

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.text-center { text-align: center; }
.mt-2  { margin-top:  8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.gap-8 { gap: 32px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.pulse { animation: pulse 1.5s ease infinite; }

@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.fade-in { animation: fadeIn .3s ease; }

/* Connecting dots animation */
@keyframes dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .tab-panel { padding: 20px; }
  .upload-zone { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 32px 0 24px; }
  .hiw-step { grid-template-columns: 1fr; }
  .hiw-step-num { width: 36px; height: 36px; font-size: 1rem; }
}
