@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap");

:root {
  --gk-bg: #e7e8ea;
  --gk-surface: #ffffff;
  --gk-surface-2: #f1f2f3;
  --gk-navy: #132a52;
  --gk-navy-soft: #284272;
  --gk-red: #c8102e;
  --gk-red-bright: #e2213f;
  --gk-silver: #b9bfc6;
  --gk-slate: #5c6570;
  --gk-line: rgba(19, 42, 82, 0.14);
  --gk-hair: rgba(19, 42, 82, 0.08);
  --gk-ok: #2f7d5d;
  --gk-warn: #b4791e;
  --gk-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gk-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gk-font-mono: "Roboto Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--gk-bg);
  color: var(--gk-navy);
  font-family: var(--gk-font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gk-red);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--gk-red-bright);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gk-navy);
  font-family: var(--gk-font-serif);
  font-size: 24px;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 44px;
  align-items: center;
  width: min(1120px, calc(100vw - 36px));
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.intro {
  max-width: 650px;
}

.eyebrow,
.realm-line {
  margin: 0 0 8px;
  color: var(--gk-slate);
  font-family: var(--gk-font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--gk-navy);
  font-family: var(--gk-font-serif);
  line-height: 1.05;
}

.intro h1 {
  max-width: 610px;
  font-size: clamp(46px, 8vw, 86px);
}

.lede {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--gk-slate);
  font-size: 19px;
  line-height: 1.6;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.facts span {
  border: 1px solid var(--gk-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  padding: 8px 12px;
  color: var(--gk-navy-soft);
  font-family: var(--gk-font-mono);
  font-size: 12px;
}

.signup-panel {
  background: var(--gk-surface);
  border: 1px solid var(--gk-line);
  border-top: 3px solid var(--gk-red);
  border-radius: 8px;
  box-shadow: 0 16px 40px -20px rgba(19, 42, 82, 0.2);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--gk-line);
  padding: 26px 30px 20px;
}

.panel-head h1,
.panel-head h2 {
  font-size: 24px;
}

form {
  display: grid;
  gap: 15px;
  padding: 24px 30px 28px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--gk-slate);
  font-size: 12px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--gk-line);
  border-radius: 7px;
  background: var(--gk-bg);
  color: var(--gk-navy);
  padding: 0 12px;
  font: 500 15px var(--gk-font-sans);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gk-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  background: var(--gk-navy);
  color: #fff;
  cursor: pointer;
  font-family: var(--gk-font-serif);
  font-size: 15px;
  font-weight: 700;
}

button:hover,
.button-link:hover {
  background: var(--gk-navy-soft);
  color: #fff;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.status {
  display: none;
  margin: 0 30px 30px;
  border: 1px solid var(--gk-line);
  border-radius: 7px;
  background: var(--gk-surface-2);
  padding: 14px;
  color: var(--gk-navy);
  font-size: 14px;
  line-height: 1.5;
}

.status.loading,
.status.ready,
.status.error {
  display: grid;
  gap: 8px;
}

.status.ready {
  border-color: rgba(47, 125, 93, 0.32);
  background: rgba(47, 125, 93, 0.08);
}

.status.error {
  border-color: rgba(200, 16, 46, 0.34);
  background: rgba(200, 16, 46, 0.08);
}

code {
  overflow-wrap: anywhere;
  color: var(--gk-navy);
  font-family: var(--gk-font-mono);
}

.console-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 86px);
  width: min(560px, calc(100vw - 36px));
  margin: 0 auto;
}

.console-shell .signup-panel {
  width: 100%;
}

.muted {
  margin: 24px 30px;
  color: var(--gk-slate);
  line-height: 1.6;
}

.console-shell p:last-child {
  margin: 0 30px 30px;
}

@media (max-width: 840px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
  }

  .intro h1 {
    font-size: 48px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro h1 {
    font-size: 40px;
  }

  .signup-panel {
    border-radius: 7px;
  }

  .panel-head,
  form {
    padding-left: 22px;
    padding-right: 22px;
  }

  .status {
    margin-left: 22px;
    margin-right: 22px;
  }
}
