:root {
  --agile-blue: #30358f;
  --state-navy: #000091;
  --agile-lavender: #bfc8e8;
  --agile-magenta: #e40046;
  --asset-green: #5fa832;
  --energy-orange: #e4794a;
  --data-cyan: #2aa7b8;
  --baseline: #6a6af4;
  --ink: #151727;
  --slate: #60677a;
  --muted: #8a91a3;
  --line: #e1e5f0;
  --mist: #f7f8fc;
  --surface: #fff;
  --night: #070a1f;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 18px 40px rgb(21 23 39 / 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, Nunito, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

a { color: inherit; }

.hub {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.hub-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--agile-blue);
  font-family: Poppins, Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 80px; height: auto; }

.brand__divider { width: 1px; height: 25px; background: var(--line); }

.hub-header__context {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
  gap: 52px;
  overflow: hidden;
  min-height: 420px;
  margin-top: 18px;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--surface);
  padding: 58px clamp(28px, 6vw, 72px);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(118deg, rgb(7 10 31 / 0.18) 18%, rgb(0 0 145 / 0.92) 100%);
  content: "";
}

.hero__mesh {
  position: absolute;
  z-index: -1;
  right: -58px;
  bottom: -85px;
  width: 430px;
  height: 430px;
  border: 1px solid rgb(191 200 232 / 0.32);
  border-radius: 44% 56% 28% 72% / 44% 35% 65% 56%;
  box-shadow: -65px -55px 0 -1px rgb(191 200 232 / 0.18), -132px -108px 0 -2px rgb(191 200 232 / 0.1);
  transform: rotate(17deg);
}

.hero__copy { align-self: center; }

.eyebrow {
  margin: 0 0 16px;
  color: rgb(255 255 255 / 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow--dark { color: var(--agile-blue); }

h1, h2, p { overflow-wrap: break-word; }

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero__lead {
  max-width: 635px;
  margin: 26px 0 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.environment-panel {
  align-self: end;
  border: 1px solid rgb(191 200 232 / 0.38);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(10px);
  padding: 22px;
}

.environment-panel__label {
  margin: 0 0 11px;
  color: rgb(255 255 255 / 0.68);
  font-size: 13px;
  font-weight: 600;
}

.environment-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-sm);
}

.environment-switch__button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.7);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.environment-switch__button + .environment-switch__button { border-left: 1px solid rgb(255 255 255 / 0.25); }

.environment-switch__button[aria-pressed="true"] { background: var(--surface); color: var(--state-navy); }

.environment-panel__status { min-height: 42px; margin: 15px 0 11px; color: rgb(255 255 255 / 0.82); font-size: 13px; line-height: 1.5; }

.environment-panel__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.environment-panel__facts div { border-top: 1px solid rgb(255 255 255 / 0.24); padding-top: 10px; }
.environment-panel__facts dt { color: rgb(255 255 255 / 0.62); font-size: 11px; }
.environment-panel__facts dd { margin: 4px 0 0; font-family: Poppins, Inter, sans-serif; font-size: 22px; font-weight: 700; }

.products-section { padding: 78px 0 54px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 28px;
}

.section-heading h2, .operating-note h2 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.13;
}

.section-heading > p { max-width: 430px; margin: 0; color: var(--slate); font-size: 14px; line-height: 1.65; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 498px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--product-color);
  content: "";
}

.product-preview {
  position: relative;
  display: block;
  height: 154px;
  overflow: hidden;
  background: var(--product-tint);
  color: #fff;
}

.product-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.75);
  transition: transform 180ms ease, filter 180ms ease;
}

.product-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, color-mix(in srgb, var(--product-dark) 82%, transparent), transparent 84%);
  content: "";
}

.product-preview:hover img,
.product-preview:focus-visible img { filter: saturate(1); transform: scale(1.035); }

.product-preview:focus-visible { outline: 3px solid var(--agile-magenta); outline-offset: -3px; }

.product-preview__overlay {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 13px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-preview__action { display: inline-flex; min-width: 0; align-items: center; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.product-preview--unavailable::after { background: linear-gradient(112deg, rgb(21 23 39 / 0.82), rgb(21 23 39 / 0.18)); }
.product-preview--unavailable img { filter: grayscale(1) saturate(0.3); }
.product-preview--unavailable .product-preview__overlay { align-items: flex-start; flex-direction: column; gap: 1px; }
.product-preview__overlay small { color: rgb(255 255 255 / 0.75); font-size: 11px; font-weight: 600; }

.product-card__body { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 22px 25px 25px; }

.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }

.product-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--product-tint);
  color: var(--product-color);
}

.product-card__icon svg, .link-icon svg, .operating-note__icon svg { width: 22px; height: 22px; }

.availability {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: var(--product-tint);
  color: var(--product-dark);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
}

.availability--quiet { background: #f0f2f6; color: var(--slate); }

.product-card h3 { margin: 24px 0 8px; font-family: Poppins, Inter, sans-serif; font-size: 27px; letter-spacing: -0.04em; line-height: 1.1; }
.product-card__category { margin: 0; color: var(--product-dark); font-size: 13px; font-weight: 700; }
.product-card__host { margin: 7px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.product-card__description { margin: 14px 0 21px; color: var(--slate); font-size: 14px; line-height: 1.58; }

.product-card__links { display: grid; gap: 9px; margin-top: auto; }

.product-link {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.product-link--primary { border-color: var(--product-color); background: var(--product-color); color: #fff; }
.product-link--secondary:hover { border-color: var(--product-color); color: var(--product-dark); }
.product-link:focus-visible, .environment-switch__button:focus-visible, .brand:focus-visible { outline: 3px solid var(--agile-magenta); outline-offset: 3px; }

.product-link__start { display: inline-flex; align-items: center; gap: 8px; }
.link-icon { display: inline-flex; align-items: center; }

.unavailable {
  display: block;
  min-height: 41px;
  border: 1px dashed #cbd1de;
  border-radius: var(--radius-sm);
  background: #fafbfe;
  color: var(--slate);
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.operating-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 4px;
}

.operating-note__icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; background: #eef0ff; color: var(--agile-blue); }
.operating-note h2 { font-size: 22px; }
.operating-note p { margin: 8px 0 0; color: var(--slate); font-size: 14px; line-height: 1.55; }

.hub-footer { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); padding: 24px 4px 0; font-size: 12px; line-height: 1.5; }
.noscript { color: var(--slate); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .environment-panel { width: min(100%, 430px); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
}

@media (max-width: 650px) {
  .hub { width: min(100% - 28px, 1200px); padding-top: 14px; }
  .hub-header, .hub-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hub-header__context { display: none; }
  .hero { min-height: auto; padding: 40px 23px 24px; }
  h1 { font-size: 37px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .products-section { padding: 54px 0 38px; }
  .operating-note { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
