:root {
  color-scheme: light;
  --ink: #071421;
  --ink-soft: #29445f;
  --deep: #0c2a45;
  --blue: #3aa8ff;
  --blue-soft: #d9efff;
  --ice: #f7fbff;
  --line: rgba(58, 168, 255, 0.24);
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 80px rgba(26, 86, 138, 0.16);
  font-family: "DIN Condensed", "Bahnschrift", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    url("../public/assets/cinematic-light-ribbon.png") center top / 1280px auto no-repeat,
    radial-gradient(circle at 14% 8%, rgba(58, 168, 255, 0.26), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(54, 150, 226, 0.28), transparent 32rem),
    linear-gradient(180deg, #050b13 0%, #071421 760px, #edf6ff 760px, #f7fbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(30, 82, 130, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 48px;
  object-fit: contain;
  border-radius: 16px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(58, 168, 255, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #5f7890;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #37536d;
  font-size: 0.92rem;
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

main {
  margin-top: -96px;
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  margin-top: 0;
  padding: calc(clamp(36px, 5vw, 64px) + 112px) max(20px, calc((100vw - 1180px) / 2)) clamp(36px, 5vw, 64px);
  border: 0;
  border-radius: 0;
  color: white;
  background:
    radial-gradient(circle at 68% 22%, rgba(58, 168, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 15% 48%, rgba(92, 190, 255, 0.16), transparent 25rem),
    linear-gradient(102deg, rgba(5, 13, 23, 0.99) 0%, rgba(7, 20, 33, 0.97) 50%, rgba(8, 28, 49, 0.98) 100%);
  box-shadow: none;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at 16% 20%, rgba(91, 188, 255, 0.22), transparent 22rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 36%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(117, 203, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 203, 255, 0.13) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 52% 42%, black, transparent 76%);
  animation: gridDrift 16s linear infinite;
}

.hero-orb {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.72;
}

.hero-orb-one {
  width: 280px;
  height: 280px;
  right: 34%;
  top: 12%;
  background: radial-gradient(circle, rgba(58, 168, 255, 0.36), transparent 68%);
  animation: floatOrb 7s ease-in-out infinite;
}

.hero-orb-two {
  width: 420px;
  height: 420px;
  right: -10%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(217, 239, 255, 0.3), transparent 66%);
  animation: floatOrb 9s ease-in-out infinite reverse;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: revealUp 900ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: #2c83c8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-title {
  max-width: 720px;
  color: #f8fbff;
  font-size: clamp(2.05rem, 3.6vw, 3.35rem);
  text-wrap: balance;
}

.hero-title-line {
  display: block;
}

.hero-title-line:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.22em;
}

.hero-title-kicker {
  font-size: 0.54em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title-accent {
  display: inline-block;
  padding-right: 0.14em;
  color: transparent;
  font-family: "Bodoni 72", "Songti SC", serif;
  font-size: 1.1em;
  font-style: italic;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, #f8fbff 0%, #8ed5ff 38%, #ffffff 76%);
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(77, 184, 255, 0.42));
}

.hero-title-tail {
  font-size: 0.7em;
  letter-spacing: 0.03em;
}

h2 {
  max-width: 780px;
  font-size: clamp(1.75rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.15rem;
}

.hero-description,
.section-heading p,
.demo-section p {
  color: #4f6a84;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero .eyebrow {
  color: #9ed7ff;
}

.hero-description {
  max-width: 660px;
  color: #c8dced;
}

.hero-actions,
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #1d8fe9 0%, var(--blue) 52%, #82d4ff 100%);
  box-shadow: 0 18px 40px rgba(18, 111, 191, 0.24);
}

.button-secondary {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(58, 168, 255, 0.28);
}

.hero .button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(158, 215, 255, 0.34);
}

.metric-row {
  margin: 34px 0 0;
}

