:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #09090b;
  --muted: #71717a;
  --muted-bg: #f4f4f5;
  --border: #e4e4e7;
  --primary: #18181b;
  --primary-hover: #27272a;
  --ring: rgba(24, 24, 27, 0.18);
  --shadow: 0 18px 44px rgba(24, 24, 27, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(24, 24, 27, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f8 48%, #ffffff 100%);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

.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;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100vh;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vh, 42px) 20px;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-shell::before {
  inset: -18% -18% -8%;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(24, 24, 27, 0.13) 31%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(64deg, transparent 0 30%, rgba(24, 24, 27, 0.07) 44%, rgba(255, 255, 255, 0) 63%),
    radial-gradient(circle at 18% 22%, rgba(24, 24, 27, 0.09), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(24, 24, 27, 0.07), transparent 28%);
  background-size: 150% 150%, 145% 145%, 132% 132%, 128% 128%;
  opacity: 0.95;
  filter: blur(34px);
  transform: rotate(-7deg) translate3d(-6%, -3%, 0) scale(1.08);
  animation: aurora-drift 8s ease-in-out infinite alternate;
}

.hero-shell::after {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.86) 0 26%, rgba(255, 255, 255, 0.62) 44%, rgba(255, 255, 255, 0.2) 68%, transparent 86%),
    radial-gradient(circle at 18% 74%, rgba(24, 24, 27, 0.05), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(24, 24, 27, 0.045), transparent 30%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.76));
  animation: aurora-glow 7s ease-in-out infinite alternate;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  max-height: calc(100vh - clamp(40px, 8vh, 84px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vh, 28px);
  text-align: center;
}

.top-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.top-button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(228, 228, 231, 0.68);
  background: rgba(244, 244, 245, 0.78);
  backdrop-filter: blur(12px);
  color: var(--foreground);
  cursor: pointer;
}

.release-badge {
  gap: 10px;
  cursor: default;
  font-weight: 700;
}

.top-button:hover:not(.release-badge) {
  background: #e9e9ed;
}

.button {
  min-width: 216px;
  min-height: 56px;
  padding: 0 18px 0 20px;
  border: 1px solid transparent;
}

.button:hover,
.top-button:hover:not(.release-badge) {
  transform: translateY(-1px);
}

.button.outline {
  border-color: #d4d4d8;
  background: rgba(255, 255, 255, 0.84);
  color: var(--foreground);
  backdrop-filter: blur(12px);
}

.button.outline:hover {
  border-color: #a1a1aa;
  background: var(--muted-bg);
}

.button.solid {
  background: var(--primary);
  color: #ffffff;
}

.button.solid:hover {
  background: var(--primary-hover);
}

.channel-button {
  justify-content: space-between;
  text-align: left;
}

