* {
  box-sizing: border-box;
}

:root {
  --blue: #304df5;
  --blue-dark: #2238c8;
  --blue-soft: #5c72ff;
  --ink: #141827;
  --muted: #d9e0ff;
  --white: #ffffff;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--blue);
}

a {
  text-decoration: none;
}

.site-header {
  width: 100%;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 31px;
  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.brand:hover,
.login-link:hover {
  color: inherit;
  opacity: 0.92;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
}

.brand-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.login-link {
  color: #333a4d;
  font-size: 16px;
  font-weight: 500;
}

.register-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 9px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  background: var(--blue);
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.register-link:hover {
  color: var(--white);
  background: #223ee8;
  box-shadow: 0 8px 18px rgba(48, 77, 245, 0.24);
  transform: translateY(-1px);
}

.hero-section {
  min-height: calc(100vh - 66px);
  background: linear-gradient(135deg, #3654ff 0%, #2c40dd 58%, #2537bf 100%);
}

.hero-content {
  width: min(100%, 1160px);
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 486px);
  align-items: center;
  gap: 69px;
  margin: 0 auto;
  padding: 54px 32px 60px;
}

.hero-copy {
  color: var(--white);
}

.hero-copy h1 {
  max-width: 510px;
  margin: 0 0 24px;
  font-size: clamp(48px, 5vw, 62px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 490px;
  margin: 0;
  color: #eef2ff;
  font-size: 20px;
  line-height: 1.35;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
}

.primary-button,
.secondary-button {
  min-width: 140px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
  min-width: 210px;
  color: var(--blue);
  background: var(--white);
}

.primary-button:hover {
  color: var(--blue-dark);
  background: #f4f6ff;
  box-shadow: 0 12px 26px rgba(13, 24, 100, 0.18);
  transform: translateY(-1px);
}

.primary-button span {
  font-size: 25px;
  line-height: 1;
}

.secondary-button {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.secondary-button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 26px rgba(13, 24, 100, 0.14);
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 475px;
  margin: 56px 0 0;
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.hero-photo {
  width: 100%;
  max-width: 486px;
  aspect-ratio: 486 / 501;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(9, 18, 92, 0.26);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.how-section,
.categories-section {
  background: #f7f8fa;
}

.categories-section {
  background: var(--white);
}

.section-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 54px 32px;
}

.section-heading {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: #4b5566;
  font-size: 17px;
  line-height: 1.35;
}

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

.feature-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.feature-icon-blue {
  color: #3157ff;
  background: #dfe8ff;
}

.feature-icon-green {
  color: #06a758;
  background: #d8f8e7;
}

.feature-icon-purple {
  color: #8a19ff;
  background: #f0ddff;
}

.feature-card h3 {
  margin: 15px 0 11px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.feature-card p {
  max-width: 280px;
  margin: 0;
  color: #566071;
  font-size: 14px;
  line-height: 1.42;
}

.categories-section .section-inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 49px;
}

.category-card {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 8px;
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.category-icon {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
}

.category-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.impact-section {
  background: #eaf2fc;
}

.impact-inner {
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: minmax(320px, 523px) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  margin: 0 auto;
  padding: 52px 32px;
}

.impact-photo {
  width: 100%;
  aspect-ratio: 523 / 299;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.impact-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.impact-copy h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.impact-copy > p {
  max-width: 535px;
  margin: 0;
  color: #4b5566;
  font-size: 16px;
  line-height: 1.48;
}

.impact-list {
  display: grid;
  gap: 14px;
  margin: 21px 0 30px;
  padding: 0;
  color: #4b5566;
  font-size: 14px;
  line-height: 1.35;
  list-style: none;
}

.impact-list li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.impact-list span {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #08b86f;
  border-radius: 50%;
  color: #08b86f;
}

.impact-list svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.impact-button {
  min-width: 130px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 25px;
  border-radius: 7px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  background: var(--blue);
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.impact-button:hover {
  color: var(--white);
  background: #223ee8;
  box-shadow: 0 10px 22px rgba(48, 77, 245, 0.26);
  transform: translateY(-1px);
}

.impact-button span {
  font-size: 20px;
  line-height: 1;
}

.join-section {
  color: var(--white);
  background: linear-gradient(135deg, #3654ff 0%, #2c40dd 58%, #2537bf 100%);
}

.join-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 63px 32px 61px;
  text-align: center;
}

.join-icon {
  width: 51px;
  height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 19px;
  color: #d8e0ff;
}

.join-icon svg {
  width: 51px;
  height: 51px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.join-inner h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.join-inner p {
  max-width: 690px;
  margin: 0 auto;
  color: #e9edff;
  font-size: 16px;
  line-height: 1.35;
}

.join-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 27px;
}

.join-primary,
.join-secondary {
  min-width: 135px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.join-primary {
  color: var(--blue);
  background: var(--white);
}

.join-primary:hover {
  color: var(--blue-dark);
  background: #f4f6ff;
  box-shadow: 0 12px 26px rgba(13, 24, 100, 0.18);
  transform: translateY(-1px);
}

.join-secondary {
  min-width: 168px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.join-secondary:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 26px rgba(13, 24, 100, 0.14);
  transform: translateY(-1px);
}

.site-footer {
  color: #d4d9e4;
  background: #111827;
}

.footer-inner {
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(145px, 1fr));
  gap: 58px;
  margin: 0 auto;
  padding: 48px 32px 28px;
}

.footer-brand p {
  max-width: 235px;
  margin: 23px 0 0;
  color: #c7ceda;
  font-size: 16px;
  line-height: 1.45;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.footer-logo:hover {
  color: var(--white);
  opacity: 0.92;
}

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

.footer-column h2 {
  margin: 5px 0 18px;
  color: var(--white);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-column a {
  color: #c7ceda;
  font-size: 15px;
  line-height: 1.4;
}

.footer-column a + a {
  margin-top: 10px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7ceda;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 46px;
  }

  .hero-photo {
    max-width: 560px;
    justify-self: center;
  }

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

  .feature-card p {
    max-width: none;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .impact-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    min-height: 66px;
    padding: 12px 18px;
  }

  .brand {
    font-size: 18px;
  }

  .header-actions {
    gap: 12px;
  }

  .login-link,
  .register-link {
    font-size: 14px;
  }

  .register-link {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero-section,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 40px 18px 48px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 38px;
  }

  .section-inner {
    padding: 44px 18px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .feature-grid,
  .category-grid {
    margin-top: 34px;
  }

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

  .impact-inner {
    padding: 44px 18px;
  }

  .impact-copy h2,
  .join-inner h2 {
    font-size: 27px;
  }

  .impact-list li {
    align-items: flex-start;
  }

  .join-inner {
    padding: 52px 18px;
  }

  .join-actions {
    flex-direction: column;
  }

  .join-primary,
  .join-secondary {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 18px 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-copy {
    padding-top: 28px;
    text-align: left;
  }
}
