:root {
  color-scheme: dark;
  --bg: #040608;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f8fbff;
  --muted: rgba(232, 240, 249, 0.68);
  --subtle: rgba(232, 240, 249, 0.45);
  --cyan: #80e6ff;
  --amber: #ffbc68;
  --green: #87e6b1;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 18%, rgba(128, 230, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 16% 54%, rgba(255, 188, 104, 0.09), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.signal-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.46;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(100% - 40px, 1180px);
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(4, 6, 8, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 700;
  font-size: 17px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(128, 230, 255, 0.45), transparent 42%),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(128, 230, 255, 0.25);
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.86);
  transform: rotate(var(--angle));
}

.brand-mark span:nth-child(1) {
  --angle: 0deg;
}

.brand-mark span:nth-child(2) {
  --angle: 60deg;
}

.brand-mark span:nth-child(3) {
  --angle: -60deg;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--subtle);
  font-size: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.login-link:hover {
  border-color: rgba(128, 230, 255, 0.55);
  background: rgba(128, 230, 255, 0.14);
  transform: translateY(-1px);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  padding: 3px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}

.language-switch span,
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  padding: 0 8px;
}

.language-switch span {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.language-switch a {
  transition:
    color 160ms ease,
    background 160ms ease;
}

.language-switch a:hover {
  background: rgba(128, 230, 255, 0.12);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(4, 6, 8, 0.22), rgba(4, 6, 8, 0.48) 46%, #040608 100%),
    radial-gradient(circle at 50% 42%, transparent 0 16rem, rgba(4, 6, 8, 0.45) 36rem);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0 44%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-inner {
  align-self: end;
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 0 0 clamp(32px, 5vw, 56px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 0.96;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 0 48px rgba(128, 230, 255, 0.18);
}

.hero-copy {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 720;
}

.primary-action {
  gap: 10px;
  border: 1px solid rgba(128, 230, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(128, 230, 255, 0.9), rgba(135, 230, 177, 0.86)),
    #80e6ff;
  color: #041014;
  box-shadow:
    0 18px 70px rgba(128, 230, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 90px rgba(128, 230, 255, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.prompt-console {
  width: min(100%, 760px);
  margin: 34px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 6, 8, 0.62);
  padding: 16px;
  text-align: left;
  box-shadow:
    0 24px 88px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.prompt-console label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
}

.prompt-row input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.prompt-row input:focus {
  border-color: rgba(128, 230, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(128, 230, 255, 0.08);
}

.prompt-row button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--text);
  color: #040608;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
}

section:not(.hero) {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.section-heading h2,
.workflow h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 740;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow),
.security p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 42px;
}

.model-grid article,
.feature-grid article,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.model-grid article {
  min-height: 132px;
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.model-grid article::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 230, 255, 0.2), transparent 68%);
}

.model-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.model-grid strong {
  display: block;
  margin-top: 36px;
  font-size: 18px;
  line-height: 1.25;
}

.platform {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.feature-grid article {
  min-height: 250px;
  padding: 24px;
}

.feature-kicker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(128, 230, 255, 0.34);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.feature-grid h3 {
  margin: 58px 0 12px;
  font-size: 25px;
}

.feature-grid p,
.steps p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 18px;
  padding: 20px;
}

.steps span {
  grid-row: span 2;
  color: var(--amber);
  font-size: 13px;
  font-weight: 820;
}

.steps strong {
  font-size: 19px;
}

.steps p {
  margin-top: 8px;
}

.security {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 380px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compact {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--subtle);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(100% - 24px, 1180px);
    margin-top: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    width: min(100% - 28px, 920px);
  }

  h1 {
    font-size: clamp(42px, 13vw, 72px);
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 210px;
  }

  .security {
    display: grid;
    align-items: start;
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
    padding: 8px;
  }

  .brand {
    font-size: 15px;
  }

  .login-link {
    min-width: 68px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-switch {
    font-size: 12px;
  }

  .language-switch span,
  .language-switch a {
    min-width: 30px;
    padding: 0 7px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    padding-bottom: 44px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .prompt-console {
    padding: 12px;
  }

  section:not(.hero),
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

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

  .steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }
}

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

  .signal-field {
    display: none;
  }
}
