:root {
  color-scheme: dark;
  --ink: #0a100c;
  --ink-soft: #121a15;
  --paper: #eef3ef;
  --paper-text: #172019;
  --white: #f5f8f5;
  --muted: #aab8ad;
  --green: #85d59b;
  --green-dark: #173b23;
  --amber: #f4bd48;
  --cyan: #8bcfd0;
  --border: #34443a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: relative;
  z-index: 5;
  min-height: 72px;
  background: #080d0a;
  border-bottom: 1px solid #263229;
}

.nav-inner,
.brand,
.nav-links,
.actions,
.footer-inner,
.footer-inner div {
  display: flex;
  align-items: center;
}

.nav-inner {
  min-height: 72px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 11px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  gap: 24px;
}

.nav-links a {
  color: #c7d1c9;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links .nav-download {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: #07110a;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: clamp(560px, 78svh, 760px);
  overflow: hidden;
  background-color: var(--ink);
  background-image: url("/assets/taigachat-camera-screen.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 112%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 6, 0.68);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 54px;
  padding-bottom: 54px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-size: 64px;
  line-height: 1.03;
}

.hero-lead {
  max-width: 630px;
  margin: 22px 0 0;
  color: #e0e8e2;
  font-size: 22px;
  line-height: 1.5;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  border-color: var(--green);
  color: #07110a;
  background: var(--green);
}

.button-secondary {
  color: var(--white);
  background: rgba(8, 13, 10, 0.82);
}

.build-note {
  margin: 16px 0 0;
  color: #c1ccc3;
  font-size: 14px;
}

.facts {
  background: #101914;
  border-top: 1px solid #2c3b31;
  border-bottom: 1px solid #2c3b31;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.facts-grid div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
  border-right: 1px solid #2c3b31;
}

.facts-grid div:first-child {
  border-left: 1px solid #2c3b31;
}

.facts-grid strong {
  color: var(--amber);
  font-size: 22px;
}

.facts-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 86px 0;
}

.section-light {
  color: var(--paper-text);
  background: var(--paper);
}

.section-dark {
  background: #111815;
}

.section-download {
  color: #182019;
  background: var(--cyan);
}

.section-head,
.offline-layout,
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.section h2 {
  max-width: 620px;
  margin: 0;
  font-size: 42px;
  line-height: 1.14;
}

.section-head > p,
.offline-layout p,
.download-layout p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.section-light .section-label {
  color: #2c6e41;
}

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

.feature-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid #c7d2ca;
  border-radius: 8px;
  background: #f8faf8;
}

.feature-grid article > span {
  color: #377849;
  font-size: 13px;
  font-weight: 800;
}

.feature-grid h3 {
  margin: 20px 0 9px;
  font-size: 22px;
}

.feature-grid p {
  margin: 0;
  color: #4e5d52;
  line-height: 1.6;
}

.offline-layout p + p {
  margin-top: 18px;
}

.download-layout {
  align-items: center;
}

.section-download .section-label {
  color: #214f52;
}

.download-action {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.download-action .button-primary {
  border-color: #13231a;
  color: var(--white);
  background: #13231a;
}

.download-action small {
  max-width: 580px;
  color: #294c4e;
  line-height: 1.5;
}

footer {
  background: #080d0a;
  border-top: 1px solid #263229;
}

.footer-inner {
  min-height: 86px;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner div {
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner a {
  color: #d4ddd6;
}

@media (max-width: 820px) {
  .nav-links > a:not(.nav-download) {
    display: none;
  }

  .hero {
    min-height: 690px;
    background-position: center;
    background-size: auto 104%;
  }

  .hero-shade {
    background: rgba(5, 9, 6, 0.74);
  }

  h1 {
    font-size: 46px;
  }

  .hero-lead {
    max-width: 540px;
    font-size: 19px;
  }

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

  .facts-grid div:nth-child(3) {
    border-left: 1px solid #2c3b31;
  }

  .facts-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid #2c3b31;
  }

  .section-head,
  .offline-layout,
  .download-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section h2 {
    font-size: 36px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-nav,
  .nav-inner {
    min-height: 64px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-links .nav-download {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-inner {
    justify-content: flex-end;
    padding-top: 42px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .section h2 {
    font-size: 31px;
  }

  .section-head > p,
  .offline-layout p,
  .download-layout p {
    font-size: 16px;
  }

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

  .feature-grid article {
    min-height: 0;
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
