:root {
  --bg: #05060a;
  --text: #f6f8fc;
  --muted: #8b93a6;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.045);
  --blue: #3da9ff;
  --blue-soft: #8fd0ff;
  --ink: #0b0d12;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-serif: "Instrument Serif", "Noto Sans SC", serif;
  --font-body: "Outfit", "Noto Sans SC", sans-serif;
  --spot-x: 50%;
  --spot-y: 30%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

html {
  scroll-behavior: auto;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.aurora,
.noise,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora {
  z-index: 0;
}

.vignette {
  z-index: 1;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(61, 169, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(180deg, transparent 60%, rgba(5, 6, 10, 0.7));
}

.noise {
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--blue), #fff);
}

.cursor {
  display: none;
}

body.has-cursor .cursor {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #fff;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(143, 208, 255, 0.7);
  transition: width 0.28s var(--ease), height 0.28s var(--ease), background 0.28s ease, border-color 0.28s ease;
}

body.cursor-hover .cursor-ring {
  width: 72px;
  height: 72px;
  background: rgba(61, 169, 255, 0.12);
  border-color: #fff;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #030409;
}

.loader-inner {
  width: min(420px, 80vw);
  text-align: center;
}

.loader-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-size: 11px;
}

.loader-name {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 80px);
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #fff 30%, var(--blue-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loader-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.loader-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #fff);
}

.nav {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1120px, calc(100% - 24px));
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.nav.is-hidden {
  opacity: 0;
  transform: translate(-50%, -120%);
}

.nav-logo,
.nav-links a,
.nav-cta {
  font-size: 14px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.nav-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin-left: auto;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle.is-open span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-open span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  background: rgba(3, 4, 9, 0.96);
  backdrop-filter: blur(24px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(36px, 11vw, 56px);
}

.mobile-menu-cta {
  color: var(--blue-soft);
}

main,
.footer {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px 48px;
  width: min(1120px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 140px 0 72px;
}

.hero-watermark {
  position: absolute;
  top: 18%;
  left: -6%;
  z-index: -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  user-select: none;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.8s infinite;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 140px);
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.hero-line {
  display: inline-block;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 20%, #9fd4ff 88%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line .char {
  display: inline-block;
  transform: translateY(120%);
}

.hero-lead {
  max-width: 22em;
  margin: 28px 0 0;
  color: #c7cedb;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.75;
}

.hero-lead em,
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #7dcbff, var(--blue));
  color: #031018;
  box-shadow: 0 12px 40px rgba(61, 169, 255, 0.32);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--glass);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 16px 50px rgba(61, 169, 255, 0.45);
}

.btn-arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 8px;
}

.hero-meta > div,
.feature-stats > div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-meta strong,
.feature-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
}

.hero-meta span,
.feature-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.avatar-stage {
  position: relative;
  width: min(430px, 90%);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease);
}

.avatar-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 169, 255, 0.5), transparent 68%);
  filter: blur(22px);
  animation: breathe 5.5s ease-in-out infinite;
}

.avatar-ring,
.avatar-ring-slow {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 58%, var(--blue) 76%, #fff 90%, transparent 100%);
  animation: spin 10s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.avatar-ring-slow {
  inset: -7%;
  opacity: 0.45;
  animation-duration: 22s;
  animation-direction: reverse;
}

.avatar-frame {
  position: absolute;
  inset: 10%;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.avatar-chip {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(16px);
  font-size: 13px;
  white-space: nowrap;
}

.avatar-chip-a {
  top: 12%;
  right: -4%;
  animation: float 4.8s ease-in-out infinite;
}

.avatar-chip-b {
  bottom: 14%;
  left: -2%;
  animation: float 5.6s ease-in-out infinite reverse;
}

.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee 26s linear infinite;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-title,
.contact-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.about-grid {
  display: grid;
  gap: 22px;
  max-width: 720px;
}

.about-text {
  margin: 0;
  color: #c4cbd8;
  font-size: 21px;
  line-height: 1.85;
}

.about-text a {
  color: var(--blue-soft);
  border-bottom: 1px solid rgba(143, 208, 255, 0.4);
}

.feature-card,
.contact-card {
  opacity: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.feature-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  padding: 32px;
  border-radius: 36px;
  overflow: hidden;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #9fe0b4;
  font-size: 13px;
}

.feature-lead {
  margin: 0 0 28px;
  color: #c8cedb;
  font-size: 20px;
  line-height: 1.7;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(61, 169, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #10141d, #080b12);
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.chat-name,
.chat-status {
  margin: 0;
}

.chat-name {
  font-weight: 600;
}

.chat-status {
  color: var(--muted);
  font-size: 12px;
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
}

.bubble.in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
}

.bubble.out {
  align-self: flex-end;
  background: linear-gradient(180deg, #6ec4ff, var(--blue));
  color: #031018;
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.contact-card {
  padding: clamp(40px, 7vw, 80px);
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 169, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.contact-lead {
  max-width: 22em;
  margin: 16px auto 32px;
  color: #c5cbd8;
  font-size: 18px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 max(40px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

@keyframes breathe {
  50% { transform: scale(1.08); opacity: 0.75; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-watermark {
    top: 8%;
    left: 0;
  }

  .avatar-stage {
    width: min(300px, 74vw);
  }

  .hero-meta,
  .feature-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 88px 0;
  }

  .feature-card,
  .contact-card {
    padding: 22px;
    border-radius: 24px;
  }

  .chat {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .hero,
  .section,
  .footer {
    width: calc(100% - 28px);
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .feature-card,
  .contact-card,
  .bubble {
    opacity: 1;
    transform: none;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