.metric-row div {
  min-width: 130px;
  padding: 14px 16px;
  border: 1px solid rgba(58, 168, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.hero .metric-row div {
  border-color: rgba(158, 215, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.metric-row dt {
  color: var(--deep);
  font-size: 1.5rem;
  font-weight: 900;
}

.hero .metric-row dt {
  color: #f8fbff;
}

.metric-row dd {
  margin: 4px 0 0;
  color: #607890;
  font-size: 0.84rem;
}

.hero .metric-row dd {
  color: #aecaeb;
}

.agent-cockpit {
  position: relative;
  z-index: 2;
  align-self: center;
  height: min(620px, calc(100svh - 190px));
  min-height: 0;
  aspect-ratio: 0.8 / 1;
  padding: 22px;
  border: 1px solid rgba(183, 225, 255, 0.24);
  border-radius: 34px;
  color: white;
  background:
    linear-gradient(145deg, rgba(5, 14, 25, 0.92), rgba(12, 42, 69, 0.78)),
    url("../public/assets/cinematic-light-ribbon.png") center 18% / 150% auto no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: revealUp 1100ms 160ms ease both, consoleFloat 5s ease-in-out infinite;
}

.agent-cockpit::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0%, rgba(89, 190, 255, 0.08) 45%, rgba(255, 255, 255, 0.24) 50%, transparent 58%);
  transform: translateX(-80%);
  animation: beamSweep 4.6s ease-in-out infinite;
  pointer-events: none;
}

.cockpit-topline {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: #9ed7ff;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cockpit-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cockpit-orbit {
  position: absolute;
  border: 1px solid rgba(130, 207, 255, 0.28);
  border-radius: 999px;
  box-shadow: inset 0 0 28px rgba(58, 168, 255, 0.08), 0 0 34px rgba(58, 168, 255, 0.1);
  animation: orbitPulse 5.8s ease-in-out infinite;
}

.cockpit-orbit-one {
  width: 280px;
  height: 280px;
  right: -60px;
  top: 110px;
}

.cockpit-orbit-two {
  width: 170px;
  height: 170px;
  right: 150px;
  top: 230px;
  animation-delay: 900ms;
}

.signal-path {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #7bd0ff, white, transparent);
  opacity: 0.72;
  transform-origin: left center;
  animation: routeDash 3.8s ease-in-out infinite;
}

.signal-path-one {
  width: 300px;
  left: 28px;
  top: 338px;
  transform: rotate(-12deg);
}

.signal-path-two {
  width: 240px;
  right: 34px;
  top: 472px;
  transform: rotate(18deg);
  animation-delay: 700ms;
}

.storyboard-preview {
  position: relative;
  z-index: 2;
  height: clamp(150px, 24svh, 210px);
  margin: 18px 0 12px;
  border: 1px solid rgba(158, 215, 255, 0.28);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.storyboard-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.04);
  animation: storyboardDrift 8s ease-in-out infinite alternate;
}

.preview-scan {
  position: absolute;
  inset: -40% 0 auto;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(126, 211, 255, 0.26), transparent);
  animation: previewScan 3.8s ease-in-out infinite;
}

.cockpit-status {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid rgba(158, 215, 255, 0.3);
  border-radius: 18px;
  background: rgba(5, 14, 25, 0.7);
  backdrop-filter: blur(14px);
}

.cockpit-status span {
  color: #9ed7ff;
  font-size: 0.72rem;
}

.cockpit-status strong {
  font-size: 1rem;
}

.agent-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(158, 215, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  backdrop-filter: blur(12px);
  animation: nodePulse 4s ease-in-out infinite;
  animation-delay: calc(var(--node-index) * 260ms);
}

.agent-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 14px;
  color: #69c1ff;
  background: rgba(105, 193, 255, 0.12);
  font-weight: 900;
}

.agent-card strong,
.agent-card small {
  display: block;
}

.agent-card small {
  margin-top: 4px;
  color: #aecaeb;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.section-heading {
  margin-bottom: 30px;
}

.qualification-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.glass-card,
.case-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(58, 168, 255, 0.18);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 18px 55px rgba(43, 98, 146, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.solution-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(58, 168, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 251, 255, 0.72)),
    var(--card);
  box-shadow: 0 20px 60px rgba(43, 98, 146, 0.12);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.glass-card:hover,