.button-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.button-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button-subtitle {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button.solid .button-subtitle {
  color: #d4d4d8;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.button[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.button:focus-visible,
.top-button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-copy {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 16px);
  align-items: center;
}

h1 {
  margin: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 72px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.word-line {
  position: relative;
  display: flex;
  width: 100%;
  min-height: clamp(60px, 8vh, 78px);
  justify-content: center;
  overflow: hidden;
  padding: 2px 0 8px;
  font-weight: 650;
}

.word {
  position: absolute;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 460ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.word.exit {
  opacity: 0;
  transform: translateY(-120%);
}

.word.active {
  opacity: 1;
  transform: translateY(0);
}

p {
  margin: 0;
}

.hero-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.55;
  letter-spacing: 0;
}

.actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.channel-control {
  position: relative;
}

.channel-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(340px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  text-align: left;
  z-index: 20;
}

.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 10px;
  border-bottom: 1px solid var(--border);
}

.menu-heading strong {
  color: var(--foreground);
  font-size: 13px;
  line-height: 1;
}

.menu-heading span,
.menu-links em {
  color: var(--muted);
  font-size: 12px;
}

.menu-links {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.menu-links a:hover {
  border-color: #c6c6cc;
  background: var(--muted-bg);
}

.menu-links small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.logo-cloud {
  width: min(100%, 760px);
  display: grid;
  gap: clamp(8px, 1.45vh, 14px);
  margin-top: clamp(2px, 0.9vh, 8px);
}

.logo-cloud h2 {
  margin: 0;
  color: rgba(24, 24, 27, 0.88);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: center;
}

.logo-cloud h2 span {
  display: block;
  color: rgba(24, 24, 27, 0.48);
}

.logo-cloud h2 strong {
  display: block;
  color: var(--foreground);
  font-weight: 800;
}

.logo-rule {
  height: 1px;
  background: rgba(24, 24, 27, 0.14);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

.logo-marquee {
  width: 100%;
  min-height: clamp(46px, 6vh, 60px);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.logo-track {
  width: max-content;
  display: flex;
  animation: logo-marquee 20s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-set {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 2px 0;
  padding-right: 34px;
}

.partner-logo {
  min-width: 56px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.74;
  filter: grayscale(1) contrast(0.92);
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0) contrast(1);
  transform: translateY(-1px);
}

.partner-logo img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.surecore-logo {
  min-width: 126px;
}

.surecore-logo img {
  width: 126px;
  height: auto;
  max-height: 28px;
}

.wide-logo {
  min-width: 118px;
}

.wide-logo img {
  width: 118px;
  height: auto;
  max-height: 28px;
}

.assistant-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.assistant-launcher {
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--foreground);
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.assistant-launcher:hover {
  border-color: rgba(24, 24, 27, 0.22);
  box-shadow: 0 20px 46px rgba(24, 24, 27, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.assistant-launcher[aria-expanded="true"] {
  border-color: rgba(24, 24, 27, 0.24);
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.assistant-launcher-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(24, 24, 27, 0.2);
}

.assistant-launcher-icon svg {
  width: 22px;
  height: 22px;
}

.assistant-panel {
  position: relative;
  width: min(340px, calc(100vw - 32px));
  max-height: min(540px, calc(100vh - 104px));
  display: grid;
  grid-template-rows: minmax(230px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(24, 24, 27, 0.045), transparent 38%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 64px rgba(24, 24, 27, 0.18);
  backdrop-filter: blur(18px);
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 244, 245, 0.74);
  color: #71717a;
  transition: background 160ms ease, color 160ms ease;
}

.assistant-close:hover {
  background: rgba(228, 228, 231, 0.9);
  color: var(--foreground);
}

.assistant-close svg {
  width: 13px;
  height: 13px;
}

.assistant-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
}

.assistant-messages {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 42px 18px 14px;
  text-align: left;
}

.assistant-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.assistant-message-bot {
  align-self: flex-start;
  border: 1px solid rgba(24, 24, 27, 0.08);
  background: rgba(244, 244, 245, 0.94);
  color: var(--foreground);
}

.assistant-message-user {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
}

.assistant-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 18px 14px;
}

.assistant-prompts button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease;
}

.assistant-prompts button:hover {
  border-color: rgba(24, 24, 27, 0.24);
  background: var(--muted-bg);
}

.assistant-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(24, 24, 27, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.assistant-form input {
  min-width: 0;
  height: 42px;
  flex: 1 1 auto;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--foreground);
  font: inherit;
  font-size: 13px;
  outline: 0;
  padding: 0 12px;
}

.assistant-form input::placeholder {
  color: #8b8b94;
}

.assistant-form input:focus {
  border-color: rgba(24, 24, 27, 0.24);
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.08);
}

.assistant-send {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease;
}

.assistant-send:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.assistant-send:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.assistant-launcher:focus-visible,
.assistant-close:focus-visible,
.assistant-prompts button:focus-visible,
.assistant-send:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  body {
    height: 100svh;
    min-height: 100svh;
  }

  .hero-shell {
    height: 100svh;
    padding: 18px 16px;
  }

  .hero {
    max-height: calc(100svh - 36px);
    gap: clamp(14px, 2.5vh, 20px);
  }

  h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .word-line {
    min-height: clamp(46px, 8vh, 58px);
  }

  .hero-copy p {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.45;
  }

  .actions {
    width: 100%;
  }

  .button,
  .channel-control {
    width: 100%;
    max-width: 360px;
  }

  .channel-menu {
    width: 100%;
  }

  .logo-cloud {
    width: 100%;
    max-width: 420px;
  }

  .logo-cloud h2 {
    font-size: 20px;
  }

  .logo-set {
    gap: 26px;
    padding-right: 26px;
  }

  .partner-logo {
    min-width: 48px;
  }

  .partner-logo img {
    width: 30px;
    height: 30px;
  }

  .surecore-logo img {
    width: 116px;
    height: auto;
  }

  .wide-logo {
    min-width: 108px;
  }

  .wide-logo img {
    width: 108px;
  }

  .assistant-widget {
    right: 16px;
    bottom: 16px;
  }

  .assistant-panel {
    width: min(340px, calc(100vw - 32px));
  }

  .assistant-panel {
    max-height: calc(100svh - 98px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .logo-track {
    animation: none;
  }
}

@keyframes aurora-drift {
  0% {
    transform: rotate(-7deg) translate3d(-6%, -3%, 0) scale(1.08);
    background-position: 0% 42%, 8% 34%, 12% 20%, 88% 26%;
  }

  50% {
    transform: rotate(-4deg) translate3d(1.5%, 1.5%, 0) scale(1.13);
    background-position: 58% 50%, 48% 58%, 38% 48%, 62% 50%;
  }

  100% {
    transform: rotate(-1deg) translate3d(7%, 4%, 0) scale(1.18);
    background-position: 100% 58%, 92% 66%, 76% 74%, 20% 68%;
  }
}

@keyframes aurora-glow {
  0% {
    opacity: 0.8;
    transform: translate3d(-1.5%, 0, 0);
  }

  100% {
    opacity: 0.58;
    transform: translate3d(1.5%, -1%, 0);
  }
}

@keyframes logo-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}
