:root {
  --ink: #10231f;
  --ink-soft: #435a54;
  --jade: #0f7b63;
  --jade-deep: #075546;
  --mint: #dff6ee;
  --paper: #f5f7f3;
  --white: #ffffff;
  --amber: #ffc857;
  --line: rgba(16, 35, 31, 0.12);
  --shadow: 0 30px 90px rgba(7, 55, 45, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(15, 123, 99, 0.08), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(255, 200, 87, 0.14), transparent 22%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(245, 247, 243, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--jade);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
}

nav a:hover {
  color: var(--jade);
}

.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--jade);
  box-shadow: 0 12px 30px rgba(15, 123, 99, 0.24);
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--jade-deep);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 14px;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 760px;
  margin: 0 auto;
  padding: 100px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.9fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(48px, 6.5vw, 86px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--jade);
}

.hero-lead {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  color: var(--jade);
  font-weight: 750;
}

.text-link span {
  display: inline-block;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.trust-row {
  margin: 52px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 12px;
}

.trust-row li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(15, 123, 99, 0.18);
  border-radius: 50%;
}

.orbit-one {
  width: 540px;
  height: 540px;
}

.orbit-two {
  width: 410px;
  height: 410px;
  border-style: dashed;
}

.phone {
  position: relative;
  z-index: 2;
  width: 390px;
  min-height: 560px;
  padding: 18px;
  border: 8px solid #152924;
  border-radius: 44px;
  background: #eef4f0;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-top {
  padding: 4px 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20b486;
  box-shadow: 0 0 0 5px rgba(32, 180, 134, 0.12);
}

.secure-pill {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--jade);
  background: var(--mint);
  font-size: 9px;
}

.chat-thread {
  display: grid;
  gap: 12px;
}

.raw-message,
.optimized-message {
  border-radius: 20px;
  background: white;
}

.raw-message {
  padding: 16px;
  opacity: 0.72;
}

.raw-message span {
  font-size: 10px;
  color: #71827d;
}

.raw-message p {
  margin: 7px 0;
  font-size: 13px;
}

.raw-message code {
  display: block;
  overflow: hidden;
  padding: 10px;
  border-radius: 10px;
  color: #c8d3cf;
  background: #14231f;
  font-size: 10px;
  white-space: nowrap;
}

.arrow-flow {
  text-align: center;
  color: var(--jade);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.optimized-message {
  padding: 17px;
  border: 1px solid rgba(15, 123, 99, 0.22);
  background: linear-gradient(145deg, #ffffff, #effaf6);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.spark {
  color: var(--jade);
}

.risk {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #843c14;
  background: #ffe4c9;
  font-size: 9px;
}

.optimized-message code {
  display: block;
  margin: 13px 0 10px;
  color: #08765f;
  font-weight: 750;
}

.optimized-message p {
  font-size: 13px;
}

.optimized-message button,
.after-card button {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--jade);
  font-weight: 750;
  cursor: pointer;
}

.proof-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  text-align: center;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--jade);
  font-size: 34px;
  letter-spacing: -0.04em;
}

.proof-strip span {
  color: var(--ink-soft);
  font-size: 12px;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section h2,
.security-section h2,
.early-access h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.security-section p,
.early-access p {
  color: var(--ink-soft);
  font-size: 18px;
}

.experience-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.scenario-tabs {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #eaf2ee;
}

.scenario-tab {
  padding: 12px;
  border: 0;
  border-radius: 14px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.scenario-tab.is-active {
  color: white;
  background: var(--ink);
}

.scenario-stage {
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.before-card,
.after-card {
  min-height: 280px;
  padding: 30px;
  border-radius: 22px;
}

.before-card {
  color: #687a75;
  background: #f2f4f3;
}

.after-card {
  color: var(--ink);
  background: linear-gradient(145deg, var(--mint), #ffffff);
  border: 1px solid rgba(15, 123, 99, 0.2);
}

.stage-label {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.before-card h3,
.after-card h3 {
  font-size: 27px;
  line-height: 1.17;
}

.before-card p,
.after-card p {
  margin-bottom: 18px;
}

.after-card ul {
  margin: 0 0 24px;
  padding-left: 20px;
}

.after-card li {
  margin: 6px 0;
}

.route-marker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jade);
  font-size: 9px;
  text-align: center;
  letter-spacing: 0.08em;
}

.route-marker span {
  height: 1px;
  flex: 1;
  background: var(--jade);
}

.architecture-section {
  padding-top: 70px;
}

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

.architecture-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
}

.layer-number {
  color: rgba(15, 123, 99, 0.18);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.architecture-card h3 {
  margin: 70px 0 14px;
  font-size: 24px;
}

.architecture-card p {
  color: var(--ink-soft);
}

.status-note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--jade);
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
  background: rgba(15, 123, 99, 0.07);
}

.architecture-card code {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--jade-deep);
  background: var(--mint);
  font-size: 11px;
}

.security-section {
  padding: 120px 20px;
  color: white;
  background: var(--ink);
}

.security-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.security-section .eyebrow {
  color: #65d9b8;
}

.security-section p {
  color: #b8c9c4;
}

.security-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 18px;
}

.security-list span {
  color: #65d9b8;
  font-size: 12px;
  font-weight: 850;
}

.early-access {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 140px 0;
  text-align: center;
}

#beta-form {
  max-width: 640px;
  margin: 38px auto 12px;
  display: flex;
  gap: 10px;
}

#beta-form input {
  min-width: 0;
  height: 56px;
  flex: 1;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: white;
}

#beta-form input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(15, 123, 99, 0.1);
}

.form-note {
  font-size: 12px !important;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.reveal {
  animation: rise-in 680ms ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .proof-strip,
  .architecture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-stage {
    grid-template-columns: 1fr;
  }

  .route-marker {
    transform: rotate(90deg);
  }

  .security-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .site-header .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    width: calc(100% - 24px);
    min-height: auto;
    padding-top: 62px;
    gap: 30px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 500px;
    transform: scale(0.87);
  }

  .proof-strip {
    width: calc(100% - 24px);
    padding-inline: 0;
  }

  .proof-strip div {
    padding: 12px;
  }

  .section {
    width: calc(100% - 24px);
    padding: 90px 0;
  }

  .scenario-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-stage {
    padding: 20px;
    gap: 22px;
  }

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

  .early-access {
    width: calc(100% - 24px);
    padding: 100px 0;
  }

  #beta-form {
    flex-direction: column;
  }

  footer {
    gap: 8px;
    flex-direction: column;
  }
}