:root {
  --bg: #071b24;
  --bg-deep: #020b10;
  --panel: #0d2631;
  --panel-2: #113441;
  --panel-3: #091f29;
  --line: #214552;
  --text: #e9f5f4;
  --muted: #91aaa9;
  --accent: #20c7b5;
  --accent-dark: #0f766e;
  --cyan: #4dd9ff;
  --blue: #74b8ff;
  --amber: #ffe3a3;
  --rose: #ff9baa;
  --shadow: 0 28px 70px rgb(0 0 0 / .34);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgb(32 199 181 / .2), transparent 28rem),
    radial-gradient(circle at 18% 40%, rgb(116 184 255 / .12), transparent 26rem),
    linear-gradient(180deg, #071b24 0%, #06151d 44%, #08141a 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / .025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: .75rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: rgb(7 27 36 / .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 850;
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .7rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .15), 0 14px 28px rgb(32 199 181 / .22);
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(.35rem, 2vw, 1rem);
  color: var(--muted);
  font-size: .92rem;
}

.site-header nav a {
  padding: .55rem .65rem;
  border-radius: .45rem;
}

.site-header nav a:hover {
  color: var(--text);
  background: rgb(255 255 255 / .06);
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .75rem 1rem;
  border-radius: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-action,
.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgb(13 38 49 / .75);
}

.primary-action {
  color: #032f2c;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 16px 34px rgb(32 199 181 / .22);
}

.secondary-action:hover,
.header-action:hover {
  border-color: rgb(32 199 181 / .45);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(390px, 1.14fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 5vw, 5rem) 2.2rem;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08rem;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: .8rem;
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: .88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: .85rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: .45rem;
  font-size: 1.08rem;
}

.hero-lede,
.section-heading p,
.enterprise-copy p,
.deploy-section p {
  color: rgb(233 245 244 / .78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.hero-product {
  margin: 0;
  min-width: 0;
}

.desktop-screen,
.admin-screen,
.phone-screen {
  border: 1px solid rgb(255 255 255 / .1);
  background: rgb(7 27 36 / .92);
  box-shadow: var(--shadow);
}

.desktop-screen {
  display: grid;
  grid-template-columns: minmax(180px, 31%) minmax(0, 1fr);
  min-height: clamp(430px, 54vw, 650px);
  overflow: hidden;
  border-radius: 1.2rem;
}

.screen-sidebar {
  min-width: 0;
  padding: .95rem;
  border-right: 1px solid var(--line);
  background: rgb(13 38 49 / .95);
}

.screen-brand,
.chat-top,
.capture-title,
.mobile-header,
.admin-top,
.admin-row-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.screen-brand {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.screen-brand > span:last-child,
.chat-top span:first-child,
.thread p,
.admin-row-preview p {
  display: grid;
  min-width: 0;
}

.screen-logo {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 2.3rem;
  border-radius: 50%;
  color: #07333d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
}

small,
figcaption,
.thread small,
.screen-brand small,
.chat-top small,
.file-bubble small,
.admin-row-preview small {
  color: var(--muted);
}

.screen-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: .9rem;
}

.screen-actions span,
.call-pill,
.admin-tabs-preview span,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .38rem .55rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  color: var(--text);
  background: rgb(255 255 255 / .03);
  font-size: .78rem;
  font-weight: 750;
}

.thread {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  margin-bottom: .4rem;
  padding: .7rem;
  border-radius: .75rem;
  background: var(--panel);
}

.thread.active {
  background: var(--panel-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.thread > span {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 2.45rem;
  border-radius: 50%;
  background: #1b5260;
  color: #a9fff4;
  font-weight: 850;
}

.thread strong,
.thread small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-chat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(rgb(7 27 36 / .94), rgb(7 27 36 / .94)),
    radial-gradient(circle, #2f5965 1px, transparent 1px);
  background-size: auto, 22px 22px;
}

.chat-top {
  min-height: 3.8rem;
  margin: -1rem clamp(-2rem, -3vw, -1rem) .6rem;
  padding: .85rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgb(9 31 41 / .7);
}

.call-pill {
  border-color: rgb(32 199 181 / .35);
  color: #a9fff4;
  background: rgb(32 199 181 / .1);
}

.bubble {
  width: fit-content;
  max-width: min(78%, 520px);
  padding: .65rem .85rem .45rem;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / .13);
}

.bubble p {
  margin-bottom: .25rem;
  line-height: 1.42;
}

.bubble time {
  display: block;
  color: rgb(233 245 244 / .58);
  font-size: .68rem;
  text-align: right;
}

.bubble small {
  color: #8cecdf;
}

.bubble.their {
  align-self: flex-start;
  background: var(--panel-2);
  border-bottom-left-radius: .25rem;
}

.bubble.mine {
  align-self: flex-end;
  background: #0e695f;
  border-bottom-right-radius: .25rem;
}

.file-bubble {
  display: grid;
  gap: .28rem;
  width: min(70%, 460px);
  padding: .75rem;
  border-radius: 1rem;
  border-bottom-right-radius: .25rem;
  align-self: flex-end;
  background: #0e695f;
}

.file-bubble > span {
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  margin-top: .25rem;
  border-radius: .65rem;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgb(255 255 255 / .1), rgb(255 255 255 / .03)),
    repeating-linear-gradient(45deg, rgb(255 255 255 / .06) 0 10px, transparent 10px 20px);
}

.image-preview > span {
  min-height: 8rem;
  background:
    radial-gradient(circle at 28% 32%, #ffe3a3 0 1.2rem, transparent 1.25rem),
    linear-gradient(135deg, #174c59, #0c2c39 54%, #123b33);
}

.composer-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: center;
  margin-top: auto;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--panel);
}

.composer-preview span {
  color: var(--muted);
}

.composer-preview strong {
  padding: .6rem .8rem;
  border-radius: .65rem;
  color: #032f2c;
  background: var(--accent);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(1rem, 5vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--line);
}

.proof-strip div {
  display: grid;
  gap: .25rem;
  min-height: 110px;
  padding: 1.1rem;
  background: rgb(13 38 49 / .88);
}

.proof-strip strong {
  color: var(--accent);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
}

.proof-strip span {
  color: var(--muted);
}

.section,
.screens-section,
.enterprise-section,
.security-band,
.deploy-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  max-width: 680px;
}

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

