:root {
  --bg: #070b0e;
  --bg-soft: #0d1317;
  --ink: #101417;
  --card: rgba(18, 24, 28, 0.86);
  --card-strong: rgba(10, 15, 18, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(16, 20, 23, 0.12);
  --text: #f6f7f8;
  --muted: #c7ced3;
  --muted-2: #909aa2;
  --yellow: #ffc400;
  --yellow-2: #ffd84f;
  --cream: #f4f2ec;
  --shadow: rgba(0, 0, 0, 0.34);
  --max: 1200px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #070b0e 0%, #0b1013 46%, #070b0e 100%);
  line-height: 1.55;
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 14, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 80px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
.nav.nav-collapsed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.logo,
.footer-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo img {
  width: 260px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
  font-weight: 700;
  font-size: 15px;
  flex-wrap: nowrap;
}
.nav-links a {
  text-decoration: none;
  color: #f5f5f5;
  opacity: 0.92;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-color: var(--yellow);
}
.nav-links .btn {
  padding: 10px 18px;
  min-height: 48px;
  border: 1px solid var(--yellow);
  border-bottom: 1px solid var(--yellow);
}
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span:not(.sr-only) {
  position: absolute;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}
.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}
.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}
.nav-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}
.nav.nav-collapsed .nav-toggle {
  display: inline-flex;
  justify-self: end;
}
.nav.nav-collapsed .nav-links {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 12px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.nav.nav-collapsed .nav-links.is-open {
  display: flex;
}
.nav.nav-collapsed .nav-links a:not(.btn) {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav.nav-collapsed .nav-links a.active {
  border-color: rgba(255, 196, 0, 0.54);
}
.nav.nav-collapsed .nav-links .btn {
  width: 100%;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid var(--yellow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  color: #090d10;
  box-shadow: 0 12px 32px rgba(255, 196, 0, 0.2);
}
.btn-secondary {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.06); }
.btn-account {
  background: rgba(0, 0, 0, 0.28);
  border-color: var(--yellow);
  border-bottom-color: var(--yellow);
  color: #fff;
  box-shadow: none;
}
.btn-account:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--yellow);
}

.hero {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #070b0e;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 11, 14, 0.99) 0%, rgba(7, 11, 14, 0.92) 34%, rgba(7, 11, 14, 0.46) 62%, rgba(7, 11, 14, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 11, 14, 0.08) 0%, rgba(7, 11, 14, 0.08) 58%, rgba(7, 11, 14, 0.86) 100%);
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("assets/reference/hero.png");
  background-size: auto 104%;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.82;
  filter: saturate(0.96) contrast(1.03);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, rgba(0, 0, 0, 0.34) 28%, #000 48%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, rgba(0, 0, 0, 0.34) 28%, #000 48%, #000 100%);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 24px 160px;
  position: relative;
  z-index: 2;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 14px;
}
h1 {
  max-width: 720px;
  font-size: clamp(44px, 4.55vw, 62px);
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: 0;
}
h1 .accent,
.accent {
  color: var(--yellow);
  display: inline-block;
}
.lead {
  font-size: 21px;
  color: #edf0f2;
  margin: 0 0 34px;
  max-width: 590px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cards {
  max-width: var(--max);
  margin: -64px auto 0;
  padding: 0 24px 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 3;
}
.card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 70px var(--shadow);
}
.card {
  padding: 22px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  min-height: 154px;
}
.icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.card h3,
.step h3,
.proof h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}
.card p,
.step p,
.panel p {
  color: var(--muted);
  margin: 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 66px 24px;
}
.section-title {
  text-align: center;
  margin-bottom: 34px;
}
.section-title h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  margin: 0 0 8px;
  letter-spacing: 0;
}
.section-title .underline {
  width: 84px;
  height: 3px;
  background: var(--yellow);
  margin: 12px auto 0;
}

