:root {
  --ink-950: #081522;
  --ink-900: #11273c;
  --ink-700: #405a73;
  --sky-500: #2d8cf0;
  --gold-500: #f2b134;
  --mint-500: #22b08a;
  --coral-500: #eb6c57;
  --paper: #f4f8fc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(17, 39, 60, 0.1);
  --shadow-lg: 0 28px 80px rgba(9, 22, 34, 0.14);
  --shadow-md: 0 18px 40px rgba(9, 22, 34, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, #fdfefe 0%, #f3f8fb 46%, #ecf3f8 100%);
}

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

button,
input {
  font: inherit;
}

#app {
  min-height: 100vh;
}

.page-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.page-shell-header {
  padding-bottom: 0;
}

.hero-band {
  position: relative;
  width: 100%;
  margin-top: 18px;
  padding: 18px 0 8px;
}

.hero-band-inner {
  position: relative;
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
}

.topbar,
.hero-surface,
.gate-panel,
.info-surface,
.credential-card,
.live-url-card,
.info-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 999px;
  background: rgba(8, 21, 34, 0.86);
  color: #ffffff;
}

.brand-block {
  display: grid;
  gap: 2px;
}

.brand-kicker,
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.topbar strong,
.hero-copy h1,
.section-heading h2,
.credential-card h3,
.info-card h3,
.live-url-card strong {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.main-shell {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.hero-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 252, 255, 0.92) 55%, rgba(243, 249, 255, 0.88) 100%);
}

.hero-copy {
  position: relative;
  padding: 6px 8px 8px 4px;
}

.hero-copy h1 {
  margin: 12px 0 14px;
  max-width: 12.2ch;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 0.94;
  color: var(--ink-950);
}

.hero-copy-text {
  max-width: 52ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-copy-text,
.section-heading p,
.credential-card p,
.info-card p,
.gate-panel p,
.note-list,
.credential-role-map,
.credential-secret-row span {
  color: rgba(17, 39, 60, 0.78);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-support {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero-support-card,
.hero-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

.hero-support-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 26px;
}

.hero-support-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  line-height: 1.1;
  color: var(--ink-950);
}

.hero-support-primary {
  background: linear-gradient(160deg, rgba(12, 28, 43, 0.96) 0%, rgba(27, 59, 92, 0.92) 100%);
  color: #ffffff;
}

.hero-support-primary strong {
  color: #ffffff;
}

.hero-support-primary .eyebrow,
.hero-support-primary p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat-card {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 16px;
  border-radius: 22px;
}

.hero-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-950);
}

.hero-stat-label {
  font-size: 0.95rem;
  color: rgba(17, 39, 60, 0.7);
  font-weight: 700;
}

.hero-support-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
}

.hero-points span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 39, 60, 0.08);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.subtle {
  color: rgba(17, 39, 60, 0.62);
}

.gate-panel,
.info-surface {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.section-heading h2 {
  margin: 10px 0 12px;
}

.gate-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.field-block {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.field-block input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(17, 39, 60, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-950);
}

.field-block input:focus {
  outline: 2px solid rgba(45, 140, 240, 0.16);
  border-color: rgba(45, 140, 240, 0.48);
}

.form-error {
  margin: 0;
  color: #b9352b;
  font-weight: 700;
}

.note-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink-950);
  background: linear-gradient(135deg, #ffd46d 0%, var(--gold-500) 100%);
  box-shadow: 0 16px 32px rgba(242, 177, 52, 0.28);
}

.button-secondary {
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--border);
}

.button-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #10263b 0%, #21466c 100%);
  box-shadow: 0 16px 32px rgba(17, 39, 60, 0.2);
}

.gate-actions,
.credential-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.credential-actions {
  margin-top: auto;
  padding-top: 28px;
}

.live-url-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
}

.live-url-display {
  display: grid;
  gap: 8px;
}

.live-url-card strong {
  display: block;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}

.live-url-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.credential-grid,
.info-grid {
  display: grid;
  gap: 16px;
}

.credential-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.credential-card,
.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.credential-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--sky-500), var(--gold-500));
}

.accent-gold::before {
  background: linear-gradient(90deg, #ffd46d, #f29f05);
}

.accent-sky::before {
  background: linear-gradient(90deg, #58b9ff, var(--sky-500));
}

.accent-mint::before {
  background: linear-gradient(90deg, #62ddb9, var(--mint-500));
}

.accent-coral::before {
  background: linear-gradient(90deg, #ff9a7e, var(--coral-500));
}

.credential-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.credential-card h3,
.info-card h3 {
  margin: 16px 0 10px;
}

.credential-secret-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 39, 60, 0.05);
}

.credential-secret-row strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

@media (max-width: 1080px) {
  .hero-surface,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
    padding-top: 12px;
  }

  .hero-band {
    margin-top: 14px;
    padding-top: 16px;
  }

  .hero-band-inner {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .hero-surface,
  .gate-panel,
  .info-surface,
  .credential-card,
  .info-card {
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .hero-copy-text {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .gate-actions .button,
  .credential-actions .button {
    width: 100%;
  }

  .live-url-actions {
    grid-template-columns: 1fr;
  }

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

  .credential-secret-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .credential-secret-row strong {
    text-align: left;
  }

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