.feature-grid article {
  min-height: 260px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: rgb(13 38 49 / .75);
}

.feature-grid p,
.enterprise-list span,
figcaption,
.security-band li,
footer {
  color: rgb(233 245 244 / .7);
  line-height: 1.55;
}

.feature-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.4rem;
  border-radius: .55rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12) inset;
}

.feature-icon.teal {
  background: linear-gradient(135deg, var(--accent), #0f766e);
}

.feature-icon.blue {
  background: linear-gradient(135deg, var(--blue), #2f6bb4);
}

.feature-icon.amber {
  background: linear-gradient(135deg, var(--amber), #b78318);
}

.screens-section {
  background:
    linear-gradient(180deg, rgb(13 38 49 / .5), rgb(6 21 29 / .1)),
    linear-gradient(90deg, transparent, rgb(32 199 181 / .07), transparent);
}

.screens-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(270px, .72fr);
  gap: 1rem;
  align-items: start;
}

.capture {
  margin: 0;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 1rem;
  background: rgb(8 25 34 / .74);
  box-shadow: 0 18px 45px rgb(0 0 0 / .2);
}

.capture.wide {
  grid-row: span 2;
}

.capture-title {
  margin-bottom: .85rem;
}

.capture-title span {
  font-weight: 850;
}

.embedded {
  min-height: 410px;
  border-radius: .85rem;
  box-shadow: none;
}

figcaption {
  margin-top: .85rem;
  font-size: .94rem;
}

.phone-screen {
  position: relative;
  display: grid;
  gap: .85rem;
  width: min(100%, 320px);
  min-height: 590px;
  margin: 0 auto;
  padding: 1.1rem;
  border-radius: 2rem;
}

.phone-notch {
  width: 5.4rem;
  height: .38rem;
  margin: 0 auto .4rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .18);
}

.mobile-header {
  justify-content: flex-start;
}

.avatar-large {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgb(255 255 255 / .85) 0 .75rem, transparent .8rem),
    radial-gradient(circle at 50% 86%, rgb(255 255 255 / .75) 0 1.45rem, transparent 1.5rem),
    linear-gradient(135deg, var(--accent), var(--cyan));
}