.light-section {
  background: var(--cream);
  color: var(--ink);
  padding: 72px 24px;
}
.light-section .section-title {
  max-width: var(--max);
  margin: 0 auto 34px;
}
.proof-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.proof {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  align-items: start;
}
.proof-mark {
  width: 50px;
  height: 50px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #14110a;
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
}
.proof p {
  grid-column: 2;
  margin: 0;
  color: #3e454a;
}

.process-section { padding-top: 72px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  padding: 28px 20px 24px;
  background: rgba(16, 22, 26, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0a0d10;
  font-weight: 900;
}
.section-link {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.cta-band {
  max-width: var(--max);
  margin: 0 auto 22px;
  padding: 0 24px;
}
.cta-inner {
  border: 1px solid rgba(255, 196, 0, 0.46);
  box-shadow: 0 0 30px rgba(255, 196, 0, 0.16);
  border-radius: 8px;
  padding: 26px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--card-strong);
}
.cta-copy {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 25px;
  font-weight: 850;
  line-height: 1.22;
}

.footer {
  border-top: 1px solid rgba(16, 20, 23, 0.18);
  background: var(--yellow);
  color: var(--ink);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 28px;
  display: grid;
  grid-template-columns: 1.7fr 1.2fr 1fr 1fr;
  gap: 54px;
}
.footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink);
}
.footer p,
.footer a,
.footer li {
  color: var(--ink);
  text-decoration: none;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.footer-logo img {
  width: 208px;
  height: auto;
}
.footer-logo {
  margin-bottom: 12px;
}
.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.contact-list .mark { color: #050708; }
.section .panel .contact-list .mark {
  color: var(--yellow);
  font-weight: 900;
}
.footer .contact-list li {
  align-items: center;
}
.footer .contact-list .mark {
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #050708;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.footer .contact-list .logo-mark img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0);
}
.legal {
  border-top: 1px solid rgba(16, 20, 23, 0.16);
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(16, 20, 23, 0.78);
  font-size: 14px;
}
.legal nav {
  display: flex;
  gap: 28px;
}

.page-hero {
  margin: 0;
  padding: 76px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 76px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #05090c;
  background-image:
    linear-gradient(90deg, rgba(5, 9, 12, 0.22) 0%, rgba(5, 9, 12, 0.1) 48%, rgba(5, 9, 12, 0) 100%),
    url("assets/reference/hero_tausta.png");
  background-position: right top, right top;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 -48px 64px rgba(0, 0, 0, 0.32);
}
.page-hero h1 { max-width: 850px; }
.pricing-hero {
  padding-bottom: 54px;
}
.company-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 54px;
  align-items: start;
}
.company-copy h1 {
  max-width: 760px;
}
.founder-card {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-strong);
  box-shadow: 0 24px 70px var(--shadow);
}
.founder-card img {
  width: 100%;
  aspect-ratio: 4 / 3.7;
  object-fit: cover;
  object-position: 58% 0%;
}
.founder-card figcaption {
  display: grid;
  gap: 4px;
  padding: 18px 20px 20px;
  color: var(--muted);
}
.founder-card strong {
  color: var(--text);
  font-size: 18px;
}
.story-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.story-block {
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 20, 23, 0.09);
}
.story-block .proof-mark {
  margin-bottom: 18px;
  background: #fff9df;
  font-size: 21px;
}
.story-block h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.22;
}
.story-block p {
  margin: 0;
  color: #3e454a;
}
.founder-story {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: start;
}
.founder-story h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}
.founder-story p {
  color: var(--muted);
  margin-top: 0;
}
.pricing-summary {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  padding-top: 24px;
}
.price-panel {
  padding: 32px;
}
.price-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.accent-panel {
  border-color: rgba(255, 196, 0, 0.42);
  box-shadow: 0 0 30px rgba(255, 196, 0, 0.14);
}
.license-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.license-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 20, 23, 0.09);
}
.license-card .proof-mark {
  margin-bottom: 18px;
  background: #fff9df;
}
.license-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
}
.license-card p {
  margin: 0 0 18px;
  color: #3e454a;
}
.license-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #273039;
}
.license-card li {
  position: relative;
  padding-left: 24px;
}
.license-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #11161a;
  font-weight: 900;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.panel { padding: 26px; }
