@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Montserrat:wght@300;400&display=swap');

:root {
  color-scheme: dark;
  --ink: #02040c;
  --blue: #1257ff;
  --electric: #58d9ff;
  --silver: #dce8ff;
  --line: rgba(183, 215, 255, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: #f6f9ff;
  font-family: "DM Sans", system-ui, sans-serif;
}

.experience-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  padding: 0 clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(207, 228, 255, .11);
  background: linear-gradient(180deg, rgba(2, 4, 12, .76), rgba(2, 4, 12, .08));
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f8fbff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .23em;
}

.wordmark img { width: 29px; height: 29px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(62, 175, 255, .42)); }

.signature-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 47%, rgba(27, 91, 255, .16), transparent 24%),
    radial-gradient(ellipse at 0% 100%, rgba(0, 128, 255, .15), transparent 42%),
    radial-gradient(ellipse at 100% 0%, rgba(99, 214, 255, .11), transparent 42%),
    linear-gradient(132deg, #02040b 8%, #07102a 48%, #02040b 92%);
}

.signature-hero::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -3;
  background: conic-gradient(from 30deg, transparent 0 23%, rgba(46, 112, 255, .22) 30%, transparent 38% 64%, rgba(105, 226, 255, .13) 72%, transparent 80%);
  filter: blur(70px);
  animation: atmosphere-turn 24s linear infinite;
}

.signature-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 36%, rgba(0, 0, 0, .62) 110%);
}

.ambient { position: absolute; z-index: -2; border-radius: 50%; filter: blur(34px); mix-blend-mode: screen; }
.ambient-a { width: 50vw; height: 20vw; left: -9vw; bottom: 6vh; background: rgba(0, 91, 255, .15); transform: rotate(-24deg); animation: ambient-a 12s var(--ease) infinite alternate; }
.ambient-b { width: 42vw; height: 19vw; right: -8vw; top: 15vh; background: rgba(91, 218, 255, .12); transform: rotate(-28deg); animation: ambient-b 15s var(--ease) infinite alternate; }

.light-sweep {
  position: absolute;
  z-index: -1;
  width: 18vw;
  height: 150vh;
  left: 50%;
  top: -25vh;
  background: linear-gradient(90deg, transparent, rgba(212, 239, 255, .075), transparent);
  filter: blur(12px);
  transform: translateX(-230%) rotate(19deg);
  animation: sweep 9s var(--ease) infinite;
}

.signature-stage {
  position: relative;
  z-index: 2;
  width: min(82vw, 820px);
  min-height: min(76vw, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
  perspective: 900px;
}

.core-aura {
  position: absolute;
  width: min(39vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 205, 255, .17), rgba(25, 85, 255, .06) 38%, transparent 70%);
  filter: blur(3px);
  animation: breathe 6s var(--ease) infinite;
}

.precision-field { position: absolute; width: min(59vw, 570px); aspect-ratio: 1; pointer-events: none; transform: rotateX(61deg) rotateZ(45deg); transform-style: preserve-3d; }
.precision-plane { position: absolute; inset: 0; border: 1px solid rgba(151, 205, 255, .18); box-shadow: inset 0 0 38px rgba(44, 125, 255, .025), 0 0 25px rgba(74, 157, 255, .035); }
.precision-plane::before, .precision-plane::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid rgba(199, 233, 255, .75); }
.precision-plane::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.precision-plane::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
.plane-outer { animation: precision-turn 18s linear infinite; }
.plane-middle { inset: 14%; border-color: rgba(107, 196, 255, .24); animation: precision-turn-reverse 14s linear infinite; }
.plane-inner { inset: 29%; border-color: rgba(227, 244, 255, .32); animation: precision-pulse 5s var(--ease) infinite; }
.precision-axis { position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, rgba(171, 222, 255, .29), transparent); transform-origin: center; }
.axis-x { width: 126%; height: 1px; transform: translate(-50%, -50%); }
.axis-y { width: 126%; height: 1px; transform: translate(-50%, -50%) rotate(90deg); }
.precision-node { position: absolute; width: 5px; height: 5px; background: #d8f3ff; box-shadow: 0 0 14px 4px rgba(59, 174, 255, .58); animation: node-signal 4.5s ease-in-out infinite; }
.node-a { top: 14%; left: 14%; }
.node-b { right: 14%; top: 14%; animation-delay: -1.5s; }
.node-c { right: 14%; bottom: 14%; animation-delay: -3s; }

.mark-frame {
  position: relative;
  width: clamp(138px, 16vw, 205px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
  margin-bottom: clamp(18px, 2.8vh, 30px);
}

.signature-mark {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.04) drop-shadow(0 14px 38px rgba(31, 111, 255, .34)) drop-shadow(0 0 9px rgba(196, 234, 255, .16));
  animation: mark-float 7s var(--ease) infinite;
}

.brand-signature {
  position: relative;
  width: min(92vw, 940px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3.1vh, 34px);
  isolation: isolate;
  animation: signature-arrive 1.8s var(--ease) both, signature-breathe 8s var(--ease) 1.8s infinite;
}

.brand-signature::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -90% -8%;
  background: radial-gradient(ellipse at center, rgba(91, 180, 255, .11), transparent 61%);
  filter: blur(28px);
  animation: aura-pulse 8s var(--ease) infinite;
}

