:root {
  --bg: #0f1221;
  --card: #12162a;
  --muted: #1a1f3a;
  --text: #e8ecf1;
  --text-dim: #aab3c0;
  --primary: #2ecc71;
  --accent: #0a84ff;
  --ring: rgba(46, 204, 113, 0.35);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  font-family: "Product Sans", system-ui, -apple-system, Segoe UI, Roboto,
    Noto Sans, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(
      80vmax 80vmax at -10% -10%,
      #2e8b57 0%,
      transparent 60%
    ),
    radial-gradient(60vmax 60vmax at 110% 10%, #0a84ff 0%, transparent 55%),
    linear-gradient(180deg, #0b0e1a 0%, var(--bg) 100%);
  display: grid;
  place-items: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 880px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.logo {
  flex-shrink: 0;
  width: clamp(32px, 8vw, 40px);
  height: clamp(32px, 8vw, 40px);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: conic-gradient(
    from 180deg at 50% 50%,
    #2ecc71,
    #0a84ff,
    #2e8b57,
    #2ecc71
  );
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.25);
  font-weight: 700;
  font-size: clamp(16px, 4vw, 18px);
}

.brand h1 {
  margin: 0;
  font-size: clamp(18px, 5vw, 20px);
  white-space: normal;
  min-width: 0;
}

.tag {
  flex-shrink: 0;
  max-width: 100%;
  text-align: right;
  white-space: normal;
  margin-top: 4px;
}

.main {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .main {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.12);
  color: #b8ffd3;
  font-size: clamp(10px, 3vw, 12px);
}

.title {
  font-size: clamp(24px, 8vw, 36px);
  line-height: 1.1;
  margin: 12px 0 8px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.subtitle {
  color: var(--text-dim);
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: var(--primary);
  color: #08130d;
  box-shadow: 0 8px 20px var(--ring);
  font-size: clamp(14px, 4vw, 15px);
}

.btn:active {
  transform: scale(0.98);
}

.btn.sec {
  background: #1b2242;
  color: var(--text);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.cell strong {
  display: block;
  font-size: clamp(20px, 6vw, 24px);
}

.cell span {
  display: block;
  font-size: clamp(10px, 3vw, 12px);
  color: var(--text-dim);
  margin-top: 4px;
}

.panel {
  background: linear-gradient(
    180deg,
    rgba(10, 132, 255, 0.08),
    rgba(10, 132, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 16px;
  height: max-content;
}

.panel h3 {
  margin: 0;
  font-size: clamp(16px, 5vw, 18px);
}

.field {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

.input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  outline: none;
  font-size: clamp(14px, 4vw, 15px);
  min-width: 200px;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.12);
}

.note {
  color: var(--text-dim);
  font-size: clamp(12px, 3.5vw, 13px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 10px;
  text-align: center;
  font-size: clamp(10px, 3vw, 12px);
  color: var(--text-dim);
}

.footer {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: clamp(10px, 3vw, 12px);
  flex-wrap: wrap;
}

.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.a {
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 999px;
}

.toast {
  position: fixed;
  inset: auto 16px 16px auto;
  background: #0a1b12;
  color: #e7fff2;
  border: 1px solid rgba(46, 204, 113, 0.35);
  padding: 10px 12px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .brand {
    justify-content: center;
  }
  .tag {
    text-align: center;
    margin-top: 8px;
  }
  .main {
    padding: 16px;
  }
  .hero {
    padding: 16px;
  }
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel {
    padding: 16px;
  }
  .field {
    flex-direction: column;
  }
  .input {
    min-width: 100%;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7fafc;
    --card: #ffffff;
    --muted: #eff3f7;
    --text: #0e1116;
    --text-dim: #5a6472;
  }
  body {
    background: radial-gradient(
        80vmax 80vmax at -10% -10%,
        #c9f2dc 0%,
        transparent 50%
      ),
      radial-gradient(60vmax 60vmax at 110% 10%, #cfe5ff 0%, transparent 55%),
      linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  }
  .logo {
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.2);
  }
  .btn.sec {
    background: #eef2f7;
    color: #0e1116;
    border-color: #dde3ea;
  }
  .a {
    border-color: #e5eaf0;
  }
}
