@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/literata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --graphite-950: oklch(0.17 0.012 70);
  --graphite-900: oklch(0.205 0.014 70);
  --graphite-850: oklch(0.245 0.018 70);
  --graphite-800: oklch(0.29 0.02 70);
  --ivory-100: oklch(0.94 0.018 80);
  --ivory-300: oklch(0.79 0.022 78);
  --ivory-500: oklch(0.68 0.02 75);
  --amber-400: oklch(0.8 0.145 76);
  --amber-500: oklch(0.74 0.14 68);
  --page: var(--graphite-950);
  --surface: var(--graphite-900);
  --surface-raised: var(--graphite-850);
  --text: var(--ivory-100);
  --text-muted: var(--ivory-300);
  --text-subtle: var(--ivory-500);
  --accent: var(--amber-400);
  --accent-strong: var(--amber-500);
  --line: oklch(0.4 0.025 70 / 0.58);
  --button-background: var(--accent);
  --button-text: var(--graphite-950);
  --container: 73.75rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: "Literata", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.2rem, 8vw, 3.75rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding-block: 80px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding-top: max(16px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.main-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.main-nav {
  order: 3;
  width: 100%;
  justify-content: space-between;
}

.main-nav a,
.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 150ms ease-out;
}

.main-nav a:hover,
.site-footer nav a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--button-background);
  color: var(--button-text);
}

.button-primary:hover {
  background: var(--ivory-100);
}

.button-outline {
  border-color: var(--line);
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--accent);
}

.button-small {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.button-small .icon {
  width: 17px;
  height: 17px;
}

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: 48px 64px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px oklch(0.8 0.145 76 / 0.09);
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 11vw, 4.3rem);
  line-height: 1.08;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 600;
}

.hero-lead {
  max-width: 36rem;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font-weight: 600;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent);
}

.text-link:hover {
  color: var(--accent);
}

.hero-note {
  max-width: 34rem;
  margin-top: 20px;
  color: var(--text-subtle);
  font-size: 0.82rem;
  line-height: 1.6;
}

.phone-stack {
  display: grid;
  grid-template-areas: "stack";
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  padding: 20px;
}

.phone {
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--graphite-950);
  box-shadow: 0 28px 64px oklch(0.08 0.01 70 / 0.48);
}

.phone img {
  width: 100%;
  border-radius: 27px;
}

.phone-stack .phone {
  grid-area: stack;
  width: 65%;
  justify-self: center;
  transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}

.phone-back {
  transform: translate(-32%, 4%) rotate(-7deg);
}

.phone-front {
  transform: translate(32%, -2%) rotate(6deg);
}

.phone-stack:hover .phone-back {
  transform: translate(-38%, 4%) rotate(-9deg);
}

.phone-stack:hover .phone-front {
  transform: translate(38%, -2%) rotate(8deg);
}

.proof {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof div {
  display: grid;
  gap: 4px;
  padding-block: 20px;
}

.proof div + div {
  border-top: 1px solid var(--line);
}

.proof strong {
  color: var(--text);
  font-family: "Literata", serif;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.proof span {
  color: var(--text-subtle);
  font-size: 0.86rem;
}

.section-heading {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

.section-heading p,
.section-lead,
.story-copy p {
  max-width: 36rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  gap: 32px 48px;
}

.feature {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3,
.steps h3 {
  margin-bottom: 12px;
}

.feature p,
.steps p {
  max-width: 34rem;
  color: var(--text-muted);
}

.tools-section {
  padding-block: 80px;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.tools-layout {
  display: grid;
  gap: 48px;
  align-items: center;
}

.section-lead {
  margin-top: 24px;
}

.tool-list {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.tool-list .feature-icon {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.tool-list div {
  display: grid;
  gap: 4px;
}

.tool-list strong {
  font-size: 1.02rem;
}

.tool-list span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tools-screenshot {
  width: 100%;
  max-width: 19rem;
  margin-inline: auto;
}

.phone-static {
  width: 100%;
}

.phone-static img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.tools-screenshot figcaption {
  margin-top: 16px;
  color: var(--text-subtle);
  font-size: 0.82rem;
  text-align: center;
}

.story {
  display: grid;
  gap: 40px;
  align-items: center;
}

.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.72) brightness(0.82);
}

.story-photo figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
}

.story-photo a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-subtle);
  text-underline-offset: 3px;
}

.story-copy p {
  margin-top: 24px;
}

.steps {
  display: grid;
  gap: 32px;
}

.steps article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.final-cta {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 80px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.final-cta > img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 6vw, 2.75rem);
}

.final-cta p {
  margin-top: 8px;
  color: var(--text-muted);
}

.final-cta .button {
  width: 100%;
}

.site-footer {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px;
}

.brand-footer img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.footer-inner p {
  margin-right: auto;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

@media (min-width: 36rem) {
  .proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof div {
    padding: 24px 16px;
  }

  .proof div:first-child {
    padding-left: 0;
  }

  .proof div + div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .final-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .final-cta .button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 48rem) {
  .container {
    width: min(var(--container), calc(100% - 64px));
  }

  .section {
    padding-block: 104px;
  }

  .main-nav {
    order: initial;
    width: auto;
    gap: 20px;
  }

  .main-nav a {
    padding-inline: 0;
  }

  .hero {
    padding-block: 72px 88px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 8vw, 5.3rem);
  }

  .phone-stack {
    max-width: 27rem;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: end;
    margin-bottom: 64px;
  }

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

  .tools-section {
    padding-block: 104px;
  }

  .tools-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }

  .story {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .final-cta {
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 104px;
    padding: 40px;
  }

  .final-cta .button {
    grid-column: auto;
    width: auto;
  }
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 32px;
    min-height: 46rem;
  }

  .hero-copy {
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(4rem, 5.6vw, 5.35rem);
  }

  .phone-stack {
    max-width: 31rem;
  }

  .tools-layout {
    gap: 104px;
  }
}

.install-grid {
  display: grid;
  gap: 24px;
}

.install-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.install-badge {
  justify-self: start;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.install-card h3 {
  font-size: 1.35rem;
}

.install-card > p:not(.install-badge) {
  color: var(--text-muted);
}

.install-card .button {
  margin-top: 8px;
}

.final-cta-actions {
  display: grid;
  gap: 12px;
  width: 100%;
}

@media (min-width: 36rem) {
  .final-cta-actions {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }

  .final-cta-actions .button {
    grid-column: auto;
    width: auto;
  }
}

@media (min-width: 48rem) {
  .install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .install-card {
    padding: 36px;
  }

  .final-cta-actions {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .phone-stack:hover .phone-back {
    transform: translate(-32%, 4%) rotate(-7deg);
  }

  .phone-stack:hover .phone-front {
    transform: translate(32%, -2%) rotate(6deg);
  }
}
