:root {
  --ink: #eef6fb;
  --muted: rgba(238, 246, 251, .74);
  --muted-2: rgba(238, 246, 251, .52);
  --glass: rgba(11, 25, 35, .54);
  --glass-strong: rgba(8, 19, 27, .68);
  --line: rgba(255,255,255,.16);
  --line-strong: rgba(255,255,255,.28);
  --blue: #6bc7f6;
  --blue-deep: #318fc5;
  --shadow: 0 24px 68px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #10212c; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: -18px;
  z-index: -3;
  background: url('../img/hero-bg.webp') center 52% / cover no-repeat;
  filter: blur(4px) saturate(.88) contrast(.96);
  transform: scale(1.03);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5,16,24,.46) 0%, rgba(4,14,21,.28) 45%, rgba(3,9,14,.60) 100%),
    radial-gradient(circle at 50% 18%, rgba(75,168,220,.13), transparent 30%);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(22px, 3vh, 34px) 0 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hero-head {
  width: min(610px, 100%);
  margin: 0 auto;
  padding: 12px 26px 15px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13,31,43,.60), rgba(8,21,30,.37));
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  box-shadow: 0 16px 46px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.06);
}

.brand-logo {
  width: 150px !important;
  height: 72px !important;
  min-width: 150px !important;
  min-height: 72px !important;
  max-width: 150px !important;
  max-height: 72px !important;
  margin: 0 auto 4px;
  display: block;
  overflow: visible;
  text-decoration: none;
}

.brand-logo img {
  display: block !important;
  width: 150px !important;
  height: 72px !important;
  min-width: 150px !important;
  min-height: 72px !important;
  max-width: 150px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 7px 16px rgba(0,0,0,.22));
}

.eyebrow {
  color: #8ed2f7;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 6px;
}

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(31px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-shadow: 0 3px 18px rgba(0,0,0,.18);
}

.hero-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.products {
  width: min(720px, 100%);
  margin: 0 auto;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 0 24px;
}

.product-card {
  position: relative;
  min-height: 310px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,29,40,.74), rgba(8,19,27,.56));
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.05), transparent 38%);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 32px 76px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.10);
}

.product-card:focus-visible {
  outline: 3px solid rgba(107,199,246,.74);
  outline-offset: 4px;
}

.status {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .01em;
}

.status-live {
  color: #0f3b4e;
  background: #9cdefb;
  box-shadow: 0 8px 20px rgba(70,178,227,.18);
}
.status-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1e9c67;
}
.status-dev {
  color: rgba(244,248,251,.83);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
}

.icon-frame {
  width: 108px;
  height: 108px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 34px rgba(0,0,0,.17);
}

.icon-frame img {
  width: 70px;
  height: 70px;
  display: block;
}

.signature-frame {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 16px 38px rgba(49,144,201,.18);
}
.pti-frame {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 16px 38px rgba(220,164,49,.15);
}

.product-copy { margin-top: 17px; }
.product-copy h2 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.035em;
}
.product-copy p {
  margin: 8px auto 0;
  max-width: 250px;
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-action {
  margin-top: auto;
  min-width: 128px;
  height: 39px;
  padding: 0 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #f5fbff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 11px;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease;
}
.product-action b { font-size: 14px; font-weight: 500; }
.product-card:hover .product-action {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.24);
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 10px;
}

@media (max-height: 820px) and (min-width: 761px) {
  .page-shell { padding-top: 18px; }
  .hero-head { padding-top: 13px; padding-bottom: 14px; }
  .brand-logo,
  .brand-logo img {
    width: 132px !important;
    height: 64px !important;
    min-width: 132px !important;
    min-height: 64px !important;
    max-width: 132px !important;
    max-height: 64px !important;
  }
  h1 { font-size: clamp(30px, 3.6vw, 44px); }
  .products { padding: 20px 0 18px; }
  .product-card { min-height: 286px; padding-top: 22px; }
  .icon-frame { width: 96px; height: 96px; }
  .icon-frame img { width: 62px; height: 62px; }
}

@media (max-width: 760px) {
  body { overflow-y: auto; }

  .page-shell {
    width: min(100% - 20px, 520px);
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }

  .background {
    background-position: 64% center;
    filter: blur(3px) saturate(.86) contrast(.96);
  }

  .veil {
    background:
      linear-gradient(180deg, rgba(5,15,22,.50) 0%, rgba(4,14,21,.38) 38%, rgba(2,9,13,.69) 100%),
      radial-gradient(circle at 50% 12%, rgba(67,167,222,.14), transparent 32%);
  }

  .hero-head {
    width: 100%;
    padding: 14px 14px 15px;
    border-radius: 20px;
  }

  .brand-logo,
  .brand-logo img {
    width: 112px !important;
    height: 56px !important;
    min-width: 112px !important;
    min-height: 56px !important;
    max-width: 112px !important;
    max-height: 56px !important;
  }
  .brand-logo { margin-bottom: 3px; }

  .eyebrow { font-size: 9px; margin-bottom: 5px; }
  h1 { font-size: clamp(28px, 8.4vw, 39px); }
  .hero-head p { margin-top: 7px; font-size: 12px; }

  .products {
    width: 100%;
    margin: 0;
    padding: 14px 0 18px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    min-height: 0;
    padding: 18px 16px;
    border-radius: 21px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      "icon action";
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
    text-align: left;
  }

  .status { top: 10px; right: 10px; }

  .icon-frame {
    grid-area: icon;
    width: 82px;
    height: 82px;
    margin: 0;
    border-radius: 20px;
  }
  .icon-frame img { width: 54px; height: 54px; }

  .product-copy {
    grid-area: copy;
    margin: 0;
    padding-right: 56px;
  }
  .product-copy h2 { font-size: 20px; }
  .product-copy p {
    margin-top: 5px;
    min-height: 0;
    max-width: none;
    font-size: 11px;
    line-height: 1.42;
  }

  .product-action {
    grid-area: action;
    justify-self: start;
    min-width: 112px;
    height: 35px;
    margin: 0;
    padding: 0 12px;
    font-size: 10px;
  }

  .portal-footer {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    padding-top: 0;
  }
  .portal-footer span:last-child::before {
    content: "•";
    padding-right: 10px;
  }
}

@media (max-width: 390px) {
  .page-shell { width: min(100% - 14px, 520px); }
  .hero-head { padding: 13px 11px 14px; }
  .eyebrow { font-size: 8px; letter-spacing: .16em; }
  .hero-head p { font-size: 11px; }

  .product-card {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 11px;
    padding: 15px 12px;
  }

  .icon-frame {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .icon-frame img { width: 47px; height: 47px; }

  .product-copy { padding-right: 42px; }
  .product-copy h2 { font-size: 18px; }
  .status { font-size: 8px; padding: 5px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
