@font-face {
  font-family: "Inter";
  src: local("Inter");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #02040a;
  --panel: rgba(8, 13, 24, 0.92);
  --panel-2: #111827;
  --bubble: #171d2a;
  --line: rgba(102, 156, 255, 0.25);
  --line-strong: rgba(95, 162, 255, 0.65);
  --blue: #1268ff;
  --blue-2: #5ac8ff;
  --text: #f8fbff;
  --muted: #9caec8;
  --success: #35e39a;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: saturate(125%);
}
.background-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(70, 130, 230, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 130, 230, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.12);
  opacity: 1;
  transition: opacity 700ms ease, visibility 700ms ease;
}
.splash-screen.is-exiting {
  visibility: hidden;
  opacity: 0;
}
.splash-logo-stage {
  position: relative;
  width: min(620px, 82vw);
  aspect-ratio: 3582 / 953;
  filter: drop-shadow(0 0 35px rgba(24, 111, 255, 0.18));
}
.splash-logo-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.splash-logo-ghost {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  filter: grayscale(1) brightness(0.55);
}
.splash-logo-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  filter: brightness(1.12) saturate(1.18);
}
.splash-screen.is-etching .splash-logo-reveal {
  animation: etchReveal 3.8s steps(96, end) forwards;
}
.splash-screen.is-etching .splash-logo-reveal img {
  animation: etchedMetalCool 4.35s ease-out forwards;
}
.etch-energy {
  position: absolute;
  inset: -5%;
  opacity: 0;
  filter:
    brightness(3.6)
    contrast(1.45)
    saturate(0.2)
    drop-shadow(0 0 7px #fff)
    drop-shadow(0 0 18px #4dd6ff)
    drop-shadow(0 0 35px #1268ff);
  -webkit-mask-image: linear-gradient(90deg, transparent 42%, rgba(255,255,255,0.25) 47%, #fff 50%, rgba(255,255,255,0.2) 53%, transparent 58%);
  mask-image: linear-gradient(90deg, transparent 42%, rgba(255,255,255,0.25) 47%, #fff 50%, rgba(255,255,255,0.2) 53%, transparent 58%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 132% 0;
  mask-position: 132% 0;
  pointer-events: none;
}
.etch-energy img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.splash-screen.is-etching .etch-energy {
  animation: etchEnergySweep 3.8s linear forwards;
}
.etch-laser {
  position: absolute;
  top: -11%;
  bottom: -11%;
  left: 0;
  width: 4px;
  opacity: 0;
  transform: translateX(-18px);
}
.splash-screen.is-etching .etch-laser {
  animation: laserSweep 3.8s linear forwards;
}
.laser-core {
  position: absolute;
  inset: 0;
  width: 2px;
  margin: auto;
  border-radius: 999px;
  background: #dff7ff;
  box-shadow:
    0 0 5px #fff,
    0 0 12px #54d5ff,
    0 0 24px #1275ff,
    0 0 44px rgba(18, 104, 255, 0.85);
  animation: laserFlicker 95ms steps(2, end) infinite;
}
.laser-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 8px 3px #8fe8ff,
    0 0 22px 8px rgba(27, 132, 255, 0.92),
    -16px -13px 0 -2px rgba(133, 224, 255, 0.75),
    -12px 16px 0 -3px rgba(54, 151, 255, 0.85),
    13px -19px 0 -3px rgba(180, 238, 255, 0.72),
    18px 12px 0 -3px rgba(58, 158, 255, 0.78);
  animation: sparkPulse 180ms ease-in-out infinite alternate;
}
.splash-status {
  margin: 0;
  color: rgba(141, 196, 255, 0.64);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  opacity: 0;
}
.splash-screen.is-etching .splash-status {
  animation: statusFade 3.8s ease forwards;
}
body.splash-active .page {
  opacity: 0;
  transform: translateY(10px);
}
.page {
  transition: opacity 700ms ease, transform 700ms ease;
}
.page {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 720px);
  margin: 0 auto;
  padding: 30px 0 64px;
}
.brand {
  display: flex;
  justify-content: center;
  padding: 2px 0 26px;
}
.brand img {
  width: min(360px, 76vw);
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(33, 119, 255, 0.34));
}
.hub-advert {
  width: min(100%, 520px);
  margin: 0 auto 40px;
}
.hub-phone {
  display: block;
  width: 100%;
  height: clamp(520px, 160vw, 640px);
  border: 0;
  margin: 0 auto;
  background: transparent;
}
.hub-chat-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  width: fit-content;
  border: 1px solid rgba(0,68,255,.65);
  border-radius: 999px;
  background: rgba(0,68,255,.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.hub-chat-cue span { font-size: 23px; }
.hub-chat-cue:hover { background: rgba(0,68,255,.3); }
#hub-assistant { scroll-margin-top: 24px; }
.hub-chat-cue:focus-visible,
#hub-assistant:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.chat-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(118, 170, 255, 0.25);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 76, 174, 0.18), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 32%),
    linear-gradient(180deg, rgba(5, 19, 43, 0.5), rgba(2, 10, 25, 0.5));
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.65), 0 0 90px rgba(18, 104, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}
.chat-shell::before {
  content: "";
  position: absolute;
  inset: 0 15% auto;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 196, 255, 0.8), transparent);
  pointer-events: none;
}
.profile {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 96px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 104, 255, 0.2), rgba(9, 33, 73, 0.5) 52%, rgba(3, 15, 35, 0.48));
}
.avatar-wrap { position: relative; flex: 0 0 auto; }
.avatar {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}
.online-dot {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 13px;
  height: 13px;
  border: 3px solid #09101d;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}
.profile-copy { min-width: 0; }
.profile-name { margin: 0; font-size: 17px; font-weight: 800; }
.profile-status { margin: 3px 0 0; color: var(--success); font-size: 12px; font-weight: 700; }
.profile-badge {
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid rgba(115, 169, 255, 0.34);
  border-radius: 999px;
  background: rgba(36, 94, 185, 0.1);
  color: #b8cced;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.messages {
  min-height: 350px;
  max-height: min(62dvh, 610px);
  overflow-y: auto;
  padding: 30px 25px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 200, 255, 0.35) transparent;
}
/* Share the magazine assistant's glass finish without changing either hub's content or layout. */
body:is([data-view="home"], [data-view="free"]) .chat-shell {
  --blue: #0044ff;
  --blue-2: #0044ff;
  --line: rgba(0,68,255,0.3);
  --line-strong: rgba(0,68,255,0.8);
  background: rgba(3, 12, 28, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 0 40px rgba(0,68,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.20);
}
body:is([data-view="home"], [data-view="free"]) .chat-shell::before {
  background: linear-gradient(90deg, transparent, #0044ff, transparent);
}
body:is([data-view="home"], [data-view="free"]) .profile { background: rgba(0,68,255,.08); }
body:is([data-view="home"], [data-view="free"]) .composer,
body:is([data-view="home"], [data-view="free"]) .powered { background: transparent; }
body:is([data-view="home"], [data-view="free"]) .composer input { background: #111827; }
body:is([data-view="home"], [data-view="free"]) .bubble {
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), #121b2b;
}
body:is([data-view="home"], [data-view="free"]) .message-row.user .bubble {
  background: linear-gradient(135deg, #0e62f1, #0646bf);
}
body:is([data-view="home"], [data-view="free"]) .choice {
  background:
    linear-gradient(165deg, rgba(255,255,255,0.13), transparent 38%),
    linear-gradient(180deg, rgba(0,68,255,0.22), rgba(5,19,43,0.78) 55%, rgba(0,68,255,0.10)),
    #071225;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), inset 0 -1px 0 rgba(0,68,255,0.24);
}
body:is([data-view="home"], [data-view="free"]) .profile-badge {
  color: var(--text); border-color: var(--line-strong);
  background: rgba(0,68,255,0.16);
}
body:is([data-view="home"], [data-view="free"]) .send { background: #0044ff; }
body[data-view="home"] .messages {
  min-height: 0;
  padding-bottom: 7px;
}
body[data-view="home"] .actions {
  padding-top: 7px;
}
.message-row {
  display: flex;
  margin: 0 0 16px;
  animation: rise 260ms ease both;
}
.message-row.user { justify-content: flex-end; }
.bubble {
  max-width: 82%;
  padding: 15px 18px;
  border: 1px solid rgba(150, 186, 241, 0.13);
  border-radius: 20px 20px 20px 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(18, 27, 43, 0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 12px 30px rgba(0,0,0,0.16);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #f8fbff;
  font-size: 15px;
  line-height: 1.48;
  white-space: pre-wrap;
}
.typewriter-bubble::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  border-radius: 2px;
  background: var(--blue-2);
  box-shadow: 0 0 8px rgba(90, 200, 255, 0.8);
  animation: caretBlink 0.72s steps(1) infinite;
}
.message-row.user .bubble {
  border-color: rgba(80, 151, 255, 0.5);
  border-radius: 18px 18px 5px 18px;
  background: linear-gradient(135deg, #0e62f1, #0646bf);
}
.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 62px;
}
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: pulse 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.16s; }
.typing span:nth-child(3) { animation-delay: 0.32s; }
.actions {
  display: grid;
  gap: 14px;
  padding: 6px 25px 30px;
  animation: rise 300ms ease both;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 16px 19px;
  border: 1px solid rgba(105, 165, 255, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 52%),
    rgba(7, 18, 37, 0.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  color: white;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.choice:hover, .choice:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: var(--blue-2);
  background:
    linear-gradient(135deg, rgba(102, 174, 255, 0.17), rgba(255, 255, 255, 0.035)),
    rgba(8, 24, 51, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 18px 40px rgba(0, 75, 190, 0.18);
}
.choice-arrow { color: var(--blue-2); font-size: 20px; }
.choice small { display: block; margin-top: 5px; color: #9eb0c9; font-weight: 500; line-height: 1.42; }
.back-choice {
  justify-self: start;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #b8cae8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.back-choice:hover, .back-choice:focus-visible { color: white; text-decoration: underline; }
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.resource-grid .choice { min-height: 108px; align-items: flex-start; }
.resource-grid .wide { grid-column: 1 / -1; min-height: 72px; }
.composer {
  display: flex;
  gap: 11px;
  padding: 18px 22px 19px;
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 22, 0.64);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.composer input {
  min-width: 0;
  flex: 1;
  height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(135, 175, 234, 0.18);
  border-radius: 999px;
  outline: none;
  background: rgba(255,255,255,0.055);
  color: white;
}
.composer input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(90, 200, 255, 0.1); }
.composer input::placeholder { color: #7f8da4; }
.send {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 10px 28px rgba(18, 104, 255, 0.34), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 150ms ease, background 150ms ease;
}
.send:hover { transform: scale(1.04); background: #2b7aff; }
.send:disabled { cursor: not-allowed; opacity: 0.4; transform: none; }
.powered {
  margin: 0;
  padding: 0 0 18px;
  background: rgba(5, 11, 22, 0.64);
  color: #60708a;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 20px;
  color: #b8cae8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.back-link:hover { color: white; }
.booking {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.noscript {
  padding: 30px;
  color: white;
  text-align: center;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 65%, 100% { transform: translateY(0); opacity: 0.35; } 32% { transform: translateY(-4px); opacity: 1; } }
@keyframes caretBlink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes etchReveal {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes etchedMetalCool {
  0% { filter: brightness(2.2) saturate(0.45) drop-shadow(0 0 16px rgba(126, 228, 255, 0.95)); }
  18% { filter: brightness(1.7) saturate(0.72) drop-shadow(0 0 11px rgba(75, 189, 255, 0.7)); }
  72% { filter: brightness(1.25) saturate(1.08) drop-shadow(0 0 5px rgba(33, 119, 255, 0.34)); }
  100% { filter: brightness(1.08) saturate(1.16) drop-shadow(0 0 2px rgba(33, 119, 255, 0.18)); }
}
@keyframes etchEnergySweep {
  0% { opacity: 0; -webkit-mask-position: 132% 0; mask-position: 132% 0; }
  3% { opacity: 0.95; }
  48% { opacity: 1; }
  96% { opacity: 0.95; }
  100% { opacity: 0; -webkit-mask-position: -32% 0; mask-position: -32% 0; }
}
@keyframes laserSweep {
  0% { left: 0; opacity: 0; transform: translateX(-18px); }
  5% { opacity: 1; }
  94% { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translateX(8px); }
}
@keyframes laserFlicker {
  0% { opacity: 0.72; width: 1px; filter: brightness(0.95); }
  50% { opacity: 1; width: 3px; filter: brightness(1.45); }
  100% { opacity: 0.82; width: 2px; filter: brightness(1.1); }
}
@keyframes sparkPulse {
  from { transform: translate(-50%, -50%) scale(0.82) rotate(-5deg); }
  to { transform: translate(-50%, -50%) scale(1.18) rotate(5deg); }
}
@keyframes statusFade {
  0%, 8% { opacity: 0; }
  22%, 78% { opacity: 1; }
  100% { opacity: 0.45; }
}
@media (max-width: 520px) {
  .page { width: calc(100% - 20px); padding: 10px 0 32px; }
  .brand { padding: 7px 0 14px; }
  .brand img { height: 66px; }
  .chat-shell { border-radius: 26px; }
  .profile { min-height: 82px; padding: 14px 17px; }
  .avatar { width: 52px; height: 52px; }
  .messages { min-height: 310px; max-height: calc(100dvh - 345px); padding: 22px 15px 14px; }
  body[data-view="free"] .messages { min-height: 250px; padding-bottom: 8px; }
  body[data-view="home"] .messages { min-height: 0; padding-bottom: 5px; }
  body[data-view="home"] .actions { padding-top: 6px; }
  .actions { padding: 5px 14px 22px; gap: 11px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-grid .wide { grid-column: auto; }
  .resource-grid { gap: 11px; }
  .resource-grid .choice { min-height: 84px; }
  .choice { min-height: 64px; padding: 14px 16px; border-radius: 16px; }
  .bubble { max-width: 93%; padding: 14px 16px; }
  .composer { padding: 15px 13px 16px; }
  .back-link { margin-left: 4px; }
  .splash-logo-stage { width: 88vw; }
  .splash-status { font-size: 9px; letter-spacing: 0.25em; text-indent: 0.25em; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-logo-reveal { clip-path: inset(0); }
  .etch-laser { display: none; }
  .splash-status { opacity: 0.75; }
}
