:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #eaf4ff;
  --cyan-soft: #dff7ff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0b5cab;
  --primary-2: #1264d8;
  --accent: #e1757d;
  --line: #dbe7f5;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(223, 247, 255, 0.95), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(234, 244, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(18, 100, 216, 0.35);
  outline-offset: 3px;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 60px;
}

.contact-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  margin-bottom: 32px;
  border: 1px solid rgba(219, 231, 245, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
}

.logo {
  width: 42px;
  height: 42px;
}

.nav-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.nav-contact-links a {
  padding: 9px 12px;
  border-radius: 999px;
}

.nav-contact-links a:hover {
  color: var(--primary);
  background: var(--surface-soft);
}

.secure-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}

.intro-panel,
.card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #dbe7f5;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.intro-panel {
  padding: clamp(26px, 5vw, 52px);
  background:
    radial-gradient(circle at 18% 18%, rgba(223, 247, 255, 0.92), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3f9ff 100%);
}

.intro-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(18, 100, 216, 0.11);
}

.card {
  padding: clamp(22px, 4vw, 34px);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  font-family: 'Sora', 'Manrope', sans-serif;
  letter-spacing: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
}

h2 {
  font-size: 26px;
  line-height: 1.2;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}

.code-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.input-label {
  color: var(--text);
  font-weight: 800;
}

.code-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.code-input {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid #bdd6f2;
  background: #ffffff;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.code-input::placeholder {
  color: #94a3b8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 34px rgba(18, 100, 216, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(18, 100, 216, 0.32);
}

.btn.secondary {
  color: var(--primary);
  background: #ffffff;
  border-color: #bfd7f3;
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--surface-soft);
}

.btn.full {
  width: 100%;
}

.status {
  display: none;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--primary);
  background: var(--surface-soft);
  border: 1px solid #c8def5;
  font-weight: 700;
}

.status.show {
  display: block;
}

.status.error {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.contact-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 22px;
  background: #f8fbff;
  border: 1px solid #dfeaf6;
}

.contact-panel-header {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid #dfeaf6;
}

.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #e8f0f8;
}

.contact-row:last-of-type {
  border-bottom: 0;
}

.label {
  color: var(--muted);
  font-weight: 800;
}

.value {
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.qr-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid #dfeaf6;
  background: #ffffff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.qr-box img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #ffffff;
}

.qr-meta {
  display: grid;
  gap: 6px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 24px, 1080px);
    padding-top: 12px;
  }

  .contact-nav,
  .secure-layout,
  .code-entry,
  .actions {
    grid-template-columns: 1fr;
  }

  .contact-nav {
    display: grid;
    align-items: start;
  }

  .nav-contact-links {
    justify-content: flex-start;
  }

  .secure-layout {
    display: grid;
  }

  .intro-panel,
  .card {
    border-radius: 22px;
  }

  .btn {
    width: 100%;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qr-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}
