:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-soft: #11141a;
  --card: #171b23;
  --text: #e6e8ee;
  --muted: #98a2b3;
  --accent: #4bd2ff;
  --accent-2: #9c7dff;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(75, 210, 255, 0.24);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 600px at 20% 10%, rgba(76, 210, 255, 0.18), transparent 60%),
    radial-gradient(500px 500px at 80% 20%, rgba(156, 125, 255, 0.16), transparent 60%),
    radial-gradient(800px 800px at 50% 100%, rgba(75, 210, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #0b0d10, #0a0c11 45%, #0b0f18 100%);
  z-index: -1;
}

.page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: fadeIn 0.8s ease-out;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(75, 210, 255, 0.12);
  border: 1px solid rgba(75, 210, 255, 0.3);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
  max-width: 620px;
}

.hero p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.form {
  display: grid;
  gap: 18px;
}

.file-drop {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: border 0.2s ease, background 0.2s ease;
}

.file-drop:hover {
  border-color: rgba(75, 210, 255, 0.6);
  background: rgba(75, 210, 255, 0.06);
}

.file-drop input {
  display: none;
}

.file-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.file-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.file-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
  max-width: 45%;
}

.btn {
  border: none;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #05060a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(75, 210, 255, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(75, 210, 255, 0.32);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status {
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 22px;
}

.result {
  border-radius: 14px;
  border: 1px solid rgba(75, 210, 255, 0.3);
  padding: 18px;
  background: rgba(8, 12, 18, 0.8);
  display: grid;
  gap: 12px;
  animation: slideUp 0.4s ease;
}

.result-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-token {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.tips {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tip {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
  min-height: 120px;
}

.tip h3 {
  font-size: 1rem;
}

.tip p {
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 60px 20px 100px;
  }

  .file-drop {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-meta {
    max-width: 100%;
    text-align: left;
  }
}
