:root {
  --cyberreef-blue: #004F6B;
  --cyberreef-orange: #F58025;
  --ink: #14242b;
  --muted: #5c6f77;
  --surface: #ffffff;
  --line: #d9e3e7;
  --background: #edf5f7;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 79, 107, 0.94), rgba(0, 79, 107, 0.72)),
    var(--background);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.5;
}

.page-shell {
  width: min(100%, 920px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px;
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero,
.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 28, 38, 0.22);
}

.hero {
  padding: clamp(20px, 5vw, 40px) clamp(28px, 7vw, 56px);
  position: relative;
  overflow: hidden;
}

.brand-header {
  --brand-logo-width: min(300px, 74vw);
  --brand-logo-height: calc(var(--brand-logo-width) * 1188 / 3070);
  --brand-baseline-offset: calc(var(--brand-logo-height) * 322 / 1188);
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--cyberreef-orange);
}

.panel {
  padding: clamp(24px, 5vw, 38px);
}

.brand-logo {
  width: var(--brand-logo-width);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin: 0;
}

.brand-name {
  margin: 0;
  color: var(--cyberreef-orange);
  font-family: "Cabin", Arial, sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 0.88;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.hero .brand-name:last-child {
  margin-bottom: calc(var(--brand-baseline-offset) - 4px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyberreef-orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2 {
  margin: 0;
  color: var(--cyberreef-blue);
  font-family: "Cabin", Arial, sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 8vw, 4.6rem);
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
}

p {
  margin: 14px 0 0;
}

.intro {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.steps {
  margin: 22px 0;
  padding-left: 1.35rem;
  color: var(--ink);
}

.steps li + li {
  margin-top: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  background: var(--cyberreef-orange);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  border-color: var(--cyberreef-blue);
  color: var(--cyberreef-blue);
}

.button:focus-visible {
  outline: 3px solid rgba(245, 128, 37, 0.38);
  outline-offset: 3px;
}

.qr-panel {
  margin-top: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(132px, 160px) 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.qr-code {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-copy p {
  margin: 0;
}

.qr-url {
  margin-top: 10px !important;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px;
    align-content: start;
  }

  .hero,
  .panel {
    box-shadow: 0 14px 34px rgba(0, 28, 38, 0.2);
  }

  .button,
  .button-row {
    width: 100%;
  }

  .brand-header {
    --brand-logo-width: min(270px, 78vw);
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .brand-name {
    width: min(270px, 78vw);
    font-size: 2.7rem;
    text-align: center;
  }

  .hero .brand-name:last-child {
    margin-bottom: 0;
  }

  .qr-panel {
    grid-template-columns: 1fr;
  }

  .qr-code {
    width: min(156px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 2.45rem;
  }
}
