:root {
  --theme-rgb: 127, 150, 194;
  --theme: rgb(var(--theme-rgb));
  --theme-deep: rgb(92, 114, 156);
  --theme-soft: rgba(var(--theme-rgb), 0.12);
  --theme-fog: rgba(var(--theme-rgb), 0.2);
  --bg: #f4f8fd;
  --bg-strong: #eef4fb;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(86, 109, 151, 0.15);
  --text: #1d2940;
  --text-dim: rgba(29, 41, 64, 0.72);
  --text-faint: rgba(29, 41, 64, 0.5);
  --shadow: 0 24px 70px rgba(83, 102, 139, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--theme-rgb), 0.24), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(var(--theme-rgb), 0.18), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, #f6f9fe 24%, #f2f7fd 58%, #ecf3fb 100%);
  background-size: 132% 132%, 138% 138%, 100% 100%;
  background-position: 0% 0%, 100% 0%, 50% 0%;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    linear-gradient(90deg, rgba(var(--theme-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(rgba(var(--theme-rgb), 0.03) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  opacity: 0.32;
  animation: grid-drift 28s linear infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 52%, rgba(160, 184, 231, 0.22), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.76), transparent 18%),
    linear-gradient(118deg, rgba(182, 205, 241, 0.12) 12%, rgba(255, 255, 255, 0) 34%, rgba(142, 170, 222, 0.22) 50%, rgba(255, 255, 255, 0) 66%, rgba(206, 220, 245, 0.14) 84%);
  filter: blur(34px) saturate(1.08);
  opacity: 0.72;
  transform-origin: center;
  will-change: transform, opacity;
  animation: ribbon-sweep 18s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.ambient-background {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
  animation: ambient-pan 18s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.ambient-background::before,
.ambient-background::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  will-change: transform, opacity;
}

.ambient-background::before {
  background:
    radial-gradient(circle at 16% 20%, rgba(var(--theme-rgb), 0.18), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(182, 201, 233, 0.2), transparent 24%),
    radial-gradient(circle at 68% 78%, rgba(255, 255, 255, 0.9), transparent 32%);
  filter: blur(18px);
  opacity: 0.92;
  animation: ambient-sheen 30s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.ambient-background::after {
  inset: -22% -16%;
  background:
    conic-gradient(from 220deg at 50% 50%, rgba(var(--theme-rgb), 0.08), rgba(255, 255, 255, 0), rgba(var(--theme-rgb), 0.06), rgba(255, 255, 255, 0));
  filter: blur(42px);
  opacity: 0.5;
}

.ambient-orb {
  display: block;
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
  filter: blur(18px);
  opacity: 0.82;
}

.ambient-orb-a {
  top: 4%;
  left: -6%;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle at 36% 36%, rgba(var(--theme-rgb), 0.34), rgba(var(--theme-rgb), 0.12) 42%, transparent 74%);
  animation: ambient-float-a 18s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.ambient-orb-b {
  top: 38%;
  right: -10%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle at 45% 45%, rgba(198, 214, 239, 0.34), rgba(198, 214, 239, 0.14) 40%, transparent 72%);
  animation: ambient-float-b 22s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.ambient-orb-c {
  bottom: -16%;
  left: 28%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(214, 227, 247, 0.22) 42%, transparent 74%);
  animation: ambient-float-c 20s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100vw - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 14px;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.topnav a {
  padding: 6px 0;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(var(--theme-rgb), 0.28);
  transform: scaleX(0.35);
  transform-origin: left center;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-mark {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-title {
  display: inline-flex;
  align-items: flex-start;
  position: relative;
  width: fit-content;
}

.brand-copy strong,
h1,
h2,
h3,
summary {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

.brand-copy strong {
  font-size: 1.35rem;
}

.brand-copy span {
  color: var(--text-faint);
  font-size: 0.98rem;
}

.brand-beta {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(var(--theme-rgb), 0.12);
  border: 1px solid rgba(var(--theme-rgb), 0.2);
  color: var(--theme-deep);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: absolute;
  left: calc(100% + 1px);
  top: -0.14rem;
  line-height: 1;
  transform: scale(0.75);
  transform-origin: left bottom;
}

.hero {
  padding: 58px 0 58px;
}

.hero-panel {
  padding: 72px;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    rgba(var(--theme-rgb), 0.05);
  border: 1px solid rgba(86, 109, 151, 0.12);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -12% auto auto 58%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--theme-rgb), 0.24), transparent 70%);
  filter: blur(10px);
  animation: hero-glow 16s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.92;
}

.hero-subtitle {
  margin: 26px 0 0;
  max-width: 34rem;
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--text-dim);
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 600;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(135deg, rgb(var(--theme-rgb)), rgba(229, 236, 250, 0.96));
  color: #22304c;
  box-shadow: 0 16px 34px rgba(var(--theme-rgb), 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-note {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 0.95rem;
}

main section {
  padding: 52px 0 0;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.headline-underline {
  text-decoration: underline;
  text-decoration-color: rgba(var(--theme-rgb), 0.55);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.section-heading p {
  margin: 12px 0 0;
  max-width: 32rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.feature-grid,
.journey-grid {
  display: grid;
  gap: 20px;
}

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

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

.feature-card,
.journey-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 18px 42px rgba(83, 102, 139, 0.08);
  backdrop-filter: blur(16px);
}

.workflow-panel {
  position: relative;
  padding: 38px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68)),
    rgba(var(--theme-rgb), 0.04);
  border: 1px solid rgba(86, 109, 151, 0.12);
  box-shadow: 0 24px 60px rgba(83, 102, 139, 0.08);
  overflow: hidden;
}

.workflow-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--theme-rgb), 0.28), transparent);
}

