:root {
  --color-graphite: #1E2421;
  --color-forest: #2F4A3C;
  --color-stone: #707A74;
  --color-warm-white: #F5F3EE;
  --color-sand: #D9CCB8;
  --color-copper: #A46A43;
  --line: rgba(30, 36, 33, 0.12);
  --surface: rgba(245, 243, 238, 0.78);
  --shadow: 0 26px 80px rgba(30, 36, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-graphite);
  font-family: Inter, Manrope, Helvetica, Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(245, 243, 238, 0.96), rgba(217, 204, 184, 0.42)),
    var(--color-warm-white);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(47, 74, 60, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 74, 60, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.78), transparent 72%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 44px;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 106px;
}

.logo-link {
  display: inline-flex;
  width: 240px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 240px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--color-stone);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-graphite);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 243, 238, 0.72);
}

.language-switcher button {
  min-width: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--color-stone);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher button.active {
  color: var(--color-warm-white);
  background: var(--color-forest);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button-primary {
  color: var(--color-warm-white);
  border-color: var(--color-forest);
  background: var(--color-forest);
  box-shadow: 0 18px 36px rgba(47, 74, 60, 0.18);
}

.button-soft,
.button-outline {
  color: var(--color-graphite);
  background: rgba(245, 243, 238, 0.68);
}

.button-soft {
  border-color: rgba(164, 106, 67, 0.34);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 170px);
  padding: 42px 0 76px;
}

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

.kicker {
  margin: 0 0 18px;
  color: var(--color-copper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 98px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--color-stone);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  padding: 22px;
  border: 1px solid rgba(30, 36, 33, 0.11);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(164, 106, 67, 0.16), transparent 210px),
    linear-gradient(145deg, rgba(245, 243, 238, 0.86), rgba(217, 204, 184, 0.48));
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(30, 36, 33, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 36, 33, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}

.visual-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: 100%;
}

.feature-card {
  min-height: 202px;
  padding: 22px;
  border: 1px solid rgba(30, 36, 33, 0.12);
  border-radius: 8px;
  background: rgba(245, 243, 238, 0.84);
  backdrop-filter: blur(12px);
}

.community-card,
.analytics-card {
  transform: translateY(34px);
}

.feature-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 40px;
  border: 1px solid var(--color-forest);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 48%, var(--color-copper) 49%, var(--color-copper) 52%, transparent 53%),
    rgba(217, 204, 184, 0.42);
}

.feature-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--color-stone);
  font-size: 14px;
  line-height: 1.5;
}

.audience-section {
  padding: 18px 0 82px;
}

.section-heading {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.section-heading h2,
.app-copy h2,
.footer-cta h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.audience-card {
  min-height: 274px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(30, 36, 33, 0.06);
}

.card-number {
  display: inline-flex;
  margin-bottom: 56px;
  color: var(--color-copper);
  font-size: 13px;
  font-weight: 700;
}

.audience-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
}

.audience-card p,
.app-copy p {
  margin-bottom: 0;
  color: var(--color-stone);
  font-size: 15px;
  line-height: 1.55;
}

.app-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 58px;
  border: 1px solid rgba(30, 36, 33, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 74, 60, 0.94), rgba(30, 36, 33, 0.96)),
    var(--color-forest);
  box-shadow: var(--shadow);
}

.phone-frame {
  width: 244px;
  min-height: 430px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(245, 243, 238, 0.22);
  border-radius: 34px;
  background: rgba(30, 36, 33, 0.42);
}

.phone-screen {
  min-height: 404px;
  padding: 22px;
  border-radius: 26px;
  background: var(--color-warm-white);
}

.phone-topline,
.phone-card,
.phone-list span {
  display: block;
  border-radius: 8px;
  background: var(--color-sand);
}

.phone-topline {
  width: 72px;
  height: 8px;
  margin: 0 auto 34px;
  background: rgba(30, 36, 33, 0.22);
}

.phone-card.large {
  height: 146px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(164, 106, 67, 0.28), rgba(217, 204, 184, 0.78)),
    var(--color-sand);
}

.phone-list {
  display: grid;
  gap: 12px;
}

.phone-list span {
  height: 38px;
  background: rgba(112, 122, 116, 0.18);
}

.app-copy {
  max-width: 640px;
}

.app-copy .kicker {
  color: var(--color-sand);
}

.app-copy h2,
.app-copy p {
  color: var(--color-warm-white);
}

.app-copy p {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(245, 243, 238, 0.76);
  font-size: 19px;
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 32px;
  align-items: center;
  margin-top: 72px;
  padding: 32px;
  border: 1px solid rgba(30, 36, 33, 0.14);
  border-radius: 8px;
  background: rgba(245, 243, 238, 0.78);
  box-shadow: 0 18px 60px rgba(30, 36, 33, 0.08);
}

.request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--color-graphite);
  background: rgba(245, 243, 238, 0.94);
  font: inherit;
}

input::placeholder {
  color: var(--color-stone);
}

.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;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-tools {
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .app-section,
  .footer-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 36px;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 660px) {
  .page-shell {
    width: min(100% - 24px, 520px);
  }

  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 0 8px;
  }

  .logo-link,
  .brand-logo {
    width: min(100%, 320px);
  }

  .main-nav {
    gap: 18px;
  }

  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .language-switcher {
    justify-content: center;
  }

  .header-action,
  .hero-actions .button,
  .request-form .button {
    width: 100%;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 19px;
  }

  .hero-actions,
  .request-form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-visual {
    min-height: auto;
  }

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

  .community-card,
  .analytics-card {
    transform: none;
  }

  .audience-card {
    min-height: 220px;
  }

  .card-number {
    margin-bottom: 34px;
  }

  .app-section,
  .footer-cta {
    padding: 24px;
  }

  .phone-frame {
    width: min(100%, 244px);
  }
}
