:root {
  color-scheme: light;
  --ink: #101714;
  --dark: #09120f;
  --dark-raised: #13221b;
  --paper: #f5f7ee;
  --paper-deep: #e8eee1;
  --line: #c8d2c5;
  --muted: #48594f;
  --muted-dark: #b5c5bb;
  --signal: #d8fa78;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--dark); font: 1rem/1.6 var(--font); }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, dl, dd { margin: 0; }
code { font: 0.9rem/1.45 var(--mono); overflow-wrap: anywhere; }
::selection { color: var(--dark); background: var(--signal); }
:focus-visible { outline: 2px solid #597510; outline-offset: 5px; }
.site-header :focus-visible, .hero :focus-visible, .release :focus-visible, .site-footer :focus-visible { outline-color: var(--signal); }
.shell { width: min(100% - 96px, 1280px); margin: 0 auto; }
.skip-link { position: absolute; left: 20px; top: 12px; z-index: 3; transform: translateY(-150%); padding: 10px 14px; background: var(--signal); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 1; color: var(--paper); border-bottom: 1px solid #27382e; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.header-inner { min-height: 80px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: inherit; text-decoration: none; }
.wordmark img { flex: 0 0 auto; }
.wordmark span { font-size: 1.04rem; font-weight: 800; letter-spacing: 0.145em; line-height: 1; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 0.94rem; }
.site-header nav a { color: var(--muted-dark); text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--paper); }
.site-header nav .nav-release { padding: 8px 14px; border: 1px solid #4a5c50; border-radius: 4px; color: var(--paper); }
.site-header nav .nav-release:hover { border-color: var(--signal); }

.hero { color: var(--paper); overflow: hidden; }
.hero-inner { position: relative; min-height: 650px; display: flex; align-items: center; isolation: isolate; }
.hero-content { width: min(56%, 695px); padding: 76px 0 86px; }
.hero-art { position: absolute; z-index: -1; inset: 0 -42px 0 39%; background: var(--dark) url("assets/portavium-gateway.png") 60% center / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark), transparent 48%, transparent 79%, var(--dark)), linear-gradient(180deg, var(--dark), transparent 15%, transparent 84%, var(--dark)); }
.overline { margin: 0 0 18px; font-size: 0.83rem; font-weight: 750; letter-spacing: 0.145em; text-transform: uppercase; }
.hero .overline, .release .overline { color: var(--signal); }
h1, h2, h3 { font-weight: 750; }
h1 { font-size: clamp(4.25rem, 6.4vw, 6.45rem); line-height: 0.99; letter-spacing: -0.066em; }
h1 em { color: var(--signal); font-style: normal; }
.hero-lede { max-width: 435px; margin-top: 26px; color: var(--muted-dark); font-size: 1.125rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 18px; border: 1px solid transparent; border-radius: 4px; font-weight: 750; text-decoration: none; }
.button-primary { color: var(--dark); background: var(--signal); }
.button-primary:hover { background: #e7ff9e; }
.hero-secondary { color: var(--paper); text-underline-offset: 5px; }
.hero-secondary:hover { color: var(--signal); }

.section-light { background: var(--paper); }
.section-inner { padding-block: 96px; }
.workflow-grid, .security-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(34px, 7vw, 110px); }
.section-light .overline { color: var(--muted); }
h2 { font-size: clamp(2.65rem, 4.75vw, 4.75rem); line-height: 1.01; letter-spacing: -0.062em; }
.section-light h2 + p { max-width: 395px; margin-top: 22px; color: var(--muted); font-size: 1.03rem; }
.workflow-tabs { display: flex; flex-direction: column; margin-top: 32px; max-width: 365px; border-top: 1px solid var(--line); }
.workflow-tabs button { min-height: 53px; display: flex; gap: 12px; align-items: center; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.workflow-tabs button::before { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.workflow-tabs button[aria-selected="true"] { color: var(--dark); background: var(--paper-deep); font-weight: 750; }
.workflow-tabs button[aria-selected="true"]::before { background: #466b17; border-color: #466b17; }
.workflow-tabs button:hover { background: var(--paper-deep); }
.example { align-self: center; overflow: hidden; min-width: 0; color: var(--paper); background: var(--dark-raised); border: 1px solid #2c4035; border-radius: 8px; }
.example-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 17px 26px; border-bottom: 1px solid #394e41; color: var(--muted-dark); }
.example-top code { align-self: center; color: var(--signal); }
.example section { padding: clamp(24px, 4vw, 48px); min-height: 310px; }
.example section:focus-visible { outline-color: var(--signal); outline-offset: -5px; }
.example h3 { font-size: clamp(1.55rem, 2.65vw, 2.4rem); letter-spacing: -0.043em; line-height: 1.1; }
.example p { max-width: 400px; padding-top: 12px; color: var(--muted-dark); }
.example-data { margin-top: 25px; }
.example-data > div { display: grid; grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid #394e41; }
.example-data dt { color: var(--muted-dark); }
.example-data dd { min-width: 0; overflow-wrap: anywhere; }
.example-status { font-weight: 700; }
.example-verified { color: var(--signal); }

.security { background: var(--paper-deep); }
.security-list { border-top: 1px solid #acbbae; align-self: center; }
.security-list > div { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 14px; padding: 19px 0; border-bottom: 1px solid #acbbae; }
.security-list dt { font-weight: 750; }
.security-list dd { color: var(--muted); }
.release { color: var(--paper); background: #17271e; }
.release-grid { display: grid; align-items: end; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 44px; }
.release-grid > p { max-width: 375px; color: var(--muted-dark); font-size: 1.1rem; padding-bottom: 4px; }
.site-footer { color: var(--paper); }
.footer-inner { align-items: flex-start; padding-block: 38px 47px; }
.proxy-credit { margin-top: 12px; color: var(--muted-dark); font-size: 0.9rem; }
.proxy-credit strong { color: var(--signal); }
.publisher { color: var(--muted-dark); font-size: 0.9rem; }
.publisher p { margin-bottom: 8px; }
.publisher address { font-style: normal; }

.brand-main { color: var(--paper); }
.brand-intro { padding-top: 76px; padding-bottom: 54px; }
.brand-intro h1 { font-size: clamp(3rem, 8vw, 7rem); overflow-wrap: anywhere; }
.brand-option { margin-bottom: 38px; }
.brand-option h2 { margin-bottom: 12px; font-size: 1rem; letter-spacing: 0; }
.brand-lockups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-lockup { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 30px; }
.brand-lockup.dark { background: var(--dark-raised); }
.brand-lockup.light { color: var(--dark); background: var(--paper); }
.brand-lockup img { width: 66px; flex: 0 0 auto; }
.brand-lockup.light img { filter: brightness(0) saturate(100%); }
.brand-lockup span { font-size: clamp(1rem, 3vw, 1.7rem); font-weight: 800; line-height: 1; letter-spacing: 0.145em; }
.brand-type span { font-size: clamp(1.35rem, 3.7vw, 2.4rem); letter-spacing: 0.12em; }
.brand-details { padding-block: 70px; }
.brand-details h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.swatch { min-height: 139px; display: grid; align-content: end; gap: 3px; padding: 19px; }
.swatch strong { font-weight: 750; }
.swatch.dark { background: var(--dark); color: var(--paper); }
.swatch.light { border: 1px solid var(--line); background: var(--paper); }
.swatch.signal { background: var(--signal); }
.logo-download { display: inline-block; margin-top: 24px; font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 990px) {
  .shell { width: calc(100% - 64px); }
  .hero-inner { min-height: 565px; }
  .hero-content { width: 67%; }
  .hero-art { right: -32px; left: 36%; }
  .section-inner { padding-block: 72px; }
}

@media (max-width: 690px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; gap: 12px; }
  .site-header nav { gap: 0; }
  .site-header nav a:not(.nav-release) { display: none; }
  .site-header nav .nav-release { padding: 7px 9px; font-size: 0.82rem; white-space: nowrap; }
  .wordmark { gap: 7px; }
  .wordmark img { width: 26px; }
  .wordmark span { font-size: 0.88rem; letter-spacing: 0.105em; }
  .hero-inner { display: block; min-height: auto; }
  .hero-content { width: 100%; padding: 53px 0 270px; }
  .hero-art { inset: auto -20px 0; height: 320px; background-position: 62% 62%; }
  .hero-art::after { background: linear-gradient(180deg, var(--dark), transparent 32%, transparent 81%, var(--dark)); }
  h1 { font-size: clamp(3.08rem, 9.5vw, 4.25rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { margin-top: 25px; }
  .section-inner { padding-block: 58px; }
  .workflow-grid, .security-grid, .release-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .workflow-tabs { max-width: none; }
  .example-top { padding-inline: 22px; }
  .example section { min-height: 0; }
  .security-list > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .footer-inner, .brand-lockup { flex-wrap: wrap; }
  .brand-intro { padding-top: 50px; }
  .brand-lockups { grid-template-columns: minmax(0, 1fr); }
  .brand-lockup { min-height: 165px; }
  .swatches { grid-template-columns: minmax(0, 1fr); }
  .swatch { min-height: 104px; }
}
