:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #101828;
  background: #f4f6fb;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --border: #e4e8f2;
  --muted: #5f6c7b;
  --bg-elevated: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background, #f4f6fb);
}

.hero {
  background: radial-gradient(circle at top left, #dbeafe, #eef2ff 60%);
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin: 0.2rem 0 0.8rem;
}

.hero__content .lead {
  max-width: 480px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero__stats {
  background: var(--bg-elevated);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.hero__stats span {
  font-size: 2.5rem;
  font-weight: 700;
}

main {
  padding: clamp(1.5rem, 3vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: #101828;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.muted {
  color: var(--muted);
}

.gallery-section {
  background: var(--bg-elevated);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card picture {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  display: block;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card__body h3 {
  margin: 0;
  font-size: 1rem;
}

.card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.empty {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  text-align: center;
  color: var(--muted);
}

.form-section {
  background: var(--bg-elevated);
  border-radius: 1.5rem;
  margin-top: 2rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
}

input[type='text'],
input[type='email'],
textarea {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
}

textarea {
  resize: vertical;
}

.dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
}

.dropzone input[type='file'] {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-info {
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #1e1b4b;
  line-height: 1.4;
}

.file-info small {
  display: block;
  color: #6366f1;
  margin-top: 0.25rem;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.status-row {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.status-row strong {
  color: var(--primary-dark);
}

.credential {
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  line-height: 1.5;
}

.credential code {
  background: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.credential small {
  display: block;
  color: #c2410c;
  margin-top: 0.25rem;
}

.turnstile {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #f1f5f9;
}

.turnstile .muted {
  margin: 0 0 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  main {
    padding: 1rem;
  }

  .hero {
    padding: 2.5rem 1.25rem;
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: row;
    gap: 2rem;
  }
}

.upload-page .hero {
  grid-template-columns: 1fr;
}
