:root {
  color-scheme: dark;
  --bg: #07090c;
  --bg-soft: #0d1117;
  --panel: rgba(18, 23, 30, 0.88);
  --panel-strong: #121820;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f7fa;
  --muted: rgba(244, 247, 250, 0.72);
  --faint: rgba(244, 247, 250, 0.48);
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --green: #42d392;
  --gold: #e9bc57;
  --danger: #f17676;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.08), transparent 25rem),
    radial-gradient(circle at 78% 10%, rgba(125, 211, 252, 0.12), transparent 24rem),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  z-index: 20;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #03131d;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand > img:first-child {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand__wordmark {
  width: auto;
  height: 16px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--accent);
  color: #04141e;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--accent-strong);
  color: #04141e;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px) 60px;
}

.hero__content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4.9vw, 64px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.1;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__lede {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(17px, 1.7vw, 21px);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
}

.button:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.45);
  outline-offset: 3px;
}

.button--primary {
  background: var(--accent);
  color: #04141e;
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}

.product-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.frame-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.frame-topbar span {
  width: 54px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--danger) 0 25%, var(--gold) 25% 55%, var(--green) 55%);
}

.frame-topbar strong {
  color: var(--text);
}

.frame-topbar em {
  justify-self: end;
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 800;
}

.app-preview {
  display: grid;
  grid-template-columns: 74px 1fr;
  background: linear-gradient(135deg, #090d12 0%, #111923 58%, #0a1017 100%);
}

.preview-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.preview-rail b,
.preview-rail span {
  display: block;
  border-radius: var(--radius);
}

.preview-rail b {
  width: 34px;
  height: 34px;
  background: url("assets/portico-symbol-transparent-hires.png") center / contain no-repeat;
}

.preview-rail span {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.09);
}

.preview-rail .is-active {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: inset 3px 0 0 var(--accent);
}

.preview-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 22px);
}

.preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  min-height: 178px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(6, 9, 13, 0.98), rgba(6, 9, 13, 0.55)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(66, 211, 146, 0.16) 42%, rgba(233, 188, 87, 0.16));
}

.preview-hero small,
.preview-meter span,
.status-grid span,
.guide-header span,
.platform-stack span,
.client-grid span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-hero h2 {
  max-width: 470px;
  margin: 8px 0 12px;
  font-size: clamp(26px, 2.7vw, 38px);
}

.preview-hero p {
  max-width: 420px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.55;
}

.preview-meter {
  width: 148px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.preview-meter strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 18px;
}

.media-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 16px;
}

.poster {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.poster--blue {
  background: linear-gradient(160deg, #17283c, #38bdf8 62%, #071017);
}

.poster--cyan {
  background: linear-gradient(160deg, #0d2028, #7dd3fc 54%, #13202b);
}

.poster--steel {
  background: linear-gradient(160deg, #1b2531, #6e8094 58%, #080b10);
}

.poster--green {
  background: linear-gradient(160deg, #0a2119, #42d392 55%, #0c1013);
}

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

.status-grid div {
  min-height: 66px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.status-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.section {
  padding: 86px clamp(18px, 5vw, 72px);
}

.section--dense {
  padding-top: 72px;
}

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

.section-heading--left {
  margin: 0;
  text-align: left;
}

.section-heading p {
  font-size: 17px;
}

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

.feature-grid article,
.client-grid article,
.platform-stack div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.feature-grid article {
  min-height: 242px;
  padding: 24px;
}

.feature-grid article:hover,
.client-grid article:hover {
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(255, 255, 255, 0.075);
}

.feature-kicker {
  display: block;
  margin-bottom: 46px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.feature-grid p {
  margin-bottom: 0;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: 86px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.guide-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(6, 9, 13, 0.78);
  box-shadow: var(--shadow);
}

.guide-header,
.guide-row {
  display: grid;
  grid-template-columns: 68px 1fr 120px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.guide-header {
  min-height: 62px;
}

.guide-header strong {
  font-size: 18px;
}

.guide-header em {
  justify-self: end;
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.guide-row {
  min-height: 76px;
}

.guide-row:last-child {
  border-bottom: 0;
}

.guide-row b {
  color: var(--accent-strong);
}

.guide-row i {
  display: block;
  height: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.guide-row--active {
  background: rgba(56, 189, 248, 0.12);
}

.guide-row--active i {
  background: linear-gradient(90deg, var(--accent) 0 62%, rgba(255, 255, 255, 0.15) 62%);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-grid article {
  min-height: 126px;
  padding: 20px;
}

.client-grid strong {
  display: block;
  margin-top: 22px;
  font-size: 19px;
}

.security-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: 96px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(56, 189, 248, 0.12), transparent 42%),
    #0a0e13;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.security-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.security-list span {
  color: var(--muted);
  line-height: 1.55;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.platform-stack {
  display: grid;
  gap: 12px;
}

.platform-stack div {
  padding: 20px;
}

.platform-stack strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 230px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcfd, #dfe6ec);
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

@media (max-width: 1120px) {
  .hero,
  .showcase,
  .security-band,
  .section--split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-frame {
    max-width: 860px;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  h1 {
    font-size: clamp(34px, 9.5vw, 42px);
    line-height: 1.03;
  }

  .hero__lede {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .app-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-frame {
    display: none;
  }

  .preview-rail {
    display: none;
  }

  .preview-hero,
  .status-grid,
  .security-list li,
  .guide-header,
  .guide-row {
    grid-template-columns: 1fr;
  }

  .preview-meter {
    width: 100%;
  }

  .media-row,
  .feature-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .poster {
    min-height: 142px;
  }

  .section,
  .showcase,
  .security-band {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-nav a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .frame-topbar {
    grid-template-columns: 1fr;
  }

  .frame-topbar em {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