.solution-card:hover,
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(43, 98, 146, 0.16);
}

.solution-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(7, 20, 33, 0.9), rgba(58, 168, 255, 0.22));
}

.solution-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 48%, rgba(7, 20, 33, 0.2)),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.28), transparent 12rem);
  pointer-events: none;
}

.solution-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 520ms ease, filter 520ms ease;
}

.solution-card:hover .solution-visual img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.07);
}

.solution-body {
  padding: 24px;
}

.solution-body h3 {
  margin-bottom: 14px;
}

.glass-card small,
.case-card span {
  color: #2d83c9;
  font-weight: 800;
}

.glass-card p,
.solution-card p,
.case-card p {
  color: #536d86;
  line-height: 1.7;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  color: white;
  background:
    radial-gradient(circle at 12% 20%, rgba(58, 168, 255, 0.22), transparent 28rem),
    linear-gradient(135deg, #071421, #0c2a45);
}

.dark-section .section-heading p,
.dark-section p {
  color: #bed7ec;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.timeline-item {
  padding: 22px;
  border: 1px solid rgba(158, 215, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item span {
  color: #81ceff;
  font-weight: 900;
}

.demo-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 64px;
  padding: 48px;
  border-radius: 34px;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(58, 168, 255, 0.3), transparent 30rem),
    linear-gradient(135deg, #071421, #0d3254);
}

.demo-section h2,
.demo-section .eyebrow {
  color: white;
}

.demo-section p {
  color: #c6ddf0;
}

.demo-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(158, 215, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-form label {
  display: grid;
  gap: 8px;
  color: #d9efff;
  font-weight: 800;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid rgba(158, 215, 255, 0.3);
  border-radius: 16px;
  padding: 13px 14px;
  color: white;
  background: rgba(7, 20, 33, 0.58);
  font: inherit;
}

.demo-form textarea {
  resize: vertical;
}

.form-message {
  min-height: 1.5em;
  margin: 0;
  font-weight: 800;
}

.form-message.is-success {
  color: #95ffda;
}

.form-message.is-error {
  color: #ffd2a8;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 68px 34px, 68px 34px;
  }
}

@keyframes beamSweep {
  0%,
  42% {
    transform: translateX(-80%);
  }
  76%,
  100% {
    transform: translateX(80%);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    border-color: rgba(158, 215, 255, 0.18);
    box-shadow: none;
  }
  45% {
    border-color: rgba(105, 193, 255, 0.62);
    box-shadow: 0 0 28px rgba(58, 168, 255, 0.16);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.94) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04) rotate(12deg);
  }
}

@keyframes routeDash {
  0%,
  100% {
    opacity: 0.18;
    clip-path: inset(0 100% 0 0);
  }
  48% {
    opacity: 0.9;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes previewScan {
  0%,
  100% {
    transform: translateY(-20%);
    opacity: 0;
  }
  45% {
    transform: translateY(230%);
    opacity: 1;
  }
}

@keyframes storyboardDrift {
  from {
    transform: scale(1.04) translate3d(-8px, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(8px, -8px, 0);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes consoleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, -18px, 0) scale(1.04);
  }
}

@media (max-width: 980px) {
  .hero,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    width: 100%;
    max-width: none;
  }

  .agent-cockpit {
    height: auto;
    min-height: auto;
    aspect-ratio: auto;
  }

  .qualification-grid,
  .case-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header,
  .section-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 120px 18px 28px;
    border-radius: 0;
  }

  h1 {
    font-size: clamp(1.95rem, 7vw, 2.65rem);
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.05rem);
  }

  .qualification-grid,
  .case-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .demo-section {
    padding: 28px 18px;
  }

  .agent-cockpit {
    padding: 16px;
  }

  .storyboard-preview {
    height: 220px;
  }

  .agent-card {
    grid-template-columns: 36px 1fr;
  }

  .agent-card small {
    display: none;
  }
}

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