
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #141b2d;
  --panel-light: #1b2439;
  --text: #f4f7ff;
  --muted: #9ba8c2;
  --accent: #a5f36b;
  --border: #2b3650;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, #1d2b42 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
.dropzone:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(100% - 40px, 1000px);
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  gap: 16px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -1px;
}

.brand span {
  color: var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px #a5f36666;
}

.hero {
  max-width: 680px;
  margin: 68px auto 40px;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
}

h1 {
  margin: 18px 0;
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: 1.06;
  letter-spacing: -3px;
}

h1 span {
  color: var(--accent);
}

.subtitle {
  max-width: 530px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.panel {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  background: #141b2df2;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px #00000030;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  margin-bottom: 24px;
  background: var(--bg);
  border-radius: 12px;
}

.tab {
  padding: 11px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.tab.active {
  background: var(--panel-light);
  color: var(--text);
}

.dropzone {
  display: flex;
  min-height: 210px;
  padding: 25px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  border: 1.5px dashed #455473;
  border-radius: 17px;
  background: #0e1526;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover {
  border-color: var(--accent);
  background: #131f2c;
}

.upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 14px;
  background: #a5f3661c;
  color: var(--accent);
  font-size: 2rem;
}

.dropzone strong {
  font-size: 1.05rem;
}

.dropzone > span:not(.upload-icon) {
  color: var(--muted);
  font-size: 0.88rem;
}

.dropzone .file-limit {
  margin-top: 8px;
  font-size: 0.78rem;
}

.selected-file {
  margin-top: 14px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #15200d;
  font-weight: 850;
  transition: transform 0.2s, opacity 0.2s;
}

.primary-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.code-input {
  width: 100%;
  padding: 17px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 10px;
}

.code-input::placeholder {
  color: #4c5972;
}

.expiry-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.result {
  margin-top: 14px;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.result:empty {
  display: none;
}

.result a {
  color: var(--accent);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 64px 0;
}

.features article {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #141b2d80;
}

.feature-icon {
  color: var(--accent);
  font-size: 1.5rem;
}

.features h2 {
  margin: 12px 0 6px;
  font-size: 1rem;
}

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

footer {
  padding: 25px 0 35px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

footer p {
  margin: 5px 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1000px);
  }

  .header {
    padding: 20px 0;
  }

  .brand {
    font-size: 1.3rem;
  }

  .status {
    font-size: 0.7rem;
  }

  .hero {
    margin: 48px auto 30px;
  }

  h1 {
    letter-spacing: -2px;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 40px 0;
  }

  .features article {
    padding: 17px;
  }

  .code-input {
    font-size: 1.6rem;
    letter-spacing: 7px;
  }
}
