:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-elevated: #0d0d0f;
  --bg-panel: #141417;
  --bg-panel-hover: #1e1e23;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededef;
  --muted: #8e8e97;
  --accent: #f2be54;
  --accent-ink: #1a1204;
  --accent-soft: rgba(242, 190, 84, 0.14);
  --green: #2ebd85;
  --rail: 64px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(242, 190, 84, 0.12), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(111, 147, 196, 0.06), transparent 35%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  height: var(--rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.95rem 1.55rem;
  font-size: 1rem;
  box-shadow: 0 0 0 1px rgba(242, 190, 84, 0.35), 0 12px 40px rgba(242, 190, 84, 0.18);
}

.btn-accent:hover {
  background: #f6cb72;
  box-shadow: 0 0 0 1px rgba(242, 190, 84, 0.5), 0 16px 48px rgba(242, 190, 84, 0.28);
}

.main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3.5rem 1.25rem 4rem;
}

.hero {
  width: min(720px, 100%);
  text-align: center;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.4rem;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(242, 190, 84, 0.25), 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: pulse-glow 3.2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(242, 190, 84, 0.25), 0 20px 60px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(242, 190, 84, 0.45), 0 24px 70px rgba(242, 190, 84, 0.18);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 189, 133, 0.55);
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 189, 133, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 189, 133, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 189, 133, 0);
  }
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

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

.hero-copy {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.cta-row {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.panel {
  margin: 2.25rem auto 0;
  width: min(520px, 100%);
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-panel);
  text-align: left;
  animation: rise 0.85s ease 0.1s both;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.panel-row + .panel-row {
  border-top: 1px solid var(--border);
}

.panel-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.panel-value {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
}

.panel-value.accent {
  color: var(--accent);
}

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

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.modal.open {
  display: grid;
  animation: fade 0.2s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-card {
  width: min(420px, 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--bg-elevated);
  padding: 1.35rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: rise 0.28s ease both;
}

.modal-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.modal-card p {
  margin: 0.55rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  outline: none;
}

.field:focus {
  border-color: rgba(242, 190, 84, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
}

.modal-actions .btn {
  flex: 1;
}

.status {
  margin-top: 0.9rem;
  min-height: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.status.ok {
  color: var(--green);
}

.status.warn {
  color: var(--accent);
}

@media (max-width: 640px) {
  .nav-link {
    display: none;
  }

  .hero-logo {
    width: 64px;
    height: 64px;
  }

  .panel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