.phone-screen label,
.mobile-panel {
  display: grid;
  gap: .35rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  color: var(--muted);
  background: var(--panel-3);
}

.phone-screen label span,
.mobile-panel strong {
  color: var(--text);
  font-weight: 800;
}

.mobile-panel button {
  width: fit-content;
  margin-top: .25rem;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  color: var(--text);
  background: transparent;
}

.mobile-panel.accent {
  border-color: rgb(32 199 181 / .3);
  background: rgb(32 199 181 / .08);
}

.admin-screen {
  display: grid;
  gap: .75rem;
  min-height: 520px;
  padding: 1rem;
  border-radius: .9rem;
}

.admin-top {
  min-height: 3.2rem;
}

.admin-top span {
  color: var(--muted);
  font-size: .9rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}

.metrics p {
  display: grid;
  gap: .2rem;
  min-height: 5.1rem;
  margin: 0;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--panel);
}

.metrics strong {
  color: var(--accent);
  font-size: 1.55rem;
}

.admin-tabs-preview {
  display: flex;
  gap: .4rem;
  overflow: hidden;
}

.admin-tabs-preview span {
  flex: 1 0 auto;
}

.admin-tabs-preview .selected {
  color: #032f2c;
  border-color: transparent;
  background: var(--accent);
}

.admin-row-preview {
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--panel-3);
}

.admin-row-preview.warning {
  border-color: rgb(255 155 170 / .32);
}

.admin-row-preview p {
  margin: 0;
}

.badge {
  min-height: 1.8rem;
  flex: 0 0 auto;
  border-radius: 999px;
}

.badge.gold {
  color: var(--amber);
  border-color: rgb(255 227 163 / .45);
}

.badge.cyan {
  color: #a8eff8;
  border-color: rgb(168 239 248 / .45);
}

.badge.red {
  color: var(--rose);
  border-color: rgb(255 155 170 / .45);
}

.enterprise-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.enterprise-list {
  display: grid;
  gap: .75rem;
}

.enterprise-list div {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: rgb(13 38 49 / .72);
}

.security-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgb(32 199 181 / .1), transparent 34%),
    rgb(4 15 21 / .7);
}

.security-band ul {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-band li {
  position: relative;
  padding-left: 1.35rem;
}

.security-band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--accent);
}

.deploy-section {
  text-align: center;
}

.deploy-section .section-heading {
  margin-inline: auto;
}

.command-panel {
  display: inline-grid;
  gap: .35rem;
  min-width: min(100%, 520px);
  margin: .6rem auto 1.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  text-align: left;
  background: #020b10;
}

.command-panel code {
  color: #a9fff4;
  font: 800 1rem/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.command-panel span {
  color: var(--muted);
}

.deploy-section .cta-row {
  justify-content: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  background: rgb(2 11 16 / .8);
}

footer span:first-child {
  color: var(--text);
  font-weight: 850;
}

@media (max-width: 1020px) {
  .hero,
  .enterprise-section,
  .security-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-copy {
    max-width: 760px;
  }

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

  .capture.wide {
    grid-row: auto;
  }

  .phone-screen {
    width: min(100%, 380px);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .2rem;
  }

  .header-action {
    min-height: 2.35rem;
    padding: .55rem .7rem;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

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

  .desktop-screen {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .screen-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-product .screen-sidebar .thread:nth-of-type(3),
  .hero-product .screen-sidebar .thread:nth-of-type(4),
  .hero-product .screen-actions {
    display: none;
  }

  .screen-chat {
    min-height: 360px;
  }

  .bubble,
  .file-bubble {
    max-width: 90%;
    width: fit-content;
  }

  .embedded .screen-sidebar {
    display: none;
  }

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

  .admin-tabs-preview {
    flex-wrap: wrap;
  }

  footer {
    display: grid;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .cta-row {
    display: grid;
  }

  .site-header {
    min-height: 64px;
    gap: .65rem;
  }

  .brand span {
    display: none;
  }

  .section,
  .screens-section,
  .enterprise-section,
  .security-band,
  .deploy-section {
    padding-inline: .85rem;
  }

  .capture {
    padding: .75rem;
  }

  .screen-chat {
    padding-inline: .75rem;
  }

  .chat-top {
    margin-inline: -.75rem;
    padding-inline: .75rem;
  }
}
