:root {
  color-scheme: dark;
  /* A single clear-blue accent unifies the headline, button and eyes. */
  --color-background: #111722;
  --color-backdrop: #090f19;
  --color-wall: #1b2633;
  --color-text-primary: #f3f7fd;
  --color-text-secondary: #a6b2c4;
  --color-accent: #68a7eb;
  --color-headline-accent: var(--color-accent);
  --color-eyes: var(--color-accent);
  --color-accent-hover: #81b7f3;
  --color-accent-pressed: #5597df;
  --color-on-accent: #081a2b;
  --color-focus-ring: var(--color-accent);
  --color-text-selection: #244567;
  --color-shadow: rgba(54, 133, 220, 0.22);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--color-text-primary);
  background: var(--color-background);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--color-background); }
p, h1 { margin: 0; }
svg, img { display: block; flex-shrink: 0; }
::selection { background: var(--color-text-selection); color: var(--color-text-primary); }

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-background);
}

.header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: max(32px, env(safe-area-inset-top)) max(5.5vw, env(safe-area-inset-right)) 24px max(5.5vw, env(safe-area-inset-left));
}

.brand { display: flex; align-items: center; }
.brand__name { font-size: 32px; line-height: 1; letter-spacing: -2px; font-weight: 750; }

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0 128px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 58%;
  padding: 0 0 0 max(8.1vw, env(safe-area-inset-left));
}

h1 { font-size: clamp(64px, 6.65vw, 112px); line-height: 1.065; letter-spacing: -0.066em; font-weight: 650; }
h1 span { color: var(--color-headline-accent); }
.intro { margin-top: 27px; color: var(--color-text-secondary); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; letter-spacing: -0.012em; }
.intro strong { color: var(--color-text-primary); font-weight: 600; }

.entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  min-height: 58px;
  margin-top: 27px;
  padding: 15px 23px 17px 25px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background 180ms, transform 180ms, box-shadow 180ms;
}

.entry svg { transition: transform 180ms; }
.entry:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 7px 22px var(--color-shadow); }
.entry:hover svg { transform: translateX(3px); }
.entry:active { background: var(--color-accent-pressed); transform: translateY(0); box-shadow: none; }
.entry:focus-visible { outline: 3px solid var(--color-focus-ring); outline-offset: 5px; }

.corner {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 46%;
  overflow: hidden;
  background: var(--color-backdrop);
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
}

.corner__back { position: absolute; inset: 0; background: var(--color-backdrop); }
.eyes-position { position: absolute; bottom: 20%; left: 56%; transform: translateX(-50%); }
.eyes-reveal { animation: peek 1450ms 200ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.eyes { display: flex; gap: clamp(28px, 3.3vw, 58px); transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform 260ms ease-out; }
.eye { width: clamp(96px, 10vw, 160px); height: clamp(190px, 21vw, 310px); }
.eye__shape { width: 100%; height: 100%; border-radius: 50%; background: var(--color-eyes); transform-origin: center 76%; }
.eyes.is-blinking .eye__shape { animation: quick-blink 240ms ease-in-out; }
.corner__front { position: absolute; z-index: 1; inset: 0; border: 0; outline: none; box-shadow: none; background: var(--color-wall); clip-path: polygon(0 84%, 100% 69%, 100% 100%, 0 100%); }

@keyframes peek {
  0% { transform: translateY(240px); }
  58% { transform: translateY(-12px); }
  78% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

@keyframes quick-blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.045); }
}

@media (min-width: 1600px) {
  .hero__copy { padding-left: 10vw; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .header { padding-inline: 5vw; }
  .hero__copy { padding-left: 6vw; }
  h1 { font-size: 64px; }
  .intro { font-size: 16px; }
  .corner { width: 43%; }
  .eyes-position { left: 60%; }
  .eyes { gap: 25px; }
  .eye { width: 84px; height: 185px; }
}

@media (min-width: 701px) and (max-height: 650px) {
  .hero { padding-block: 24px 36px; }
}

@media (min-width: 701px) and (max-height: 500px) {
  .header { padding-block: max(14px, env(safe-area-inset-top)) 14px; }
  .hero { padding-block: 14px 20px; }
  h1 { font-size: clamp(42px, 6vw, 64px); }
  h1 br { display: none; }
  .intro { margin-top: 16px; font-size: 14px; line-height: 1.55; }
  .entry { min-height: 48px; margin-top: 16px; padding: 12px 20px; font-size: 14px; }
}

@media (max-width: 700px) {
  :root, body { background-color: var(--color-wall); }
  .page { --corner-height: clamp(250px, 42svh, 390px); min-height: 100dvh; }
  /* Keep Safari's obscured bottom inset the same color as the foreground wall. */
  body::after {
    content: "";
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    height: max(1px, env(safe-area-inset-bottom, 0px));
    background: var(--color-wall);
    pointer-events: none;
  }
  .header { gap: 12px; padding: max(23px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }
  .brand__name { font-size: 27px; letter-spacing: -1.7px; }
  .hero { padding: clamp(30px, 5svh, 52px) 0 calc(var(--corner-height) + 14px); }
  .hero__copy { width: 100%; padding: 0 max(26px, env(safe-area-inset-right)) 0 max(26px, env(safe-area-inset-left)); }
  h1 { font-size: clamp(53px, 11.9vw, 80px); line-height: 1.045; }
  .intro { margin-top: 22px; font-size: 16px; line-height: 1.65; }
  .entry { min-height: 55px; margin-top: 27px; gap: 34px; padding: 15px 22px; font-size: 14px; }
  .corner { inset: auto 0 0; width: 100%; height: var(--corner-height); background: transparent; clip-path: none; }
  .corner__back { background: transparent; }
  .eyes-position { top: 24%; bottom: auto; left: 56%; }
  .eyes { gap: 32px; }
  .eye { width: clamp(76px, 20vw, 98px); height: clamp(170px, 24svh, 224px); }
  .corner__front { clip-path: polygon(0 88%, 100% 48%, 100% 100%, 0 100%); }
}

@media (max-width: 360px) {
  .header { padding-inline: 20px; }
  .hero__copy { padding-inline: 22px; }
  h1 { font-size: clamp(44px, 14.4vw, 51px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
