:root {
  --color-background: #ffffff;
  --color-surface: #f5f5f7;
  --color-surface-soft: #fafafa;
  --color-text: #1d1d1f;
  --color-muted: #86868b;
  --color-border: #ececef;
  --color-accent: #0b6dd5;
  --color-shadow: rgba(15, 23, 42, 0.08);
  --font-base: "Manrope", sans-serif;
  --site-width: 1200px;
  --site-width-narrow: 1080px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--color-text);
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  width: min(calc(100% - 48px), var(--site-width));
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

.section-label {
  margin: 0 0 48px;
  color: #a4a4aa;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.section-label--left {
  text-align: left;
  margin-bottom: 18px;
}

.section-label--blue {
  color: var(--color-accent);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(236, 236, 239, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.site-header__brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 14px;
  font-weight: 800;
}

.site-header__brand-mark {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.site-header__toggle {
  display: none;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.hero {
  min-height: 100svh;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: 72px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 520px);
  flex: 1;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin: 0;
  font-size: clamp(60px, 7vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero__title-line {
  display: block;
  opacity: 0;
  animation: hero-title-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title-line--secondary {
  color: #9b9ba0;
  animation-delay: 0.14s;
}

.hero__button-arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.hero__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 42px;
  padding: 18px 24px;
  border-radius: var(--radius-pill);
  background: #1d1d1f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  opacity: 0;
  animation: hero-fade-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
  transition:
    transform var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.hero__button:hover,
.hero__button:focus-visible {
  background: #2d2d31;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  outline: none;
}

.hero__button:hover .hero__button-arrow,
.hero__button:focus-visible .hero__button-arrow {
  transform: translateX(4px);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: hero-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero__visual-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hero-float 6s ease-in-out infinite;
}

.hero__glow {
  position: absolute;
  inset: -24px;
  border-radius: 52px;
  background: radial-gradient(circle, rgba(240, 241, 247, 0.96), rgba(255, 255, 255, 0) 72%);
  filter: blur(10px);
}

.hero__layer,
.hero__card {
  position: absolute;
  border-radius: 48px;
}

.hero__layer--back,
.hero__layer--middle {
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.96) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.hero__layer--back {
  inset: 0;
  transform: rotate(7deg);
  box-shadow: 0 18px 48px rgba(228, 231, 239, 0.45);
}

.hero__layer--middle {
  inset: 24px;
  transform: rotate(-3deg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(221, 226, 238, 0.34);
}

.hero__card {
  position: relative;
  z-index: 1;
  width: calc(100% - 64px);
  padding: 48px;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
  box-shadow: 0 24px 80px rgba(220, 224, 235, 0.52);
}

.hero__logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(187, 194, 218, 0.3));
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 28px;
  color: #a4a4aa;
  font-size: 14px;
  font-weight: 500;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, #d7d7db 0%, rgba(215, 215, 219, 0) 100%);
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about__inner {
  width: min(calc(100% - 48px), var(--site-width-narrow));
  text-align: center;
}

.about__text {
  margin: 0 auto;
  max-width: 1120px;
  font-size: clamp(21px, 2.8vw, 38px);
  line-height: 1.42;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.apps__inner {
  width: min(calc(100% - 48px), var(--site-width-narrow));
}

.apps__heading {
  max-width: 540px;
  margin-bottom: 56px;
}

.apps__title {
  margin: 0 0 18px;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.apps__intro {
  margin: 0;
  max-width: 500px;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.45;
}

.apps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px var(--color-shadow);
}

.app-card__content {
  padding: 32px 32px 0;
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.app-card__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
}

.app-card__description {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.65;
}

.app-card__screen {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding: 30px 24px 0;
}

.app-card__screen img {
  width: min(100%, 300px);
  height: auto;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.exits {
  margin-top: 90px;
}

.exits__title {
  margin: 0 0 20px;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.exits__intro {
  margin: 0 0 28px;
  max-width: 760px;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.7;
}

.exits__list {
  border-top: 1px solid var(--color-border);
}

.exit-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--color-border);
}

.exit-row__app {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.exit-row__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.exit-row__name,
.exit-row__meta,
.exit-row__year {
  margin: 0;
}

.exit-row__name {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.exit-row__meta,
.exit-row__year {
  color: var(--color-muted);
  font-size: 15px;
}

.manifesto {
  background: #f7f8fb;
}

.manifesto__inner {
  width: min(calc(100% - 48px), 960px);
  text-align: center;
}

.manifesto__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 60px;
  color: #343741;
  font-size: 14px;
  font-weight: 700;
}

.manifesto__brand-image,
.manifesto__footer-image {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.manifesto__title {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.manifesto__divider {
  width: 56px;
  height: 3px;
  margin: 52px auto 72px;
  border-radius: 999px;
  background: rgba(11, 109, 213, 0.2);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  text-align: left;
}

.manifesto-card__label {
  margin: 0 0 18px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.manifesto-card__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.manifesto-card__text {
  margin: 0;
  color: #7f8796;
  font-size: 17px;
  line-height: 1.68;
}

.manifesto__mission {
  margin-top: 86px;
}

.manifesto__mission-title {
  margin: 14px 0 0;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.manifesto__footer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 90px;
  padding: 34px 80px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(221, 226, 237, 0.8);
  border-radius: 24px;
}

.manifesto__footer p {
  margin: 0;
  color: #a5abc0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.contact__inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__content {
  padding-top: 140px;
  max-width: 560px;
}

.contact__title {
  margin: 0 0 40px;
  font-size: clamp(56px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.contact-item + .contact-item {
  margin-top: 30px;
}

.contact-item__label {
  margin: 0 0 6px;
  color: #a4a4aa;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item__value {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

a.contact-item__value {
  transition: color var(--transition);
}

a.contact-item__value:hover,
a.contact-item__value:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.contact__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 22px;
  margin-top: 80px;
  border-top: 1px solid var(--color-border);
}

.contact__copyright,
.contact__socials a {
  margin: 0;
  color: #a4a4aa;
  font-size: 14px;
  font-weight: 500;
}

.contact__socials {
  display: flex;
  align-items: center;
  gap: 28px;
}

.contact__socials a {
  transition: color var(--transition);
}

.contact__socials a:hover,
.contact__socials a:focus-visible {
  color: var(--color-text);
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header__inner {
    justify-content: space-between;
  }

  .site-header__brand {
    display: inline-flex;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .hero__inner,
  .apps__grid,
  .manifesto__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    order: 2;
  }

  .hero__visual {
    order: 1;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero__visual-shell {
    max-width: 420px;
  }

  .hero {
    padding-top: 96px;
  }

  .about__text {
    font-size: clamp(16px, 3.5vw, 27px);
  }

  .exit-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .exit-row__app {
    gap: 14px;
  }

  .manifesto__mission-title br {
    display: none;
  }

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

@media (max-width: 640px) {
  .site-shell,
  .about__inner,
  .apps__inner,
  .manifesto__inner {
    width: min(calc(100% - 32px), var(--site-width));
  }

  .section {
    padding: 88px 0;
  }

  .hero__button {
    width: 100%;
    justify-content: center;
  }

  .hero__inner {
    gap: 40px;
  }

  .hero__card {
    width: calc(100% - 40px);
    padding: 34px;
  }

  .hero__layer--middle {
    inset: 18px;
  }

  .app-card__content {
    padding: 24px 24px 0;
  }

  .app-card__screen {
    min-height: 340px;
    padding: 20px 20px 0;
  }

  .manifesto__footer {
    width: 100%;
    padding: 28px 24px;
  }

  .contact__content {
    padding-top: 100px;
  }

  .contact__socials {
    gap: 18px;
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