.brand-name,
.brand-slogan {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(105deg, #98a6c4 0%, #f9fbff 34%, #c9ddff 51%, #ffffff 66%, #7e8dab 100%);
  background-size: 240% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 5px 24px rgba(97, 151, 255, .15));
  animation: text-shimmer 9s linear infinite;
}

.brand-name {
  font-size: clamp(40px, 7.1vw, 96px);
  letter-spacing: .27em;
  text-indent: .27em;
}

.brand-slogan {
  font-size: clamp(16px, 2.15vw, 29px);
  letter-spacing: .25em;
  text-indent: .25em;
  opacity: .94;
}

.card-actions {
  position: relative;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(25px, 4vh, 38px);
}

.card-action,
.qr-concierge {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid rgba(195, 222, 255, .28);
  border-radius: 999px;
  color: #f6f9ff;
  font: 500 11px/1 "DM Sans", system-ui, sans-serif;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.card-action { cursor: pointer; }

.card-action-primary {
  border-color: rgba(208, 237, 255, .6);
  background: linear-gradient(112deg, rgba(35, 112, 255, .36), rgba(104, 214, 255, .15));
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 0 26px rgba(57, 143, 255, .13);
}

.card-action-secondary { background: rgba(8, 18, 43, .34); }

.card-action span,
.qr-concierge span { font-size: 15px; line-height: .7; }

.card-action:hover,
.qr-concierge:hover {
  transform: translateY(-2px);
  border-color: rgba(218, 242, 255, .9);
  background-color: rgba(55, 121, 255, .22);
  box-shadow: 0 0 32px rgba(67, 161, 255, .2);
}

.card-action:focus-visible,
.qr-close:focus-visible,
.qr-concierge:focus-visible,
.install-app:focus-visible {
  outline: 2px solid #d9f5ff;
  outline-offset: 4px;
}

.install-app {
  position: fixed;
  z-index: 25;
  right: clamp(16px, 4vw, 54px);
  bottom: clamp(16px, 4vw, 42px);
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(208, 237, 255, .6);
  border-radius: 999px;
  background: rgba(9, 27, 66, .9);
  color: #f6f9ff;
  font: 500 10px/1 "DM Sans", system-ui, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  box-shadow: 0 0 26px rgba(57, 143, 255, .22);
  cursor: pointer;
}

.qr-dialog {
  width: min(100%, 900px);
  height: min(900px, calc(100dvh - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: clamp(18px, 5vw, 30px);
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #f6f9ff;
}

.qr-dialog[open] { display: block; }

.qr-dialog::backdrop {
  background: rgba(1, 4, 15, .82);
  backdrop-filter: blur(18px) saturate(125%);
  animation: qr-backdrop-in .35s ease both;
}

.qr-card {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(168, 212, 255, .3);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(39, 123, 255, .2), transparent 52%),
    linear-gradient(145deg, rgba(14, 29, 62, .97), rgba(3, 8, 22, .98));
  box-shadow: 0 28px 100px rgba(0, 0, 0, .55), 0 0 75px rgba(51, 137, 255, .18), inset 0 1px rgba(255, 255, 255, .12);
  text-align: center;
  animation: qr-card-arrive .55s var(--ease) both;
}

.qr-scroll {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(30px, 7vw, 46px) 24px 32px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.qr-option {
  min-width: 0;
  padding: 18px 14px 16px;
  border: 1px solid rgba(168, 212, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.qr-option-label {
  margin: 0 0 9px;
  color: rgba(194, 219, 255, .68);
  font-size: 8px;
  letter-spacing: .2em;
}

.qr-option h3 {
  margin: 0 0 16px;
  color: #f6f9ff;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: .06em;
}

.qr-card form { margin: 0; }

.qr-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(209, 230, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  color: rgba(237, 246, 255, .82);
  font: 300 27px/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

.qr-close:hover { border-color: rgba(209, 230, 255, .55); background: rgba(255, 255, 255, .1); }

.qr-eyebrow {
  margin: 0 0 10px;
  color: rgba(194, 219, 255, .68);
  font-size: 9px;
  letter-spacing: .25em;
}

.qr-card h2 {
  margin: 0 0 25px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(20px, 5vw, 27px);
  font-weight: 300;
  letter-spacing: .08em;
}

.qr-screen {
  position: relative;
  width: min(68vw, 286px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(198, 232, 255, .07), 0 0 48px 8px rgba(117, 202, 255, .54), 0 0 100px 18px rgba(42, 112, 255, .26);
  animation: qr-screen-ready 3.4s ease-in-out infinite;
}

.qr-option .qr-screen {
  width: min(100%, 250px);
  padding: 8px;
  border-radius: 13px;
}

.qr-screen img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.qr-instruction {
  margin: 25px 0 18px;
  color: rgba(224, 237, 255, .72);
  font-size: 13px;
  letter-spacing: .035em;
}

.qr-option .qr-instruction {
  min-height: 54px;
  margin: 16px 0 15px;
  font-size: 11px;
  line-height: 1.45;
}

.qr-concierge {
  min-height: 44px;
  border-color: rgba(190, 222, 255, .2);
  background: rgba(255, 255, 255, .045);
  font-size: 10px;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.edge { position: absolute; z-index: 8; left: clamp(22px, 4vw, 64px); right: clamp(22px, 4vw, 64px); height: 1px; background: linear-gradient(90deg, transparent, rgba(161, 205, 255, .2), transparent); }
.edge-top { top: 118px; }
.edge-bottom { bottom: 30px; }

.experience-footer {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 52px;
  width: min(88vw, 720px);
  transform: translateX(-50%);
  text-align: center;
}

.experience-footer p {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: .18em;
  color: rgba(218, 232, 255, .66);
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(72, 154, 255, .18);
  animation: footer-reveal 2.2s var(--ease) .7s both;
}

.experience-footer p::before,
.experience-footer p::after {
  content: "";
  width: clamp(22px, 4vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 216, 255, .42));
}

.experience-footer p::after { transform: scaleX(-1); }
.film-grain { position: fixed; z-index: 30; inset: 0; opacity: .04; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

@keyframes atmosphere-turn { to { transform: rotate(360deg) scale(1.06); } }
@keyframes ambient-a { to { transform: translate(9vw, -6vh) rotate(-12deg) scale(1.12); } }
@keyframes ambient-b { to { transform: translate(-8vw, 7vh) rotate(-38deg) scale(.92); } }
@keyframes sweep { 0%, 15% { transform: translateX(-280%) rotate(19deg); opacity: 0; } 38% { opacity: 1; } 72%, 100% { transform: translateX(210%) rotate(19deg); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(.95); opacity: .72; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes precision-turn { from { transform: rotateZ(0deg) translateZ(-2px); } to { transform: rotateZ(360deg) translateZ(-2px); } }
@keyframes precision-turn-reverse { from { transform: rotateZ(360deg) translateZ(8px); } to { transform: rotateZ(0deg) translateZ(8px); } }
@keyframes precision-pulse { 0%, 100% { transform: translateZ(17px) scale(.94); opacity: .48; } 50% { transform: translateZ(17px) scale(1.04); opacity: 1; } }
@keyframes node-signal { 0%, 100% { opacity: .35; transform: scale(.65); } 45% { opacity: 1; transform: scale(1.25); } }
@keyframes mark-float { 0%, 100% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-11px) rotateX(3deg); } }
@keyframes signature-arrive { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(7px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes signature-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes aura-pulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes text-shimmer { to { background-position: 210% center; } }
@keyframes footer-reveal { from { opacity: 0; transform: translateY(8px); letter-spacing: .25em; } to { opacity: 1; transform: translateY(0); letter-spacing: .18em; } }
@keyframes qr-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes qr-card-arrive { from { opacity: 0; transform: translateY(16px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes qr-screen-ready { 0%, 100% { box-shadow: 0 0 0 7px rgba(198, 232, 255, .07), 0 0 40px 6px rgba(117, 202, 255, .42), 0 0 85px 14px rgba(42, 112, 255, .2); } 50% { box-shadow: 0 0 0 9px rgba(220, 243, 255, .12), 0 0 58px 12px rgba(150, 222, 255, .72), 0 0 112px 24px rgba(42, 112, 255, .34); } }

@media (max-width: 700px) {
  .experience-header { height: 72px; }
  .signature-stage { min-height: 78vh; padding-top: 46px; }
  .core-aura { width: 70vw; }
  .precision-field { width: 88vw; }
  .mark-frame { width: clamp(118px, 34vw, 164px); margin-bottom: clamp(14px, 2.2vh, 20px); }
  .brand-signature { width: 96vw; gap: clamp(16px, 2.8vh, 24px); }
  .brand-name { font-size: clamp(28px, 8.3vw, 54px); letter-spacing: .18em; text-indent: .18em; }
  .brand-slogan { font-size: clamp(12px, 3.65vw, 19px); letter-spacing: .13em; text-indent: .13em; }
  .edge-top { top: 94px; }
  .experience-footer { bottom: 48px; width: 94vw; }
  .experience-footer p { gap: 10px; font-size: 12px; letter-spacing: .08em; }
  .experience-footer p::before,
  .experience-footer p::after { width: 16px; }
  .card-actions { gap: 9px; margin-top: clamp(23px, 3.5vh, 32px); }
  .card-action { min-height: 45px; padding: 0 15px; font-size: 10px; letter-spacing: .12em; }
  .qr-card { border-radius: 24px; }
  .qr-grid { grid-template-columns: 1fr; }
  .qr-option .qr-screen { width: min(65vw, 250px); }
  .qr-option .qr-instruction { min-height: 0; }

  .qr-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  }

  .qr-scroll {
    padding: max(30px, calc(env(safe-area-inset-top) + 18px)) 20px max(28px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
