:root {
  color-scheme: light;
  --ink: #121826;
  --body: #3d485a;
  --muted: #6b7484;
  --line: rgba(101, 114, 135, .18);
  --panel: rgba(255, 255, 255, .82);
  --shadow: 0 30px 90px rgba(18, 24, 38, .12);
  --blue: #39aee8;
  --teal: #28c7b7;
  --yellow: #f7c948;
  --red: #c53b35;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(57, 174, 232, .38), transparent 27rem),
    radial-gradient(circle at 91% 8%, rgba(40, 199, 183, .3), transparent 26rem),
    radial-gradient(circle at 78% 100%, rgba(247, 201, 72, .26), transparent 29rem),
    linear-gradient(145deg, #f7fafe 0%, #fbf8f1 100%);
}

.page {
  width: min(100% - 32px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px) 0;
  display: grid;
  align-items: center;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 34px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--yellow));
}

.content {
  padding: clamp(32px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo { width: 164px; height: auto; margin-bottom: clamp(32px, 5vw, 52px); }

.code-row { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.code { color: var(--red); font-size: .76rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.code-row::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(197, 59, 53, .1); }

h1 { max-width: 650px; margin: 0 0 18px; font-size: clamp(2.5rem, 4.8vw, 4.6rem); line-height: .94; letter-spacing: -.065em; }
.lede { max-width: 590px; margin: 0; color: var(--body); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.62; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.65); font-weight: 760; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button.primary { border-color: var(--ink); color: white; background: var(--ink); box-shadow: 0 10px 24px rgba(18,24,38,.18); }
.button:hover { transform: translateY(-2px); background: white; box-shadow: 0 10px 24px rgba(18,24,38,.09); }
.button.primary:hover { background: #263044; }
.button:focus-visible { outline: 3px solid rgba(57,174,232,.5); outline-offset: 3px; }

.visual { position: relative; overflow: hidden; min-height: 420px; display: grid; place-items: center; border-left: 1px solid var(--line); background: rgba(247, 249, 252, .48); }
.frame { position: relative; width: min(78%, 390px); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 32px; border: 1px solid rgba(101,114,135,.16); border-radius: 30px; background: rgba(255,255,255,.48); box-shadow: 0 22px 60px rgba(18,24,38,.08); }
.frame::before, .frame::after { content: ""; position: absolute; left: 15px; right: 15px; height: 12px; background: repeating-linear-gradient(90deg, rgba(18,24,38,.18) 0 16px, transparent 16px 27px); }
.frame::before { top: 14px; }
.frame::after { bottom: 14px; }
.error-mark { width: 100%; min-height: 72%; padding: 25px 18px; display: grid; place-content: center; text-align: center; border-radius: 20px; color: white; background: linear-gradient(145deg, #202939, #080b11); box-shadow: 0 20px 44px rgba(18,24,38,.24); }
.error-mark strong { display: block; font-size: clamp(4.8rem, 8vw, 6.8rem); line-height: .85; letter-spacing: -.09em; }
.error-word { margin-bottom: 13px; color: var(--yellow); font-size: .74rem; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.visual-label { margin-top: 18px; color: rgba(255,255,255,.62); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer { margin-top: auto; padding-top: 34px; color: var(--muted); font-size: .8rem; line-height: 1.55; }

@media (max-width: 820px) {
  .page { width: min(100% - 22px, 1180px); padding: 11px 0; }
  .card { min-height: 0; grid-template-columns: 1fr; }
  .visual { min-height: 270px; order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
  .frame { width: 220px; aspect-ratio: 5 / 4; padding: 27px; }
  .error-mark { min-height: 100%; }
  .error-mark strong { font-size: 4.7rem; }
  .content { padding: 32px 26px; }
  .logo { width: 145px; margin-bottom: 32px; }
  .footer { padding-top: 30px; }
}

@media (max-width: 480px) {
  .card { border-radius: 25px; }
  .visual { min-height: 220px; }
  .frame { width: 190px; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .actions { display: grid; }
}

@media (prefers-reduced-motion: no-preference) {
  .error-mark { animation: projector 3.8s ease-in-out infinite alternate; }
  @keyframes projector { to { box-shadow: 0 24px 56px rgba(18,24,38,.32), 0 0 34px rgba(57,174,232,.12); } }
}