.panel h2,
.panel h3 { margin-top: 0; }
.price {
  font-size: 34px;
  font-weight: 900;
  color: var(--yellow);
  margin: 12px 0;
}
.form {
  display: grid;
  gap: 14px;
}
.form-status {
  display: none;
  margin: 0;
  border-left: 3px solid var(--yellow);
  padding: 12px 14px;
  background: rgba(255, 196, 0, 0.08);
  color: var(--text);
}
.form-status.is-visible {
  display: block;
}
.form-status.is-error {
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
label { font-weight: 750; }
input,
textarea,
select {
  width: 100%;
  background: #0b1013;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
}
textarea { min-height: 150px; }
.notice {
  border-left: 3px solid var(--yellow);
  padding: 14px 16px;
  background: rgba(255, 196, 0, 0.08);
  color: var(--muted);
}

.privacy-page .section {
  max-width: 1080px;
}
.privacy-updated {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 196, 0, 0.48);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 850;
}
.privacy-intro {
  display: grid;
  gap: 20px;
}
.privacy-toc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.privacy-toc a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.privacy-section {
  display: grid;
  gap: 20px;
}
.privacy-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}
.privacy-section .lead-text {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
}
.privacy-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.privacy-list li + li {
  margin-top: 8px;
}
.privacy-note {
  border: 1px solid rgba(255, 196, 0, 0.34);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 196, 0, 0.08);
  color: var(--text);
}
.privacy-note p {
  margin: 0;
}

.docs-page .page-hero {
  min-height: 360px;
}
.docs-hero .lead {
  max-width: 720px;
}
.docs-section {
  max-width: 980px;
}
.docs-title {
  text-align: left;
}
.docs-title .underline {
  margin-left: 0;
}
.document-list {
  display: grid;
  gap: 14px;
}
.document-link {
  min-height: 104px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 26, 0.72);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.document-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 196, 0, 0.54);
  background: rgba(18, 25, 29, 0.9);
}
.document-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.25;
}
.document-link small {
  color: var(--muted);
  font-size: 15px;
}
.document-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.portal-body {
  background: #080c0f;
}
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 14, 0.96);
  backdrop-filter: blur(14px);
}
.portal-user {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 750;
}
.portal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}
.portal-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100vh - 76px);
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: #0b1013;
}
.portal-sidebar nav {
  display: grid;
  gap: 6px;
}
.portal-sidebar a {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}
.portal-sidebar a:hover,
.portal-sidebar a.active {
  background: rgba(255, 196, 0, 0.1);
  color: var(--yellow);
}
.portal-note {
  margin-top: 32px;
  padding: 16px;
  border: 1px solid rgba(255, 196, 0, 0.3);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}
.portal-note strong {
  color: var(--text);
}
.portal-main {
  padding: 44px 36px 70px;
}
.portal-heading {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
}
.portal-heading h1 {
  margin-bottom: 18px;
}
.portal-heading .lead {
  max-width: 760px;
  margin-bottom: 0;
}
.portal-org {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  display: grid;
  gap: 4px;
}
.portal-org span,
.portal-org small {
  color: var(--muted);
}
.portal-org strong {
  font-size: 24px;
}
.portal-metrics {
  max-width: 1180px;
  margin: 30px 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.portal-metrics article,
.portal-section,
.portal-panel,
.software-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 26, 0.72);
}
.portal-metrics article {
  min-height: 126px;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 6px;
}
.portal-metrics span,
.portal-metrics small {
  color: var(--muted);
}
.portal-metrics strong {
  font-size: 34px;
  line-height: 1;
}
.portal-section {
  max-width: 1180px;
  margin-top: 18px;
  padding: 26px;
}
.portal-section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}
.portal-section p {
  margin: 0;
  color: var(--muted);
}
.portal-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.portal-link {
  color: var(--yellow);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.portal-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.portal-row {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 0.9fr 0.8fr;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-row:first-child {
  border-top: 0;
}
.portal-row-head {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 850;
}
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.status.ok {
  background: rgba(60, 208, 125, 0.13);
  color: #74e7a9;
}
.status.attention {
  background: rgba(255, 196, 0, 0.13);
  color: var(--yellow);
}
.portal-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}
.software-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.software-list article {
  padding: 18px;
}
.software-list h3 {
  margin: 12px 0 6px;
}
.portal-panel {
  padding: 22px;
}
.license-summary,
.portal-profile dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}
.license-summary div,
.portal-profile dl div {
  display: grid;
  gap: 2px;
}
.license-summary dt,
.portal-profile dt {
  color: var(--muted);
  font-weight: 800;
}
.license-summary dd,
.portal-profile dd {
  margin: 0;
  font-weight: 850;
}
.updates-timeline {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.updates-timeline article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 196, 0, 0.12);
}
.muted-dot {
  background: var(--muted-2);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}
