:root {
  --bg: #070d19;
  --bg-2: #0f1f38;
  --panel: rgba(13, 24, 41, 0.86);
  --panel-2: rgba(18, 33, 56, 0.88);
  --text: #eaf1fb;
  --muted: #a9bad1;
  --line: #2b4d74;
  --brand: #67c7ff;
  --brand-2: #72f0d1;
  --ok: #37d28e;
  --warn: #f3bf4f;
  --danger: #f27c7c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 88% -4%, rgba(103, 199, 255, 0.24), transparent 52%),
    radial-gradient(1100px 760px at 6% 108%, rgba(114, 240, 209, 0.15), transparent 56%),
    linear-gradient(180deg, #091122, #0f1f38 45%, #11233d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 25, 0.82), rgba(10, 18, 32, 0.9));
  z-index: -1;
}

a { color: #8fd6ff; text-decoration: none; }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 60px;
}

.top-stage {
  width: 100%;
  position: relative;
  padding-bottom: 20px;
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(125, 195, 255, 0.24), transparent 62%),
    linear-gradient(160deg, rgba(8, 17, 33, 0.94), rgba(11, 24, 47, 0.95)),
    url('background.png') center/cover no-repeat;
  border-bottom: 1px solid #214164;
}

.top-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 10px;
  background: rgb(230, 234, 243);
  border-top-left-radius: 55% 100%;
  border-top-right-radius: 55% 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-bottom: 1px solid #2a4a71;
  backdrop-filter: blur(8px);
  background: rgba(9, 19, 36, 0.66);
  padding: 14px 0;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #2f5682;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #102139;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand small {
  color: var(--muted);
  display: block;
}

.top-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  width: auto;
  border: 1px solid #2f567f;
  background: #143051;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.nav-toggle .hamburger {
  font-size: 14px;
  line-height: 1;
  padding-right: 5px;
  margin-top: -1px;
}

