.page-home {
  --home-space-y: 64px;
  --home-space-y-desktop: 96px;
  --home-hero-shadow: 0 20px 42px rgba(26, 26, 46, 0.12);
  --home-card-shadow: 0 8px 20px rgba(30, 144, 255, 0.06);
  --home-card-shadow-hover: 0 14px 32px rgba(30, 144, 255, 0.14);
  overflow-x: hidden;
}

.page-home .eyebrow {
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.page-home .home-hero {
  position: relative;
  padding: 44px 0 52px;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(0, 194, 199, 0.16), transparent 60%),
    radial-gradient(800px 480px at -10% 110%, rgba(30, 144, 255, 0.14), transparent 55%),
    var(--color-bg);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.08), rgba(0, 194, 199, 0.14) 48%, rgba(122, 92, 255, 0.10));
  clip-path: polygon(48% 0, 100% 0, 100% 100%, 60% 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 32%;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 140, 0, 0.22), rgba(255, 140, 0, 0));
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero-flags {
  position: absolute;
  right: -8px;
  bottom: 14px;
  width: 180px;
  height: auto;
  opacity: 0.7;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .home-hero-copy {
  min-width: 0;
}

.page-home .home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--color-primary-deep);
  font-size: 13px;
}

.page-home .home-hero-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: rgba(255, 140, 0, 0.16);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}

.page-home .home-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--color-primary-deep);
  margin: 0 0 20px;
}

.page-home .home-hero-desc {
  max-width: 58ch;
  margin: 0 0 24px;
  color: var(--color-soft-text);
  line-height: 1.9;
}

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

.page-home .home-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--color-line);
}

.page-home .home-hero-metric dt {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.page-home .home-hero-metric dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
}

.page-home .home-hero-visual {
  position: relative;
  margin: 0;
  border-radius: 28px;
  isolation: isolate;
  transform: rotate(1.6deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--home-hero-shadow);
}

.page-home .home-hero-visual::before {
  content: "";
  position: absolute;
  inset: -16px 10px -12px -16px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.18), rgba(255, 140, 0, 0.10));
}

.page-home .home-hero-visual:hover,
.page-home .home-hero-visual:focus-within {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 26px 52px rgba(26, 26, 46, 0.16);
}

.page-home .home-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.page-home .home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 26px;
}

.page-home .home-gateway {
  padding: var(--home-space-y) 0;
  background: var(--color-surface);
}

.page-home .home-gateway-layout {
  display: grid;
  gap: 26px;
  align-items: start;
}

.page-home .home-gateway-cards {
  display: grid;
  gap: 14px;
}

.page-home .home-gateway-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--home-card-shadow);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .home-gateway-card:hover,
.page-home .home-gateway-card:focus-visible {
  border-color: rgba(30, 144, 255, 0.32);
  box-shadow: var(--home-card-shadow-hover);
  transform: translateY(-3px);
}

.page-home .home-gateway-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-info-bg);
  color: var(--color-primary-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
}

.page-home .home-gateway-card h3 {
  margin: 0;
  line-height: 1.4;
}

.page-home .home-gateway-text {
  margin: 0;
  color: var(--color-soft-text);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .home-gateway-card .tag {
  margin-top: 4px;
}

.page-home .home-gateway-figure,
.page-home .home-news-figure,
.page-home .home-services-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--home-hero-shadow);
}

.page-home .home-gateway-figure img,
.page-home .home-news-figure img,
.page-home .home-services-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-news {
  padding: var(--home-space-y) 0;
  background: linear-gradient(150deg, var(--color-bg), var(--color-info-bg) 55%, rgba(0, 194, 199, 0.08));
}

.page-home .home-news-layout {
  display: grid;
  gap: 26px;
  align-items: start;
}

.page-home .home-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-news-item {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .home-news-item:hover {
  transform: translateX(4px);
  border-color: rgba(0, 194, 199, 0.28);
  box-shadow: var(--home-card-shadow-hover);
}

.page-home .home-news-index {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.page-home .home-news-item .tag {
  display: inline-block;
  margin-bottom: 8px;
}

.page-home .home-news-item h3 {
  margin: 0 0 8px;
  line-height: 1.45;
}

.page-home .home-news-item p {
  margin: 0 0 10px;
  color: var(--color-soft-text);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .home-news-link {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.page-home .home-news-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-home .home-services {
  padding: var(--home-space-y) 0;
  background: var(--color-surface);
}

.page-home .home-services-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .home-services-content .lead {
  margin: 0 0 20px;
}

.page-home .home-services-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-services-list li {
  position: relative;
  padding-left: 26px;
  color: var(--color-soft-text);
  line-height: 1.75;
}

.page-home .home-services-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), var(--color-primary));
  box-shadow: 0 0 0 3px rgba(0, 194, 199, 0.14);
}

.page-home .home-services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home a:focus-visible,
.page-home .home-gateway-card:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .page-home .home-hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .page-home .home-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }

  .page-home .home-hero-flags {
    right: 14px;
    bottom: 20px;
    width: 240px;
  }

  .page-home .home-gateway-layout {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .page-home .home-gateway-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-services-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
  }
}

@media (min-width: 960px) {
  .page-home {
    --home-space-y: var(--home-space-y-desktop);
  }

  .page-home .home-hero {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .page-home .home-hero-inner {
    min-height: calc(100vh - var(--header-h));
  }

  .page-home .home-hero-flags {
    width: 300px;
  }

  .page-home .home-news-layout {
    grid-template-columns: 1.35fr 0.65fr;
  }

  .page-home .home-news-item {
    padding: 26px;
  }
}
