@font-face {
  font-family: Newsreader;
  src: url("./assets/fonts/Newsreader-500.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("./assets/fonts/Nunito-Sans-400.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("./assets/fonts/Nunito-Sans-700.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --bg: #0f211b;
  --bg-deep: #071710;
  --card: #1d332a;
  --card-2: #263f33;
  --photo: #dfeadd;
  --title: #f4f0e7;
  --muted: #d2d9cc;
  --accent: #9eb78c;
  --line: rgba(244, 240, 231, 0.15);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 7%, rgba(158, 183, 140, 0.16), transparent 33rem),
    radial-gradient(circle at 84% 16%, rgba(103, 152, 106, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep) 70%, #06130e);
  color: var(--title);
  font-family: "Nunito Sans", Avenir, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1360px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(15, 33, 27, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: Newsreader, Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.brand span {
  transform: translateY(5px);
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 10px 0;
}

.header-cta {
  border-radius: 999px;
  background: var(--accent);
  color: #102117;
  font: 700 14px/1 "Nunito Sans", sans-serif;
  padding: 15px 22px;
  white-space: nowrap;
}

main,
.footer {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(480px, 0.9fr) minmax(620px, 1.1fr);
  gap: clamp(44px, 5vw, 96px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 78px 0 68px;
}

.hero-copy {
  display: grid;
  gap: 28px;
}

h1,
h2 {
  margin: 0;
  color: var(--title);
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(64px, 7.1vw, 124px);
  line-height: 0.91;
}

h2 {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 0.95;
}

h3 {
  margin: 0;
  color: var(--title);
  font-size: 24px;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-copy > p {
  max-width: 640px;
  font-size: 21px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badge {
  display: block;
  width: auto;
  height: 52px;
  line-height: 0;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.26));
}

.store-badge img {
  display: block;
  width: auto;
  height: 100%;
}

.hero-visual {
  position: relative;
  min-height: min(780px, calc(100vh - 150px));
}

.phone {
  position: absolute;
  display: block;
  border-radius: 38px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.44);
}

.phone-home {
  right: 90px;
  top: 10px;
  width: min(372px, 29vw);
  transform: rotate(7deg);
}

.phone-light {
  left: 90px;
  top: 122px;
  width: min(352px, 27vw);
  transform: rotate(-5deg);
}

.work-band,
.feature-section,
.community-section {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(260px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.work-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-steps article {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(38, 63, 51, 0.9), rgba(29, 51, 42, 0.92)),
    var(--card);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.work-steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  z-index: 3;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.step-number {
  color: var(--accent);
  font-family: Newsreader, Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.work-steps p {
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  display: grid;
  gap: 22px;
  align-content: start;
  min-height: 620px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(29, 51, 42, 0.72);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.23);
}

.feature-card.large {
  grid-column: auto;
  grid-row: auto;
}

.feature-copy {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.feature-card p {
  font-size: 16px;
}

.feature-screen {
  display: block;
  width: min(100%, 280px);
  align-self: end;
  justify-self: center;
  border-radius: 30px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 58px;
  align-items: center;
}

.community-copy {
  display: grid;
  gap: 22px;
}

.community-panel {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(158, 183, 140, 0.14), transparent 50%),
    rgba(29, 51, 42, 0.76);
  box-shadow: var(--shadow);
}

.avatar-row {
  display: flex;
}

.avatar-row span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-right: -8px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--accent);
  color: #102117;
  font-weight: 700;
}

.community-stat {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 25, 18, 0.32);
}

.community-stat strong {
  color: var(--title);
  font-family: Newsreader, Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}

.community-stat span {
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 36px 0 54px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 720px;
  }

  .phone-home {
    right: 140px;
    width: 330px;
  }

  .phone-light {
    left: 140px;
    width: 310px;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .section-heading,
  .community-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

  .hero-visual {
    min-height: 690px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .work-steps {
    grid-template-columns: 1fr;
  }

  .work-steps article:not(:last-child)::after {
    display: none;
  }

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

@media (max-width: 620px) {
  main,
  .footer,
  .site-header {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    border-radius: 22px;
  }

  .header-cta {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .brand {
    font-size: 32px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 44px;
  }

  p,
  .hero-copy > p {
    font-size: 16px;
  }

  .store-badge {
    height: 44px;
  }

  .hero-visual {
    min-height: 650px;
  }

  .phone-home {
    right: 22px;
    top: 0;
    width: 206px;
  }

  .phone-light {
    left: 16px;
    top: 120px;
    width: 204px;
  }

  .work-band,
  .feature-section,
  .community-section {
    padding: 58px 0;
  }

  .feature-card,
  .work-steps article {
    padding: 22px;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-screen {
    width: min(100%, 230px);
  }

  .community-stat {
    grid-template-columns: 1fr;
  }
}
