:root {
  --bg: #060606;
  --panel: #111112;
  --panel-soft: #171719;
  --text: #f5f5f5;
  --muted: #b9b9bd;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);
  --silver: #e5e5e5;
  --shadow: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.1), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #050505, #111113 48%, #050505);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  width: 66px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
}

.brand-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.header-login,
.secondary-btn,
.ghost-btn,
.generate-btn,
.copy-btn {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.header-login {
  padding: 15px 20px;
}

.top-generator {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 54px;
  padding: 46px 0 72px;
}

.main-generator {
  width: 100%;
  margin: 0;
}

.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: 52px;
  padding: 54px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--silver);
  background: rgba(255,255,255,0.08);
  font-weight: 800;
}

h1 {
  max-width: 760px;
  margin: 28px 0 18px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #cfcfd2 48%, #6e6e73);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.secondary-btn,
.ghost-btn {
  padding: 18px 24px;
}

.secondary-btn {
  background: linear-gradient(135deg, #fff, #bfc0c5);
  color: #070707;
}

.logo-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.2), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
  box-shadow: 0 28px 90px rgba(0,0,0,0.5), inset 0 0 80px rgba(255,255,255,0.08);
}

.logo-stage .grid {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(500px) rotateX(58deg) rotateZ(-4deg);
  animation: gridMove 8s linear infinite;
}

.ring {
  position: absolute;
  width: min(48vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  box-shadow: 0 0 55px var(--shadow), inset 0 0 55px rgba(255,255,255,0.08);
  animation: pulse 2.8s ease-in-out infinite;
}

.main-logo {
  position: relative;
  z-index: 2;
  width: min(64%, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(255,255,255,0.28));
  animation: floatLogo 4.8s ease-in-out infinite;
}

.shard {
  position: absolute;
  width: 84px;
  height: 84px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.08));
  clip-path: polygon(8% 0, 100% 28%, 67% 100%, 0 74%);
  opacity: 0.42;
  filter: blur(0.2px);
}

.s1 { left: 8%; top: 18%; animation: shardOne 5s ease-in-out infinite; }
.s2 { right: 9%; top: 13%; animation: shardTwo 5.6s ease-in-out infinite; }
.s3 { left: 48%; bottom: 10%; animation: shardThree 4.7s ease-in-out infinite; }

.scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.22), transparent 58%);
  transform: translateX(-120%);
  animation: scan 4s ease-in-out infinite;
}

.generator-section {
  padding: 36px 0 34px;
}

.generator-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.12), transparent 36%),
    rgba(10,10,10,0.86);
  box-shadow: 0 30px 100px rgba(0,0,0,0.45);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.status-pill,
.limit-pill {
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.screen {
  min-height: 230px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%),
    #070707;
}

.screen-title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.screen-muted,
.message {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.key-value {
  overflow-wrap: anywhere;
  color: #92ff94;
  font-size: clamp(27px, 6vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 0 24px rgba(146,255,148,0.22);
}

.verify-code {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(255,255,255,0.28);
}

.command-box {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #050505;
  background: linear-gradient(135deg, #fff, #c8c9ce);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 900;
}

.verify-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font-weight: 900;
  text-decoration: none;
}

.key-meta {
  color: #ededed;
  font-size: 18px;
  font-weight: 800;
}

.generate-btn,
.copy-btn {
  width: 100%;
  min-height: 62px;
  margin-top: 18px;
  font-size: 19px;
}

.generate-btn {
  background: linear-gradient(135deg, #fff, #acadb3);
  color: #050505;
  border-color: transparent;
}

.copy-btn {
  background: rgba(255,255,255,0.07);
}

.generate-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 3px solid rgba(0,0,0,0.25);
  border-top-color: #000;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

.generate-btn.loading .btn-spinner {
  display: inline-block;
}

.message {
  min-height: 28px;
  margin-top: 14px;
  text-align: center;
  font-weight: 800;
}

.message.error {
  color: #ff8888;
}

.message.ok {
  color: #9df59d;
}

.login-panel,
.tutorial-section {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,0.12), transparent 32%),
    rgba(8,8,9,0.78);
  box-shadow: 0 28px 90px rgba(0,0,0,0.35);
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-panel h2,
.tutorial-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.login-panel p,
.tutorial-copy p,
.tutorial-copy li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.login-panel p,
.tutorial-copy p {
  margin: 0;
}

.login-url {
  display: inline-flex;
  max-width: 100%;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #050505;
  background: linear-gradient(135deg, #fff, #bfc0c5);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 22px 55px rgba(255,255,255,0.08);
}

.tutorial-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 28px;
  margin-top: 22px;
  padding: 30px;
}

.tutorial-copy ol {
  margin: 22px 0 0;
  padding-left: 24px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 44%),
    #070707;
}

.video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.video-heading strong {
  color: #fff;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-fallback {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 70px;
}

.info-grid article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
}

.info-grid h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.info-grid p,
.info-grid li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.info-grid ol {
  margin: 0;
  padding-left: 22px;
}

.info-grid a {
  color: #fff;
  font-weight: 900;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer strong {
  color: #fff;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(-1deg) scale(1); }
  50% { transform: translateY(-12px) rotate(1deg) scale(1.03); }
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 124px 124px; }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.6; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes shardOne {
  0%, 100% { transform: translate(0, 0) rotate(12deg); }
  50% { transform: translate(28px, -18px) rotate(38deg); }
}

@keyframes shardTwo {
  0%, 100% { transform: translate(0, 0) rotate(-20deg); }
  50% { transform: translate(-32px, 28px) rotate(-52deg); }
}

@keyframes shardThree {
  0%, 100% { transform: translate(0, 0) rotate(18deg); }
  50% { transform: translate(18px, -34px) rotate(64deg); }
}

@keyframes scan {
  0%, 35% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 720px);
  }

  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    gap: 28px;
  }

  .top-generator,
  .tutorial-section,
  .login-panel {
    grid-template-columns: 1fr;
  }

  .top-generator {
    min-height: auto;
    padding-top: 28px;
    gap: 28px;
  }

  .logo-stage {
    min-height: 340px;
  }

  .hero-copy p {
    font-size: 19px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .login-panel,
  .tutorial-section,
  .generator-card {
    padding: 22px;
  }

  footer {
    flex-direction: column;
  }
}
