@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f3f1ed;
  --card: rgba(255, 255, 255, 0.85);
  --ink: #1b1f26;
  --muted: #5a5f69;
  --accent: #f05d3b;
  --accent-dark: #c7472d;
  --line: rgba(27, 31, 38, 0.12);
  --shadow: 0 24px 60px rgba(27, 31, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, #ffe2d6 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, #e3f3ff 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, #fff0d9 0%, transparent 45%);
  z-index: -1;
}

.hero {
  padding: 56px 8vw 24px;
  max-width: 1100px;
  margin: 0 auto;
  animation: float-in 0.8s ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw + 1.2rem, 3.5rem);
  margin: 0 0 12px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 600px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 16px 8vw 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fade-up 0.7s ease-out both;
}

.mode-card {
  grid-column: 1 / -1;
  text-align: center;
}

.mode-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  color: var(--muted);
}

.dropzone strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.dropzone:hover {
  border-color: var(--accent);
  background: rgba(240, 93, 59, 0.08);
}

.dropzone input {
  display: none;
}

.primary,
.ghost {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 20px rgba(240, 93, 59, 0.2);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(240, 93, 59, 0.26);
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.code-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.code {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 6px 0 0;
}

.code-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.field input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(27, 31, 38, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff9f7a);
  transition: width 0.2s ease;
}

.download {
  text-align: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: #1b1f26;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.footer {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 8vw;
  color: var(--muted);
  font-size: 0.85rem;
}

.hidden {
  display: none;
}


@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 40px;
  }

  .code {
    letter-spacing: 0.1em;
  }
}