.workflow-heading {
  margin-bottom: 32px;
}

.workflow-grid {
  gap: 18px;
}

.workflow-card {
  position: relative;
  padding: 28px 30px 30px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 34px rgba(83, 102, 139, 0.06);
}

.workflow-card-heading {
  position: relative;
  align-items: center;
  margin-bottom: 14px;
}

.card-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(var(--theme-rgb), 0.12);
  border: 1px solid rgba(var(--theme-rgb), 0.18);
  color: var(--theme-deep);
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(var(--theme-rgb), 0.12);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-heading h3 {
  margin: 0;
}

.feature-card h3,
.journey-card h3 {
  font-size: 1.35rem;
}

.feature-card p,
.journey-card p {
  margin: 12px 0 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.workflow-card p {
  margin-left: 0;
  max-width: 24rem;
}

.journey-card-wide {
  grid-column: 1 / -1;
}

.onboarding {
  margin-top: 24px;
  padding: 28px 30px 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(246, 249, 253, 0.94), rgba(239, 245, 252, 0.96)),
    rgba(var(--theme-rgb), 0.02);
  border: 1px solid rgba(86, 109, 151, 0.1);
  box-shadow: 0 16px 36px rgba(83, 102, 139, 0.06);
  overflow: hidden;
}

.onboarding-header {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.onboarding-eyebrow {
  color: rgba(92, 114, 156, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.onboarding-title {
  font-size: 1.42rem;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

.onboarding-subtext {
  margin: 8px 0 0;
  max-width: 30rem;
  color: var(--text-dim);
  line-height: 1.65;
  font-size: 0.98rem;
}

.onboarding-body {
  display: flex;
  justify-content: center;
}

.instruction-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(100%, 1080px);
  padding: 14px;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(145, 168, 214, 0.12);
  box-shadow: 0 16px 34px rgba(13, 21, 38, 0.14);
}

.onboarding-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  line-height: 1.8;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: end;
  align-self: center;
  width: 104px;
  min-width: 104px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(116, 141, 188, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--theme-deep);
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.copy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(116, 141, 188, 0.34);
  box-shadow: 0 10px 22px rgba(13, 21, 38, 0.12);
}

.copy-btn:active:not(:disabled) {
  transform: translateY(0);
}

.copy-btn:focus-visible {
  outline: none;
  border-color: rgba(var(--theme-rgb), 0.42);
  box-shadow:
    0 0 0 3px rgba(var(--theme-rgb), 0.18),
    0 10px 22px rgba(13, 21, 38, 0.12);
}

.copy-btn:disabled {
  cursor: default;
  pointer-events: none;
}

.copy-feedback {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.copy-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.copy-btn.is-copied {
  color: #d8ebff;
  background: rgba(99, 142, 214, 0.38);
  border-color: rgba(154, 191, 255, 0.3);
}

.copy-btn.is-copy-failed {
  color: #ffe3e3;
  background: rgba(176, 72, 72, 0.34);
  border-color: rgba(255, 188, 188, 0.26);
}

.copy-btn.is-copied,
.copy-btn.is-copy-failed {
  transform: none;
}

.copy-btn.is-copied .copy-icon,
.copy-btn.is-copy-failed .copy-icon,
.copy-btn.is-copied .copy-label,
.copy-btn.is-copy-failed .copy-label {
  display: none;
}

.copy-btn.is-copied .copy-feedback,
.copy-btn.is-copy-failed .copy-feedback {
  display: inline;
}

.copy-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
}

.copy-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instruction-card pre {
  min-width: 0;
  background: linear-gradient(180deg, rgba(24, 34, 53, 0.62), rgba(17, 24, 39, 0.84));
  border-color: rgba(140, 165, 214, 0.1);
  color: #e9f1ff;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(13, 21, 38, 0.1);
}

.instruction-card pre code {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 24px;
  white-space: normal;
}

.terminal-prompt {
  flex: 0 0 auto;
  color: #9cc0ff;
  line-height: 1.65;
}

.instruction-text {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.65;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 20px 22px;
  border-radius: 24px;
  background: #eef4fb;
  border: 1px solid rgba(86, 109, 151, 0.12);
  color: #243250;
  line-height: 1.75;
  font-size: 0.94rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.faq-section {
  padding-top: 64px;
  padding-bottom: 40px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(83, 102, 139, 0.06);
  backdrop-filter: blur(14px);
}

.faq-question {
  margin: 0;
  font-size: 1.08rem;
}

.faq-item p {
  margin: 12px 0 0;
  max-width: none;
  color: var(--text-dim);
  line-height: 1.75;
  white-space: nowrap;
}

footer {
  padding: 0 0 40px;
  color: var(--text-faint);
  font-size: 0.94rem;
}

@keyframes grid-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(18px, 12px, 0);
  }
}

@keyframes ribbon-sweep {
  0% {
    transform: translate3d(-6%, -3%, 0) rotate(-8deg) scale(1.02);
    opacity: 0.52;
  }

  50% {
    transform: translate3d(2%, 1%, 0) rotate(-1deg) scale(1.08);
    opacity: 0.82;
  }

  100% {
    transform: translate3d(10%, 4%, 0) rotate(7deg) scale(1.04);
    opacity: 0.6;
  }
}

@keyframes ambient-pan {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(2.5%, -2%, 0) scale(1.03);
  }
}

