:root {
  --ink: #09090b;
  --muted: #626674;
  --line: #e3e5ea;
  --accent: #ff3d38;
  --accent-soft: #fff1f0;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 26px 64px rgba(17, 24, 39, 0.1);
  --font: "Comfortaa", "Avenir Next Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --entry-overlay-alpha: 0;
  --entry-bg-split-angle: -60deg;
  --entry-bg-live-clip: polygon(0 0, 100% 100%, 0 100%, 0 0);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fbf8f0 url("/assets/index-bg-live-action-poster.jpg?v=20260706-liveaction1") center center / cover no-repeat;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: none;
}

body::after {
  content: none;
}

.entry-bg-stack {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #fbf8f0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.entry-bg-stack.is-active {
  opacity: 1;
}

.entry-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  filter: brightness(0.72) saturate(0.86) contrast(0.92);
  transform: scale(1);
  transition: opacity 560ms ease, filter 560ms ease, transform 760ms ease;
  will-change: transform, filter, opacity;
}

.entry-bg-video--live {
  z-index: 2;
  clip-path: var(--entry-bg-live-clip);
  transform-origin: 28% 72%;
}

.entry-bg-video--animated {
  z-index: 1;
  transform-origin: 74% 28%;
}

.entry-bg-stack.is-live-focus .entry-bg-video--live,
.entry-bg-stack.is-animated-focus .entry-bg-video--animated {
  opacity: 1;
  filter: brightness(1.17) saturate(1.19) contrast(1.09);
  transform: scale(1.055);
}

.entry-bg-split {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 3px;
  height: 170vmax;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.24), rgba(255, 61, 56, 0.8), rgba(255, 255, 255, 0.3), transparent);
  box-shadow:
    0 0 18px rgba(255, 61, 56, 0.52),
    0 0 36px rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%) rotate(var(--entry-bg-split-angle));
  transition: opacity 520ms ease, box-shadow 520ms ease;
}

.entry-bg-stack.is-live-focus .entry-bg-split {
  opacity: 0.92;
  box-shadow:
    0 0 22px rgba(255, 61, 56, 0.58),
    0 0 42px rgba(255, 255, 255, 0.45);
}

.entry-bg-stack.is-animated-focus .entry-bg-split {
  opacity: 0.72;
  box-shadow:
    0 0 15px rgba(255, 61, 56, 0.46),
    0 0 30px rgba(255, 255, 255, 0.34);
}

button,
input,
select,
textarea {
  font: inherit;
}

.entry-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 34px 24px;
}

@media (prefers-reduced-motion: reduce) {
  .entry-bg-stack {
    display: none;
  }
}

.entry-panel {
  width: min(100%, 980px);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(58vw, 320px);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2603 / 703;
  animation: brand-drift 6.5s ease-in-out infinite;
  filter:
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.98))
    drop-shadow(0 14px 46px rgba(255, 61, 56, 0.4));
}

.brand-logo,
.brand-logo-dots,
.brand-logo-split,
.brand-logo-shine {
  position: absolute;
  pointer-events: none;
}

.brand-logo {
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo--real {
  z-index: 1;
  clip-path: polygon(0 0, 52% 0, 47% 100%, 0 100%);
  filter: contrast(1.08) saturate(1.04) brightness(0.98);
}

.brand-logo--comic {
  z-index: 2;
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 47% 100%);
  filter:
    saturate(1.85)
    contrast(1.34)
    brightness(1.08)
    drop-shadow(2px 0 0 rgba(255, 255, 255, 0.72))
    drop-shadow(-1px 2px 0 rgba(255, 61, 56, 0.22));
  animation: comic-pop 3.8s ease-in-out infinite;
}

.brand-logo-dots {
  inset: -4%;
  z-index: 3;
  clip-path: polygon(51% 0, 100% 0, 100% 100%, 46% 100%);
  background-image: radial-gradient(circle, rgba(255, 61, 56, 0.24) 0 1.1px, transparent 1.35px);
  background-size: 7px 7px;
  -webkit-mask: url("/assets/anim8-logo.png") center / contain no-repeat;
  mask: url("/assets/anim8-logo.png") center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.42;
  animation: logo-dots 7s linear infinite;
}

.brand-logo-split {
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 2px;
  height: 122%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.48), rgba(255, 61, 56, 0.95), rgba(255, 255, 255, 0.38), transparent);
  box-shadow:
    0 0 10px rgba(255, 61, 56, 0.58),
    0 0 20px rgba(255, 255, 255, 0.44);
  transform: translate(-50%, -50%) rotate(6deg);
  animation: logo-split-pulse 2.8s ease-in-out infinite;
}

.brand-logo-shine {
  inset: -34%;
  z-index: 5;
  clip-path: polygon(49% 0, 100% 0, 100% 100%, 44% 100%);
  background: linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, 0.68) 48%, transparent 58%);
  -webkit-mask: url("/assets/anim8-logo.png") center / contain no-repeat;
  mask: url("/assets/anim8-logo.png") center / contain no-repeat;
  mix-blend-mode: screen;
  transform: translateX(-82%);
  animation: logo-shine 5.2s ease-in-out infinite;
}

.sparkline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 18px;
  color: var(--accent);
}

.sparkline span {
  width: 104px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 56, 0.85), transparent);
}