.nav-btn {
  border: 1px solid #2f567f;
  background: #143051;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-btn:hover { border-color: #6bc8ff; background: #1a3f67; }

.nav-btn.active {
  border-color: #66c8ff;
  background: #1d466f;
  box-shadow: 0 0 0 1px rgba(102, 200, 255, 0.22) inset;
}

.hero {
  margin-top: 26px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 20px 0 30px;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 5%;
  position: relative;
}

.hero.about-hero {
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 34px;
}

.about-lead {
  max-width: 920px;
}

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

.about-note {
  border: 1px solid #3a2f1f;
  background: rgba(46, 34, 17, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  color: #f0d9a2;
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.03;
}

.hero p {
  color: #b8c9de;
  line-height: 1.58;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  border: 1px solid #2f567f;
  background: #153050;
  color: #e6eef7;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.btn.alt { background: transparent; border-color: #4f76a5; }
.btn:hover { border-color: #6bc8ff; background: #1a3f67; }
.btn.alt:hover { background: rgba(23, 43, 71, 0.7); }

.status-card {
  background: rgba(10, 20, 36, 0.78);
  border: 1px solid #345b86;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.status-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2a4a70;
  background: #0f1d31;
  font-size: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(55, 210, 142, 0.45);
}

.avatar {
  width: 136px;
  height: 136px;
  border-radius: 14px;
  border: 1px solid #35597f;
  object-fit: cover;
  background: #132643;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid #2f4e73;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #c7d8ec;
  background: #102038;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.note {
  color: #a4b7ce;
  font-size: 12px;
}

.section-inner {
  width: min(1100px, calc(100% - 72px));
  margin-left: auto;
  margin-right: auto;
}

.section-inner > * {
  position: relative;
  z-index: 1;
}

.trust-strip {
  margin-top: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border: none;
  border-radius: 0;
  background: var(--panel);
  padding: 28px 0;
  position: relative;
}

.trust-strip::before { display: none; }

.surface-light {
  background: rgba(239, 244, 252, 0.96) !important;
  color: #152843;
}

.surface-light .trust-head,
.surface-light p,
.surface-light .note { color: #4c607d; }

.surface-light .logo-tile,
.surface-light .card,
.surface-light .feature {
  background: #ffffff;
  border-color: #d4deee;
  color: #152843;
}

.surface-light .feature p { color: #4f6585; }

.surface-light .walk-links a {
  background: #ffffff;
  border-color: #cfd9ea;
  color: #1c3558;
}

.surface-light .list { color: #213b62; }

.trust-head {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.logo-tile {
  text-align: center;
  border: 1px solid #2c4c72;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 12px;
  color: #c0d4ea;
  background: #11243d;
}

.section {
  margin-top: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border: none;
  border-radius: 0;
  background: var(--panel);
  padding: 60px 0;
  position: relative;
}

.section-inner > h2,
.section-inner > h3 {
  margin: 0 0 14px;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: #eaf3ff;
  text-shadow: 0 1px 0 rgba(6, 10, 18, 0.35);
}

.section-inner > h2 { text-align: center; }

.section-inner > p {
  font-size: 18px;
  line-height: 1.55;
}

.section-intro {
  margin: 0 auto 22px;
  max-width: 880px;
  text-align: center;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  height: 38px;
  background: inherit;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 38' preserveAspectRatio='none'%3E%3Cpath d='M0 38 L0 22 C220 34 420 36 620 26 C850 12 1070 2 1310 10 C1450 14 1530 18 1600 24 L1600 38 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 38px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 38' preserveAspectRatio='none'%3E%3Cpath d='M0 38 L0 22 C220 34 420 36 620 26 C850 12 1070 2 1310 10 C1450 14 1530 18 1600 24 L1600 38 Z' fill='black'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: 100% 38px;
  opacity: 1.08;
}

.section.surface-deep {
  background: linear-gradient(140deg, rgb(13, 33, 59), rgb(16, 41, 71));
}

.section.surface-deep h2,
.section.surface-deep h3 { color: #eaf3ff; }

.section.surface-deep p,
.section.surface-deep .note,
.section.surface-deep li { color: #b8cbe2; }

.section.surface-deep .list { color: #d6e4f4; }

.section.surface-deep .card {
  background: rgba(12, 31, 54, 0.72);
  border-color: #31567f;
}

.section.surface-light h2,
.section.surface-light h3 {
  color: #102644;
  text-shadow: none;
}

.section.surface-light p,
.section.surface-light .note,
.section.surface-light li { color: #102644; }

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

.card {
  border: 1px solid #2a4b71;
  border-radius: 12px;
  background: var(--panel-2);
  padding: 14px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: #c7d8eb;
}

.list li { margin: 6px 0; }

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

.feature {
  border: 1px solid #2d4f75;
  border-radius: 12px;
  background: #122741;
  padding: 12px;
}

.feature-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.feature svg {
  width: 18px;
  height: 18px;
  fill: #7bd2ff;
}

.feature-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #2f567f;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.feature-status.live {
  color: #0f6d4d;
  border-color: #8ad8b7;
  background: #e9fbf4;
}

.feature-status.preview {
  color: #715712;
  border-color: #efd88f;
  background: #fff7de;
}

.feature-status.upcoming {
  color: #715712;
  border-color: #efd88f;
  background: #fff7de;
}

.feature-status.path {
  color: #234f8f;
  border-color: #a9c6f1;
  background: #edf4ff;
}

.feature h4 {
  margin: 8px 0 6px;
  font-size: 14px;
}

.feature p {
  margin: 0;
  font-size: 12px;
  color: #152843 !important;
}

.walk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.walk-links a {
  border: 1px solid #33597f;
  border-radius: 999px;
  padding: 6px 10px;
  background: #12263f;
  color: #cde0f4;
  font-size: 12px;
}

.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid #2b4f76;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.95), rgba(7, 14, 26, 0.98));
  padding: 26px 0 34px;
}

.footer-inner {
  width: min(1100px, calc(100% - 72px));
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
}

.footer-links a { color: #9ec8ef; }

.footer-note {
  color: #8fa8c5;
  font-size: 12px;
  line-height: 1.45;
}

.demo-chat-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.privacy-toast {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 62;
  width: min(520px, calc(100vw - 184px));
  border: 1px solid #2f567f;
  border-radius: 14px;
  background: #0f2742;
  color: #dce9f8;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(2, 8, 18, 0.45);
}

.privacy-toast.hidden { display: none; }

.privacy-toast p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #dce9f8;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-actions .btn,
.privacy-actions button {
  width: auto;
  padding: 7px 11px;
  font-size: 12px;
}

.demo-chat-btn {
  height: 48px;
  min-width: 136px;
  border-radius: 999px;
  border: 1px solid #2f567f;
  background: #153050;
  color: #e6eef7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 12px;
}

.demo-chat-modal {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 82px;
  width: min(420px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 112px));
  border: 1px solid #2b4f76;
  border-radius: 14px;
  background: #102038;
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  z-index: 61;
}

.demo-chat-modal.active { display: grid; }

.demo-chat-head {
  padding: 10px 12px;
  border-bottom: 1px solid #2b4f76;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #132c49;
}

.demo-chat-log {
  padding: 10px;
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
}

.chat-msg {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #263b59;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.chat-msg.user {
  justify-self: end;
  background: #1e3d68;
}

.chat-msg.assistant {
  justify-self: start;
  background: #141f31;
}

.demo-chat-foot {
  border-top: 1px solid #2b4f76;
  padding: 10px;
  background: #0f1d31;
  display: grid;
  gap: 8px;
}

.demo-chat-input {
  width: 100%;
  min-height: 70px;
}

input,
textarea,
button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2e567f;
  background: #102039;
  color: #e6f2ff;
  font-family: inherit;
}

button {
  cursor: pointer;
  background: #153050;
}

button:hover {
  border-color: #55b8ff;
  background: #1a3f67;
}

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .about-columns { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { position: relative; }
  .topbar-inner { align-items: center; }
  .nav-toggle { display: inline-flex; }
  .top-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 22px;
    right: 22px;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #2f567f;
    border-radius: 14px;
    background: #0f2742;
    z-index: 140;
    box-shadow: 0 12px 28px rgba(2, 8, 18, 0.45);
    pointer-events: auto;
  }
  .top-links.open { display: flex; }
  .top-links .nav-btn { justify-content: center; }
  .hero h1 { font-size: 38px; }
  .section-inner { width: calc(100% - 44px); }
  .section-inner > h2,
  .section-inner > h3 { font-size: 30px; }
  .section-inner > p { font-size: 16px; }
  .section-intro {
    max-width: 100%;
    margin-bottom: 18px;
  }
  .section { padding: 38px 0; }
  .footer-inner { width: calc(100% - 44px); }
  .privacy-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .demo-chat-wrap { bottom: 88px; }
}