@keyframes ambient-sheen {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
    opacity: 0.86;
  }

  100% {
    transform: translate3d(6%, 4%, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes ambient-float-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(14%, 9%, 0) scale(1.12);
  }
}

@keyframes ambient-float-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.68;
  }

  100% {
    transform: translate3d(-14%, -8%, 0) scale(1.12);
    opacity: 0.88;
  }
}

@keyframes ambient-float-c {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(11%, -12%, 0) scale(1.1);
  }
}

@keyframes hero-glow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.82;
  }

  100% {
    transform: translate3d(-4%, 5%, 0) scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero-panel {
    padding: 56px 42px;
  }

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

  .workflow-panel {
    padding: 30px 24px;
  }

  .instruction-card {
    width: 100%;
  }

  .instruction-text {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .faq-item p {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(var(--max-width), calc(100vw - 24px));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
  }

  .brand-mark {
    width: 70px;
    height: 70px;
  }

  .ambient-orb-a {
    width: 28rem;
    height: 28rem;
  }

  .ambient-orb-b {
    width: 30rem;
    height: 30rem;
  }

  .ambient-orb-c {
    width: 24rem;
    height: 24rem;
    left: 12%;
  }

  .hero-panel {
    padding: 36px 24px;
    border-radius: 30px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .onboarding {
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq-item {
    padding-left: 18px;
    padding-right: 18px;
  }

  .workflow-card p {
    margin-left: 0;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .copy-btn,
  body::before,
  body::after,
  .ambient-background,
  .ambient-background::before,
  .ambient-background::after,
  .ambient-orb,
  .hero-panel::before {
    animation: none;
    transition: none;
  }
}
