@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(160deg, var(--bg-gradient-from) 0%, var(--bg-gradient-to) 100%);
  background-attachment: fixed;
}

.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-home main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-home .site-footer {
  margin-top: auto;
}

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

a {
  color: var(--interactive-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--interactive-hover);
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-sm);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--text-secondary);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
}

.brand:hover {
  color: var(--text-primary);
}

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand__logo--app {
  border-radius: var(--radius-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--interactive-primary);
}

.site-nav a + a {
  margin-left: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-cool-from), var(--accent-cool-to));
  color: #fff;
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.device-frame {
  padding: 8px;
  background: linear-gradient(160deg, rgba(50, 65, 95, 0.9), rgba(25, 32, 50, 0.95));
  border: 1px solid rgba(120, 150, 200, 0.2);
  border-radius: 28px;
  box-shadow: 0 20px 56px var(--shadow), 0 0 48px rgba(74, 158, 255, 0.1);
  line-height: 0;
}

.device-frame--sm {
  max-width: 200px;
  border-radius: 22px;
  padding: 6px;
}

.device-frame__img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  display: block;
}

.device-frame--sm .device-frame__img {
  border-radius: 16px;
}

.promo-crop {
  overflow: hidden;
  border-radius: var(--radius-sm);
  line-height: 0;
  background: #b8d4f0;
}

.promo-crop__img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center 78%;
}

.device-frame .promo-crop {
  border-radius: 20px;
}

.promo-crop--hero .promo-crop__img {
  height: 340px;
  object-position: center 76%;
}

@media (max-width: 639px) {
  .promo-crop--hero .promo-crop__img {
    max-height: 440px;
    height: auto;
    object-fit: cover;
    object-position: center top;
  }

  .promo-crop--pace .promo-crop__img {
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

.promo-crop--pace .promo-crop__img {
  height: 360px;
  object-position: center 58%;
}

.promo-crop--step .promo-crop__img {
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 767px) {
  .promo-crop--step .promo-crop__img {
    max-height: 360px;
  }
}

.promo-crop--complete .promo-crop__img {
  height: 260px;
  object-position: center 22%;
}

@media (max-width: 639px) {
  .promo-crop--complete .promo-crop__img {
    height: 200px;
  }
}

.scroll-strip {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-strip::-webkit-scrollbar {
  display: none;
}

.site-footer--compact {
  padding: var(--space-md) 0;
}

.site-footer__left .brand {
  margin-bottom: 6px;
}

.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--surface-primary);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

.site-footer__brand {
  font-weight: 800;
  color: var(--text-primary);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .site-footer__links {
    justify-content: flex-end;
  }
}

.site-footer__copy {
  margin: var(--space-sm) 0 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
}
