﻿:root {
  --bg: #f6f7f9;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --muted-3: #94a3b8;
  --caption: #8494ab;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-deep: #1e40af;
  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --white: #fff;
  --demo-bg: #eef2f8;
  --line: rgba(15, 23, 42, 0.07);
  --line-strong: rgba(15, 23, 42, 0.09);
  --line-input: rgba(15, 23, 42, 0.14);
  --max: 1180px;
  --font: "Golos Text", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-hover);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

button,
input {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 40;
  background: var(--text);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  color: inherit;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border-color: var(--line-input);
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.3);
  color: var(--text);
}

.btn-dark {
  background: var(--text);
  color: var(--white);
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 9px;
}

.btn-dark:hover {
  background: #1e293b;
  color: var(--white);
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.header-login:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--text);
}

.logo svg {
  display: block;
  flex: none;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

.header-spacer {
  flex: 1;
}

.header-login {
  font-size: 14px;
  color: var(--muted);
}

.header-login:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 56px;
}

.hero .eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features */

.features {
  padding-top: 32px;
  padding-bottom: 84px;
  scroll-margin-top: 80px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 26px;
  flex: 1 1 230px;
  min-width: 0;
}

.feature-card h2 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-top: 8px;
}

/* Screens */

.screens {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.screens-inner {
  padding-top: 80px;
  padding-bottom: 80px;
}

.screens .eyebrow {
  margin-bottom: 16px;
}

.screens h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.screen-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.screen-figure {
  margin: 0;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-frame {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 24px 60px -34px rgba(15, 23, 42, 0.45);
}

.screen-chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font: 400 10.5px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted-3);
}

.screen-caption {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--caption);
  padding-left: 2px;
}

.screen-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.thumb-figure {
  margin: 0;
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb-figure .screen-frame {
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 14px 34px -22px rgba(15, 23, 42, 0.4);
}

.thumb-crop {
  height: 200px;
  overflow: hidden;
  background: #f8fafc;
}

.screen-frame > img {
  display: block;
  width: 100%;
  height: auto;
}

.thumb-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.thumb-figure .screen-caption {
  font-size: 12.5px;
}

.screen-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  margin-top: 16px;
}

.point-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px 20px;
  flex: 1 1 300px;
  min-width: 0;
}

.point-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.point-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted-2);
  margin-top: 5px;
}

/* How */

.how {
  padding-top: 80px;
  padding-bottom: 80px;
}

.how .eyebrow {
  margin-bottom: 16px;
}

.how h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 700;
  max-width: 620px;
}

.how-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
}

.how-step {
  border-top: 2px solid rgba(15, 23, 42, 0.12);
  padding-top: 20px;
  flex: 1 1 220px;
  min-width: 0;
}

.how-step:first-child {
  border-top-color: var(--text);
}

.how-num {
  font: 500 11px/1 var(--mono);
  color: var(--muted-3);
  margin-bottom: 12px;
}

.how-step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-top: 8px;
}

/* Demo */

.demo {
  background: var(--demo-bg);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.demo-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px;
  align-items: start;
  padding-top: 76px;
  padding-bottom: 76px;
}

.demo h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.demo-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 18px;
  max-width: 460px;
}

.demo-notes {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  font-size: 13.5px;
  color: var(--muted-2);
}

.demo-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px -32px rgba(15, 23, 42, 0.5);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field input {
  width: 100%;
  font-size: 14.5px;
  padding: 13px 14px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  color: var(--text);
  background: var(--white);
  outline: none;
}

.field input:focus {
  border-color: var(--blue);
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 12px;
  color: #be123c;
}

.demo-card .btn {
  width: 100%;
  border: none;
  padding: 15px;
  border-radius: 10px;
  margin-top: 2px;
}

.demo-card .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-submit-error {
  min-height: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #be123c;
}

.form-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-3);
}

.demo-success {
  padding: 12px 0 4px;
}

.demo-success p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 8px;
}

/* Work */

.work {
  padding-top: 36px;
  padding-bottom: 16px;
}

.work-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 40px;
}

.work-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.work-head .eyebrow {
  color: var(--purple);
  margin-bottom: 10px;
}

.work-head h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.work-head p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}

.work-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 24px;
  max-width: 760px;
  text-wrap: pretty;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 26px;
}

.work-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 14px;
}

.work-col {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: #334155;
}

.bullet i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  margin-top: 9px;
  flex: none;
}

.bullet strong {
  font-weight: 600;
  color: var(--text);
}

.work-link {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--purple);
  margin-top: 26px;
}

.work-link:hover {
  color: var(--purple-deep);
}

/* Footer */

.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.62);
  margin-top: 48px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 28px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 300px;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand .logo:hover {
  color: #fff;
}

.footer-col {
  flex: 0 1 150px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col h2 {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

/* Legal pages */

.legal {
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal-inner {
  max-width: 760px;
}

.legal .eyebrow {
  margin-bottom: 16px;
}

.legal h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin-bottom: 28px;
  text-wrap: balance;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 36px 40px;
}

.legal-card p,
.legal-card li {
  font-size: 15.5px;
  line-height: 1.65;
  color: #334155;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
  color: var(--text);
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.legal-card li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--blue);
}

.legal-nav {
  margin-top: 24px;
  font-size: 14px;
}

.header-home {
  font-size: 14px;
  color: var(--muted);
}

.header-home:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-login,
  .header-cta {
    display: none;
  }

  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 4px;
    order: 10;
  }

  .site-header.is-open .site-nav a {
    padding: 10px 4px;
  }

  .site-header.is-open .header-login,
  .site-header.is-open .header-cta {
    display: inline-flex;
    order: 11;
  }

  .site-header.is-open .header-cta {
    width: 100%;
  }

  .header-inner {
    gap: 12px;
  }

  .hero {
    padding-top: 48px;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 36px;
  }

  .hero-mark svg {
    width: 180px;
    height: auto;
  }

  .features {
    padding-bottom: 56px;
  }

  .screens-inner,
  .how {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .demo-inner {
    gap: 36px;
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .demo-notes {
    flex-direction: column;
    gap: 10px;
  }

  .work-card {
    padding: 24px;
  }

  .legal {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .legal-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
