:root {
  --bg: #000;
  --text: #f7f7f7;
  --muted: #a3a3a3;
  --surface: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --primary: #fff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.06), transparent 25%),
    var(--bg);
  color: var(--text);
  padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) 3rem;
}

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  z-index: 10;
  flex-wrap: wrap;
}

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

.nav-link {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.language-select {
  appearance: none;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  min-width: 140px;
  cursor: pointer;
}

.language-select:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  display: grid;
  place-items: center;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.hero-content {
  display: grid;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.logo-card {
  width: clamp(160px, 32vw, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 18px;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  background: #0b0b0b;
}

.tagline {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin: 0;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

button {
  border: none;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary {
  background: #fff;
  color: #000;
  box-shadow: 0 14px 44px rgba(255, 255, 255, 0.12);
}

.primary:hover { transform: translateY(-2px); }

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

.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--stroke);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 0.9rem;
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.45rem;
}

.code-example {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--stroke);
  color: #fff;
  word-break: break-all;
}

.info {
  margin-top: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.info-block {
  border: 1px solid var(--stroke);
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.modal {
  border: none;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.95);
  color: var(--text);
  width: min(480px, 94vw);
  box-shadow: var(--shadow);
  padding: 0;
}

.modal-content {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.icon-button {
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.input {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.input input {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.key-row {
  display: grid;
  grid-template-columns: 2fr auto;
  gap: 0.75rem;
  align-items: center;
}

.muted { color: var(--muted); }

.actions { display: flex; justify-content: flex-end; }

.status {
  margin: 0;
  font-weight: 700;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 640px) {
  .nav { border-radius: 16px; }
}