.sparkline b {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

h1 {
  margin: 0;
  color: #08090c;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.16;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.98),
    0 10px 42px rgba(255, 61, 56, 0.34);
}

h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
  font-weight: 500;
  letter-spacing: 0;
}

.subtitle {
  margin: 30px 0 34px;
  color: #fff;
  font-size: clamp(14px, 1.16vw, 16px);
  font-weight: 800;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.92),
    0 8px 30px rgba(255, 61, 56, 0.26);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 28px;
  width: min(100%, 920px);
  margin: 0 auto;
}

.choice-card {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  min-height: 315px;
  padding: 40px 30px 30px;
  border: 1px solid rgba(255, 61, 56, 0.1);
  border-radius: 10px;
  color: var(--ink);
  background: var(--card);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.16) 38%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 52%);
  opacity: 0.86;
}

.choice-card > * {
  position: relative;
  z-index: 1;
}

.choice-card:hover,
.choice-card:focus-visible {
  border-color: rgba(255, 61, 56, 0.64);
  box-shadow: 0 34px 84px rgba(255, 61, 56, 0.13), 0 18px 44px rgba(17, 24, 39, 0.08);
  outline: none;
  transform: translateY(-3px);
}

.choice-card.is-enterprise {
  border-color: rgba(255, 61, 56, 0.28);
}

.explore-card {
  border-color: rgba(255, 61, 56, 0.18);
}

.icon-bubble {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 61, 56, 0.18), rgba(255, 61, 56, 0.055) 68%, transparent 69%),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 34px rgba(255, 61, 56, 0.08);
}

.icon-bubble::before,
.icon-bubble::after {
  content: "✦";
  position: absolute;
  color: rgba(255, 61, 56, 0.55);
  font-size: 13px;
}

.icon-bubble::before {
  left: -18px;
  top: 31px;
}

.icon-bubble::after {
  right: -17px;
  top: 28px;
}

.icon-bubble svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 4.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.building-icon svg {
  fill: rgba(255, 61, 56, 0.12);
}

.choice-card strong {
  display: block;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.choice-card small {
  display: block;
  min-height: 50px;
  color: #4f5360;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.44;
}

.choice-card i {
  display: block;
  margin-top: 24px;
  color: var(--accent);
  font-size: 48px;
  font-style: normal;
  font-weight: 220;
  line-height: 1;
}

.form-card {
  width: min(100%, 690px);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(255, 61, 56, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  box-shadow: var(--shadow);
  text-align: left;
}

.form-card h2 {
  margin: 6px 0 8px;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0;
}

.form-card p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.back-button {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 560;
}

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

.login-card form {
  grid-template-columns: 1fr;
}

.login-card h2,
.login-card > p:not(.login-consent) {
  text-align: center;
}

.login-card .login-consent {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.login-consent a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

label {
  display: grid;
  gap: 8px;
  color: #242631;
  font-size: 13px;
  font-weight: 560;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dde0e7;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 61, 56, 0.74);
  box-shadow: 0 0 0 4px rgba(255, 61, 56, 0.09);
}

.submit-button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 18px 38px rgba(255, 61, 56, 0.22);
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.status-message {
  min-height: 22px;
  margin-top: 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 560;
  text-align: center;
}

[hidden] {
  display: none !important;
}

.project-handoff {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 32px;
  color: #fff;
  background: #020202;
  opacity: 0;
  transition: opacity 650ms ease;
}

.project-handoff.is-visible {
  opacity: 1;
}

.project-handoff__content {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 900ms ease 180ms, transform 900ms ease 180ms;
}

.project-handoff.is-visible .project-handoff__content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-handoff img {
  display: block;
  width: min(62vw, 320px);
  height: auto;
  filter: drop-shadow(0 22px 55px rgba(255, 61, 56, 0.24));
}

.project-handoff p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.45;
}

.project-handoff__fallback {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transition: color 160ms ease, opacity 500ms ease 2200ms;
}

.project-handoff.is-visible .project-handoff__fallback {
  opacity: 1;
}

.project-handoff__fallback:hover,
.project-handoff__fallback:focus-visible {
  color: #fff;
  outline: none;
}

.project-handoff__loader {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: #ff5a52;
  border-radius: 999px;
  animation: handoff-spin 900ms linear infinite;
}

@keyframes handoff-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes brand-drift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.012);
  }
}

@keyframes comic-pop {
  0%,
  100% {
    transform: translate(0, 0);
  }

  46% {
    transform: translate(1px, -1px);
  }

  52% {
    transform: translate(-1px, 1px);
  }

  58% {
    transform: translate(0, 0);
  }
}

@keyframes logo-dots {
  to {
    background-position: 21px 14px;
  }
}

@keyframes logo-split-pulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes logo-shine {
  0%,
  50% {
    transform: translateX(-82%);
    opacity: 0;
  }

  62% {
    opacity: 0.9;
  }

  78% {
    transform: translateX(58%);
    opacity: 0;
  }

  100% {
    transform: translateX(58%);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .entry-shell {
    padding: 34px 18px;
    align-items: start;
  }

  .sparkline {
    margin-top: 26px;
  }

  .sparkline span {
    width: 78px;
  }

  .subtitle {
    margin-bottom: 34px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .choice-card {
    min-height: 260px;
    background: rgba(255, 255, 255, 0.96);
  }

  form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand-logo--comic,
  .brand-logo-dots,
  .brand-logo-split,
  .brand-logo-shine {
    animation: none;
  }
}