.updates-timeline strong {
  display: block;
  margin-bottom: 4px;
}
.portal-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}
.action-strip {
  max-width: 1180px;
  margin: 28px 0 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 196, 0, 0.32);
  border-radius: 8px;
  background: rgba(255, 196, 0, 0.07);
  color: var(--muted);
}
.portal-row-5 {
  grid-template-columns: 1.15fr 0.85fr 1fr 0.9fr 0.85fr;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.detail-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.software-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .hero-image {
    left: 0;
    background-size: auto 100%;
    background-position: right center;
  }
  .cards,
  .proof-grid,
  .story-grid,
  .portal-metrics,
  .license-grid,
  .steps,
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-summary { grid-template-columns: 1fr; }
  .company-hero,
  .founder-story,
  .portal-heading,
  .portal-columns,
  .portal-profile,
  .detail-grid,
  .software-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }
  .logo {
    display: inline-flex;
  }
  .logo img {
    width: min(220px, 68vw);
    height: auto;
  }
  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a:not(.btn) {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links .btn { width: 100%; }
  .hero { min-height: 0; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 11, 14, 0.34) 0%, rgba(7, 11, 14, 0.72) 36%, #070b0e 78%),
      linear-gradient(90deg, rgba(7, 11, 14, 0.78), rgba(7, 11, 14, 0.32));
  }
  .hero-image {
    inset: 0;
    height: 430px;
    background-size: 700px auto;
    background-position: center top;
    opacity: 0.86;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  }
  .hero-inner { padding: 352px 20px 78px; }
  h1 { font-size: clamp(32px, 9vw, 38px); }
  h1 .accent,
  .accent { display: inline; }
  .lead { font-size: 18px; }
  .page-hero { padding: 56px 24px 20px; }
  .section { padding: 44px 24px; }
  .actions .btn,
  .cta-inner .btn { width: 100%; }
  .cards,
  .proof-grid,
  .story-grid,
  .license-grid,
  .steps,
  .privacy-toc,
  .grid-2,
  .grid-3,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .cards {
    margin-top: 0;
    padding-top: 24px;
  }
  .card {
    min-height: 0;
  }
  .document-link {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .document-link strong {
    font-size: 18px;
  }
  .proof { grid-template-columns: 48px 1fr; }
  .proof p { grid-column: 1 / -1; }
  .cta-inner,
  .legal {
    display: block;
  }
  .cta-copy {
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 22px;
  }
  .legal nav {
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .portal-topbar {
    position: static;
    display: grid;
    padding: 16px 20px;
  }
  .portal-user {
    display: grid;
    gap: 10px;
  }
  .portal-shell {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .portal-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-main {
    padding: 36px 20px 54px;
  }
  .portal-metrics,
  .portal-row,
  .portal-row-5 {
    grid-template-columns: 1fr;
  }
  .action-strip {
    display: grid;
  }
  .portal-section-head {
    display: grid;
  }
  .portal-link {
    white-space: normal;
  }
}
