@font-face {
  font-family: "Roboto";
  src: url("assets/roboto-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/roboto-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/roboto-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --forest: #1f4e3d;
  --forest-dark: #12372d;
  --ivory: #f5eedc;
  --sage: #8fbfa1;
  --mist: rgba(245, 238, 220, 0.72);
  --pointer-x: 70%;
  --pointer-y: 30%;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
  background: var(--forest);
  color: var(--ivory);
  font-family: "Roboto", Arial, sans-serif;
}

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: clip;
  padding: 32px clamp(24px, 5vw, 80px) 28px;
}

.backdrop,
.wash,
.grain {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.backdrop {
  background: url("assets/welcome-bg.png") center 57% / cover no-repeat;
  transform: scale(1.025);
  animation: settle 1.5s cubic-bezier(.2,.7,.2,1) both;
}

.wash {
  z-index: -2;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(143, 191, 161, 0.2), transparent 27rem),
    linear-gradient(90deg, rgba(18, 55, 45, 0.92) 0%, rgba(31, 78, 61, 0.72) 48%, rgba(22, 65, 52, 0.46) 100%),
    linear-gradient(0deg, rgba(12, 43, 34, 0.62), transparent 58%);
}

.grain {
  z-index: -1;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  pointer-events: none;
}

.brand,
.hero,
.features,
footer {
  width: min(100%, 1280px);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: rise 0.8s 0.1s both;
}

.brand__mark {
  display: block;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(4, 29, 22, 0.24);
}

.brand__status {
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid rgba(245, 238, 220, 0.2);
  border-radius: 999px;
  color: rgba(245, 238, 220, 0.65);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 9vw, 150px);
  padding-block: clamp(48px, 8vh, 110px);
}

.hero__copy {
  max-width: 710px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: rise 0.8s 0.2s both;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-size: clamp(66px, 10vw, 144px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.8;
  text-wrap: balance;
  animation: rise 0.9s 0.28s both;
}

h1 em {
  color: var(--sage);
  font-style: normal;
  font-weight: 400;
}

.intro {
  max-width: 540px;
  margin: 34px 0 28px;
  color: var(--mist);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  animation: rise 0.9s 0.38s both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(245, 238, 220, 0.22);
  border-radius: 999px;
  background: rgba(18, 55, 45, 0.42);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: rgba(245, 238, 220, 0.88);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: rise 0.9s 0.46s both;
}

.status__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(143, 191, 161, 0.6);
  animation: pulse 2.4s infinite;
}

.specimen {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  aspect-ratio: 0.82;
  border: 1px solid rgba(245, 238, 220, 0.2);
  border-radius: 220px 220px 34px 34px;
  background: linear-gradient(145deg, rgba(245, 238, 220, 0.16), rgba(18, 55, 45, 0.25));
  box-shadow: 0 30px 80px rgba(4, 29, 22, 0.34), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: rise 1s 0.4s both;
}

.specimen::before {
  content: "";
  position: absolute;
  inset: 12% 10% 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 238, 220, 0.2), transparent 65%);
  filter: blur(12px);
}

.specimen__ring {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(245, 238, 220, 0.18);
  border-radius: 50%;
}

.specimen__logo {
  position: absolute;
  inset: 14% 17% auto;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 238, 220, 0.28);
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(4, 29, 22, 0.35);
  opacity: 0.94;
}

.specimen__caption {
  position: absolute;
  right: 32px;
  bottom: 30px;
  left: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 238, 220, 0.2);
}

.specimen__caption span,
.specimen__caption strong {
  display: block;
}

.specimen__caption span {
  margin-bottom: 7px;
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.specimen__caption strong {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
}

.features {
  padding-block: clamp(90px, 13vw, 180px) clamp(80px, 10vw, 140px);
}

.features__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  column-gap: clamp(40px, 9vw, 140px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 84px);
}

.features__heading .eyebrow {
  grid-column: 1 / -1;
}

.features h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.features__heading > p:last-child {
  margin: 0 0 7px;
  color: var(--mist);
  font-size: 17px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(245, 238, 220, 0.2);
  border-left: 1px solid rgba(245, 238, 220, 0.2);
}

.feature-card {
  position: relative;
  min-height: 270px;
  padding: 30px 28px 34px;
  border-right: 1px solid rgba(245, 238, 220, 0.2);
  border-bottom: 1px solid rgba(245, 238, 220, 0.2);
  background: rgba(18, 55, 45, 0.28);
  backdrop-filter: blur(10px);
  transition: background-color 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  z-index: 1;
  background: rgba(143, 191, 161, 0.15);
  transform: translateY(-4px);
}

.feature-card__number {
  display: block;
  margin-bottom: 58px;
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.feature-card h3 {
  margin: 0 0 12px;
  color: var(--ivory);
  font-size: 20px;
  font-weight: 500;
}

.feature-card p {
  margin: 0;
  color: rgba(245, 238, 220, 0.62);
  font-size: 14px;
  line-height: 1.58;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(245, 238, 220, 0.18);
  padding-top: 22px;
  color: rgba(245, 238, 220, 0.54);
  font-size: 12px;
  letter-spacing: 0.05em;
  animation: rise 0.8s 0.6s both;
}

footer p {
  margin: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes settle {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.025); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 191, 161, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(143, 191, 161, 0); }
}

@media (max-width: 820px) {
  .page { padding: 24px 22px 22px; }
  .hero { grid-template-columns: 1fr; gap: 46px; padding-block: 56px; }
  .hero__copy { z-index: 1; }
  .specimen {
    position: absolute;
    right: -85px;
    bottom: 110px;
    z-index: -1;
    width: 330px;
    opacity: 0.25;
  }
  h1 { font-size: clamp(68px, 20vw, 118px); }
  .intro { max-width: 480px; }
  .features__heading { grid-template-columns: 1fr; }
  .features__heading > p:last-child { max-width: 560px; margin-top: 24px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 16px; }
  .brand__status { display: none; }
  h1 { font-size: clamp(62px, 21vw, 94px); line-height: 0.84; }
  .intro { margin-top: 28px; font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 225px; }
  .feature-card__number { margin-bottom: 36px; }
  footer { flex-direction: column; gap: 10px; }
  .copyright { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
