:root {
  --nav-height: 76px;
  --night: #151035;
  --ink: #11101a;
  --violet: #2f226c;
  --teal: #1ccac7;
  --paper: #fafafa;
  --muted: #696674;
  --line: rgba(17, 16, 26, 0.12);
  --wrap: min(1200px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--nav-height);
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img { max-width: 100%; }

a { color: inherit; }

.wrap {
  width: var(--wrap);
  margin-right: auto;
  margin-left: auto;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 7, 31, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1200px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  justify-self: start;
  display: block;
  width: 188px;
  height: 54px;
}

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

.main-menu {
  display: flex;
  gap: clamp(22px, 4vw, 38px);
  align-items: center;
  justify-content: center;
  justify-self: center;
  white-space: nowrap;
  color: var(--paper);
  font-size: 15px;
  font-weight: 650;
}

.main-menu a,
.legal-links a,
.back-link {
  text-decoration: none;
  opacity: 0.74;
  transition: opacity 160ms ease, color 160ms ease;
}

.main-menu a:hover,
.legal-links a:hover,
.back-link:hover {
  opacity: 1;
  color: var(--teal);
}

.language-select {
  justify-self: end;
  min-width: 74px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  background: rgba(10, 7, 31, 0.86);
  color: var(--paper);
  font: inherit;
  font-weight: 650;
}

.hero-section,
.principles-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
}

.hero-bg,
.principles-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-bg {
  background-image: linear-gradient(180deg, rgba(8, 5, 28, 0.16), rgba(8, 5, 28, 0.48)), url("/hero-abstract-wave.png?v=13");
  background-position: center;
}

.hero-copy {
  padding: 112px 0 62px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 750;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy h1,
.product-section h2,
.closing-section h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 1.04;
}

.hero-copy h1 span,
.product-section h2 span,
.principles-section h2 span,
.closing-section h2 span {
  color: var(--teal);
}

.hero-copy p:not(.eyebrow),
.lead {
  max-width: 740px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.58;
  text-wrap: pretty;
}

.button {
  display: inline-block;
  margin-top: 34px;
  padding: 14px 22px;
  border-radius: 0;
  background: var(--teal);
  color: var(--night);
  text-decoration: none;
  font-weight: 800;
}

.app-preview {
  margin-bottom: -1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 22, 0.94);
}

.preview-bar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-bar strong span {
  color: var(--teal);
  margin-right: 8px;
}

.preview-bar small {
  color: rgba(255, 255, 255, 0.7);
}

.preview-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.desktop-shot {
  display: block;
  width: calc(100% - 310px);
  height: 470px;
  object-fit: cover;
  object-position: top center;
}

.phone-shot {
  position: absolute;
  right: 42px;
  bottom: -70px;
  width: 230px;
  margin: 0;
  padding: 9px 9px 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #050a13;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
}

.phone-shot img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: top center;
}

.phone-shot figcaption {
  position: absolute;
  right: 20px;
  bottom: 17px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.product-section,
.closing-section,
.legal-page {
  padding: 112px 0;
  text-align: center;
}

.product-section {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.product-section h2 span,
.closing-section h2 span {
  display: block;
  color: var(--violet);
}

.product-section .lead,
.closing-section .lead,
.legal-page .lead {
  color: var(--muted);
}

.product-collage {
  margin: 54px 0 24px;
  overflow: hidden;
  border: 1px solid rgba(47, 34, 108, 0.14);
  background: var(--night);
}

.product-collage img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  text-align: left;
}

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.card span {
  color: var(--teal);
  font-weight: 800;
}

.card h3 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.card p,
.legal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.principles-section {
  scroll-margin-top: var(--nav-height);
  padding: 112px 0;
}

.principles-bg {
  background-image: linear-gradient(90deg, rgba(21, 16, 53, 0.98), rgba(21, 16, 53, 0.78), rgba(21, 16, 53, 0.36)), url("/bg-principles.png");
}

.principles-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 78px;
  align-items: center;
}

.principles-section h2 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
}

.values {
  display: grid;
  gap: 0;
}

.value {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.value span {
  color: var(--teal);
  font-weight: 800;
}

.value strong {
  line-height: 1.35;
}

.closing-section {
  margin-top: 36px;
  margin-bottom: 36px;
  padding-right: 42px;
  padding-left: 42px;
  background-image: linear-gradient(rgba(250, 250, 250, 0.78), rgba(250, 250, 250, 0.94)), url("/bg-closing.png");
  background-size: cover;
  background-position: center;
}

.site-footer {
  padding: 34px 0;
  background: var(--night);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  width: var(--wrap);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-page {
  text-align: left;
}

.legal-page h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.legal-page .lead {
  margin-left: 0;
  margin-bottom: 54px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
}

.legal-copy {
  display: grid;
  gap: 28px;
  max-width: 860px;
}

.legal-copy section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-copy h2 {
  margin: 0 0 12px;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.legal-copy p {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  :root {
    --nav-height: 104px;
    --wrap: calc(100% - 28px);
  }

  .site-nav {
    height: var(--nav-height);
  }

  .nav-inner {
    grid-template-areas:
      "brand language"
      "menu menu";
    grid-template-columns: 1fr auto;
    grid-template-rows: 58px 46px;
    width: var(--wrap);
  }

  .brand {
    grid-area: brand;
    width: 140px;
    height: 42px;
  }

  .main-menu {
    grid-area: menu;
    align-self: center;
    gap: clamp(16px, 6vw, 28px);
    font-size: 13px;
  }

  .language-select {
    grid-area: language;
    min-width: 70px;
    padding: 8px;
  }

  .hero-copy {
    padding: 64px 0 42px;
  }

  .hero-bg {
    background-position: center;
  }

  .hero-copy h1,
  .product-section h2,
  .closing-section h2 {
    font-size: clamp(38px, 12vw, 52px);
    overflow-wrap: break-word;
  }

  .hero-copy p:not(.eyebrow),
  .lead {
    font-size: 17px;
  }

  .app-preview {
    width: var(--wrap);
  }

  .preview-bar {
    padding: 0 14px;
  }

  .preview-bar small {
    display: none;
  }

  .preview-stage {
    min-height: 430px;
  }

  .desktop-shot {
    width: 100%;
    height: 250px;
  }

  .phone-shot {
    right: 18px;
    bottom: -58px;
    width: 168px;
  }

  .phone-shot img {
    height: 318px;
  }

  .product-section,
  .closing-section,
  .legal-page,
  .principles-section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .product-collage img {
    aspect-ratio: 4 / 5;
    object-position: 68% center;
  }

  .cards,
  .principles-inner {
    grid-template-columns: 1fr;
  }

  .principles-inner {
    gap: 34px;
  }

  .principles-section h2 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .closing-section {
    padding-right: 22px;
    padding-left: 22px;
  }

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

  .legal-page h1 {
    font-size: clamp(34px, 10.5vw, 44px);
  }
}
