:root {
  --ink: #101828;
  --ink-soft: #32343a;
  --muted: #667085;
  --line: #e4ebf3;
  --panel: #ffffff;
  --panel-soft: #f5f7fa;
  --blue: #285aa0;
  --cyan: #65afff;
  --violet: #6941c6;
  --green: #2aa876;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
  --max: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.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: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 235, 243, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(100% - 40px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(101, 175, 255, 0.95), rgba(42, 168, 118, 0.9)),
    #285aa0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.brand-text {
  display: block;
  max-width: 230px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #43464d;
  font-size: 0.96rem;
  font-weight: 600;
}

.site-nav > a,
.dropdown-trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.dropdown-trigger:hover,
.nav-dropdown:focus-within .dropdown-trigger {
  background: var(--panel-soft);
  color: var(--ink);
}

.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.16);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.language-switch button {
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 560px;
  max-width: calc(100vw - 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.dropdown-menu a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: var(--panel-soft);
}

.dropdown-menu strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.dropdown-menu span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.page-shell {
  min-height: 60vh;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 64px 0;
}

.section.alt {
  background: var(--panel-soft);
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.display-title,
.page-title,
.section-title {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
}

.display-title {
  max-width: 830px;
  font-size: 4.25rem;
  font-weight: 800;
}

.page-title {
  font-size: 3.75rem;
  font-weight: 800;
}

.section-title {
  font-size: 2.45rem;
  font-weight: 800;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #f7f9fb;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0.2) 100%),
    url("/assets/hero-sen.webp") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 96px 0 64px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.ghost-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 750;
}

.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.button:hover {
  background: #1f2937;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.hero-strip {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 0 0 32px;
}

.learn-more-card {
  width: min(340px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.learn-more-card strong {
  display: block;
  font-size: 1.1rem;
}

.learn-more-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.arrow-circle {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.canvas-section {
  min-height: 440px;
  display: grid;
  align-items: center;
  background: #070b12;
  overflow: hidden;
}

.spatial-wrap {
  position: relative;
  width: 100%;
  height: 460px;
}

#spatialCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.spatial-caption {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: min(100% - 40px, var(--max));
  transform: translateX(-50%);
  color: #fff;
}

.spatial-caption p {
  max-width: 580px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.spatial-caption .eyebrow,
.spatial-caption .section-title,
.spatial-caption p {
  color: #fff;
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
}

.mission-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.image-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.tech-tile {
  min-height: 270px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.09);
}

.tile-visual {
  min-height: 210px;
  background:
    radial-gradient(circle at 30% 30%, rgba(101, 175, 255, 0.75), transparent 28%),
    radial-gradient(circle at 70% 58%, rgba(42, 168, 118, 0.55), transparent 30%),
    linear-gradient(135deg, #0d1624, #f8fafc);
}

.tech-tile:nth-child(2) {
  transform: translateY(38px);
}

.tech-tile:nth-child(3) {
  transform: translateY(-22px);
}

.tech-tile small {
  display: block;
  padding: 16px;
  color: var(--ink);
  font-weight: 800;
}

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

.section-heading .lead {
  margin-left: auto;
  margin-right: auto;
}

.app-grid,
.technology-grid,
.stat-grid,
.patent-grid,
.team-grid,
.media-grid,
.jobs-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.card,
.app-card,
.patent-card,
.person-card,
.media-card,
.job-card,
.contact-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
}

.app-card {
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.app-visual {
  min-height: 210px;
  display: grid;
  place-items: center;
  background: #0c111d;
  color: #fff;
  overflow: hidden;
}

.visual-glyph {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.visual-glyph::before,
.visual-glyph::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(101, 175, 255, 0.75);
  transform: rotate(45deg);
}

.visual-glyph::after {
  inset: 38px;
  border-color: rgba(42, 168, 118, 0.85);
  transform: rotate(0deg);
}

.app-card:nth-child(2) .app-visual {
  background: linear-gradient(135deg, #101828, #285aa0);
}

.app-card:nth-child(3) .app-visual {
  background: linear-gradient(135deg, #111827, #2aa876);
}

.app-card:nth-child(4) .app-visual {
  background: linear-gradient(135deg, #121212, #6941c6);
}

.app-body,
.patent-card,
.person-card,
.media-card,
.job-card,
.contact-card,
.stat-card,
.technology-card {
  padding: 24px;
}

.app-card h3,
.technology-card h3,
.patent-card h3,
.person-card h3,
.media-card h3,
.job-card h3,
.stat-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.app-card p,
.technology-card p,
.patent-card p,
.person-card p,
.media-card p,
.job-card p,
.stat-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(101, 175, 255, 0.28), transparent 28%),
    radial-gradient(circle at 88% 30%, rgba(42, 168, 118, 0.25), transparent 25%),
    #101828;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-content h2 {
  margin: 0;
  max-width: 780px;
  font-size: 2.35rem;
  line-height: 1.14;
}

.cta-content p {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.cta-content .button {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.technology-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.technology-card::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--cyan));
}

.technology-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 800;
}

.patent-card {
  display: grid;
  gap: 18px;
}

.patent-meta,
.job-meta,
.media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.person-card {
  min-height: 260px;
}

.avatar {
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(40, 90, 160, 0.94), rgba(42, 168, 118, 0.88)),
    #285aa0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.role {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.contact-form label,
.newsletter-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

.contact-form input,
.contact-form textarea,
.newsletter-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 48px;
}

.footer-newsletter h2 {
  margin: 28px 0 8px;
  font-size: 1.9rem;
}

.footer-newsletter p {
  max-width: 520px;
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  max-width: 520px;
  gap: 12px;
  margin-top: 22px;
}

.newsletter-form button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer-links h3 {
  margin: 0 0 16px;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 20px 0 30px;
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.not-found {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 1040px) {
  .display-title {
    font-size: 3.35rem;
  }

  .page-title {
    font-size: 3rem;
  }

  .mission-grid,
  .split-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px 40px;
    background: #fff;
    overflow: auto;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav > a,
  .dropdown-trigger,
  .language-switch {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    margin-top: 8px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
      url("/assets/hero-sen.webp") center / cover no-repeat;
  }

  .hero-inner {
    padding-top: 76px;
  }

  .display-title {
    font-size: 2.65rem;
  }

  .app-grid,
  .technology-grid,
  .stat-grid,
  .team-grid,
  .media-grid,
  .jobs-grid,
  .patent-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .image-triptych {
    grid-template-columns: 1fr;
  }

  .tech-tile:nth-child(2),
  .tech-tile:nth-child(3) {
    transform: none;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .container,
  .hero-inner,
  .hero-strip,
  .footer-grid,
  .footer-bottom,
  .spatial-caption {
    width: min(100% - 28px, var(--max));
  }

  .brand-text {
    max-width: 165px;
  }

  .section {
    padding: 64px 0;
  }

  .display-title {
    font-size: 2.2rem;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a,
  .button,
  .ghost-button {
    width: 100%;
  }

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

/* Authenticated account lifecycle and newsletter self-service. */
.terms-checkbox { align-items: flex-start; }
.terms-checkbox input { margin-top: 4px; }
.terms-checkbox a,
.newsletter-manage-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.account-dashboard .one-time-key { margin-bottom: 22px; }
.account-span-all { grid-column: 1 / -1; }
.account-global-status { margin: 0 0 18px; padding: 12px 15px; border-radius: 10px; background: #ecfdf5; }
.account-global-status.error { background: #fff1f2; }

.account-section h2 { margin: 0 0 12px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.account-section > p { line-height: 1.65; }
.account-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.account-section-head h2 { margin-bottom: 5px; }
.account-section-head p { margin: 0; color: var(--muted); line-height: 1.55; }

.account-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.account-facts > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f7fafb; }
.account-facts span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.account-facts strong { display: block; overflow-wrap: anywhere; font-size: 1.05rem; }

.account-form { display: grid; gap: 15px; }
.account-form .field,
.account-form label { margin: 0; }
.account-form .checkbox-label { display: flex !important; }
.account-form button { justify-self: start; }
.account-form .form-note { margin: 0; }

.usage-meter { height: 10px; margin: 4px 0 14px; overflow: hidden; border-radius: 999px; background: #dfe9eb; }
.usage-meter span { display: block; width: var(--usage-percent, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #69d5d0); }

.account-loading { min-height: 120px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.account-loading span { width: 30px; height: 30px; border: 3px solid #dce7e9; border-top-color: var(--green); border-radius: 50%; animation: account-spin 800ms linear infinite; }

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.account-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.account-table th,
.account-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .82rem; }
.account-table th { background: #f7fafb; color: var(--muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.account-table code { overflow-wrap: anywhere; }

.request-history { display: grid; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; }
.request-history li { padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfb; }
.request-history li > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.request-history small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.request-status { padding: 4px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .72rem; font-weight: 800; }
.request-status.approved { background: #dcfce7; color: #166534; }
.request-status.rejected { background: #fee2e2; color: #991b1b; }
.request-status.cancelled { background: #f1f5f9; color: #475569; }
.empty-request { color: var(--muted); text-align: center; }

.danger-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.danger-button:hover { background: #8f1c13; }
.danger-button:disabled,
.button:disabled,
.ghost-button:disabled { cursor: wait; opacity: .6; }

.delete-account-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.delete-account-form .danger-button,
.delete-account-form .form-note { grid-column: 1 / -1; }

.unsubscribe-layout { width: min(100% - 32px, 720px); }
.unsubscribe-panel { text-align: left; }
.unsubscribe-panel .danger-button { margin-top: 10px; }

@media (max-width: 840px) {
  .account-span-all { grid-column: 1; }
}

@media (max-width: 560px) {
  .account-section-head { flex-direction: column; }
  .account-facts,
  .delete-account-form { grid-template-columns: 1fr; }
  .delete-account-form .danger-button,
  .delete-account-form .form-note { grid-column: 1; }
  .account-form button,
  .account-section-head button { width: 100%; }
}


/* ThreeFold product demo additions: quiet, white, research-company style. */
.secondary-cta {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.quiet-hero {
  min-height: 76vh;
  align-items: center;
}

.quiet-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.35) 100%),
    url("/assets/hero-sen.webp") center right / cover no-repeat;
}

.hero-note {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.no-top {
  margin-top: 0;
}

.center-lead {
  margin-left: auto;
  margin-right: auto;
}

.left-heading {
  text-align: left;
  margin-bottom: 28px;
}

.left-heading .lead {
  margin-left: 0;
}

.quiet-three {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.info-item {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-item h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.info-item p {
  margin: 0;
  color: var(--muted);
}

.tool-list,
.research-list,
.process-list,
.endpoint-list,
.quiet-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.tool-row,
.research-row,
.process-item,
.endpoint-list > div,
.quiet-list > article {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.tool-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.tool-row strong,
.research-row strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.tool-row small,
.research-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.tool-meta em,
.tool-meta b {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.tool-meta b {
  color: var(--blue);
  background: #f8fbff;
}

.research-row {
  grid-template-columns: 140px minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.process-item {
  grid-template-columns: 48px 1fr;
  align-items: start;
}

.process-item > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 900;
}

.process-item h3,
.endpoint-list h3,
.quiet-list h3 {
  margin: 0 0 6px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
}

.cta-minimal {
  background: var(--panel-soft);
}

.light-cta {
  padding: 40px 0;
  color: var(--ink);
}

.light-cta h2 {
  color: var(--ink);
}

.light-cta p {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: start;
}

.demo-panel,
.output-panel,
.auth-panel,
.dash-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.soft-panel {
  background: var(--panel-soft);
  box-shadow: none;
}

.demo-panel h2,
.output-panel h2,
.dash-card h2,
.auth-panel h2 {
  margin-top: 0;
}

.demo-label,
.auth-panel label,
.interest-fieldset legend {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 800;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.demo-panel input,
.auth-panel input,
.auth-panel select,
.demo-panel textarea,
.code-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
  resize: vertical;
}

.muted-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.mini-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.small-button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.9rem;
}

.ledger-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.ledger-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ledger-summary b {
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.path-svg {
  width: 100%;
  min-height: 220px;
  margin: 6px 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px),
    linear-gradient(90deg, #eef2f7 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
  color: var(--ink);
}

.path-svg circle {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.demo-table th,
.demo-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.demo-table th {
  background: var(--panel-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.demo-table tr:last-child td {
  border-bottom: 0;
}

.code-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #fff;
  white-space: pre-wrap;
  overflow: auto;
  line-height: 1.55;
}

.compact-code {
  padding: 14px;
  margin: 12px 0 20px;
}

.error-text {
  color: #b42318;
  font-weight: 800;
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.docs-sidebar a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
}

.docs-sidebar a:hover {
  background: #fff;
  color: var(--ink);
}

.docs-main h3 {
  margin-top: 34px;
}

.number-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
  padding-left: 22px;
  color: var(--muted);
}

.endpoint-list > div {
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  align-items: start;
}

.endpoint-list code,
.dash-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.compact-plans {
  grid-template-columns: 1fr;
  margin: 16px 0 0;
}

.plan-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.plan-card h3,
.plan-card p {
  margin: 0;
}

.plan-card p {
  color: var(--muted);
}

.plan-price {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.plain-list li {
  position: relative;
  padding-left: 18px;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.plan-table {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.plan-table-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
}

.plan-table-row span {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.plan-table-row span:last-child {
  border-right: 0;
}

.plan-table-row:last-child span {
  border-bottom: 0;
}

.plan-table-row.head span {
  background: var(--panel-soft);
  color: var(--ink);
  font-weight: 800;
}

.pricing-note {
  max-width: 780px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 32px;
  align-items: start;
}

.interest-fieldset {
  display: grid;
  gap: 8px;
  margin: 6px 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.interest-fieldset label,
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--muted) !important;
  font-weight: 650 !important;
}

.interest-fieldset input,
.checkbox-label input {
  width: auto;
  min-height: auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wide-card {
  grid-column: 1 / -1;
}

.empty-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

@media (max-width: 1040px) {
  .lab-layout,
  .docs-layout,
  .auth-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .tool-row,
  .research-row,
  .endpoint-list > div {
    grid-template-columns: 1fr;
  }

  .tool-meta,
  .cta-actions {
    justify-content: flex-start;
  }

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

  .plan-table {
    overflow-x: auto;
  }

  .plan-table-row {
    min-width: 760px;
  }
}

@media (max-width: 560px) {
  .inline-form {
    grid-template-columns: 1fr;
  }

  .ledger-summary {
    grid-template-columns: 1fr;
  }

  .quiet-hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
      url("/assets/hero-sen.webp") center / cover no-repeat;
  }
}

/* v2 refinements: restore original ThreeFold/Fuxi visual temperament. */
.site-header {
  background: rgba(255, 255, 255, 0.94);
}

.site-nav {
  gap: 6px;
}

.nav-cta {
  min-width: 108px;
  justify-content: center !important;
  text-align: center;
  white-space: nowrap;
}

.language-menu {
  position: relative;
  order: 999;
  flex: 0 0 auto;
}

.language-trigger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.language-icon {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-1px);
}

.language-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.language-panel button {
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.language-panel button[aria-pressed="true"] {
  background: #edf3ff;
  color: var(--blue);
}

.button,
.ghost-button,
.newsletter-form button,
.contact-form button,
.auth-panel button {
  min-width: 136px;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.1;
}

.small-button {
  min-width: 86px;
}

.hero .button,
.hero .ghost-button,
.cta-content .button,
.cta-actions .button,
.cta-actions .ghost-button {
  width: 156px;
  max-width: 100%;
}

.cta-content .button,
.cta-actions .button,
.cta-actions .ghost-button {
  width: auto;
  min-width: 156px;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.2) 100%),
    url("/assets/hero-sen.webp") center right / cover no-repeat;
}

.alt-light {
  background: #f5f7fa;
}

.product-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-card {
  overflow: hidden;
}

.image-visual {
  min-height: 210px;
  padding: 0;
  background: #0c111d;
}

.image-visual img,
.article-thumb img,
.large-visual-card img,
.tech-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tech-tile img {
  min-height: 210px;
}

.card-meta-line,
.media-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.article-thumb {
  height: 190px;
  background: #0c111d;
}

.media-card-body {
  padding: 24px;
}

.research-card {
  display: block;
}

.stage-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
}

.stage-card > span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stage-card h3 {
  margin: 0 0 10px;
}

.stage-card p {
  margin: 0;
  color: var(--muted);
}

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

.large-visual-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.09);
}

.large-visual-card img {
  height: 320px;
}

.large-visual-card figcaption {
  padding: 18px 20px;
  color: var(--muted);
  font-weight: 800;
}

.feature-with-image {
  align-items: center;
}

.section-actions {
  margin-top: 26px;
}

.site-footer {
  border-top: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(101, 175, 255, 0.18), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(42, 168, 118, 0.16), transparent 24%),
    #070b12;
  color: #fff;
}

.site-footer .footer-grid {
  padding-top: 70px;
}

.site-footer .brand,
.site-footer .footer-newsletter h2,
.site-footer .footer-links h3 {
  color: #fff;
}

.site-footer .footer-newsletter p,
.site-footer .footer-links a,
.site-footer .footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer .footer-links a:hover {
  color: #fff;
}

.site-footer .newsletter-form {
  align-items: stretch;
}

.site-footer .newsletter-form input {
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-footer .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer .newsletter-form button {
  width: 128px;
  min-width: 128px;
  min-height: 54px;
  background: #fff;
  color: #070b12;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer .form-note {
  color: #65afff;
}

@media (max-width: 1040px) {
  .product-card-grid,
  .platform-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-nav > a,
  .dropdown-trigger,
  .language-menu {
    width: 100%;
  }

  .language-trigger {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    justify-content: flex-start;
    padding-left: 14px;
  }

  .language-panel {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .product-card-grid,
  .platform-stage-grid {
    grid-template-columns: 1fr;
  }

  .large-visual-card img {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .hero .button,
  .hero .ghost-button,
  .button,
  .ghost-button {
    width: 100%;
  }

  .newsletter-form button,
  .site-footer .newsletter-form button {
    width: 100%;
    min-width: 100%;
  }
}


/* v3 refinements requested: wider content, dark header with logo.svg, left-aligned menu, stable hover menus, shorter spatial canvas. */
.site-header {
  background:
    linear-gradient(90deg, rgba(3, 10, 23, 0.98), rgba(8, 20, 38, 0.98) 48%, rgba(6, 24, 34, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(3, 10, 23, 0.18);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100% - 48px, var(--max));
  min-height: 72px;
  justify-content: flex-start;
  gap: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand {
  flex: 0 0 auto;
  color: #fff;
}

.brand-logo {
  display: block;
  width: 218px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.footer-brand .brand-logo {
  width: 238px;
  max-height: 60px;
}

.site-nav {
  justify-content: flex-start;
  gap: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.site-nav > a,
.dropdown-trigger {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  color: inherit;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.dropdown-trigger:hover,
.nav-dropdown:focus-within .dropdown-trigger,
.nav-dropdown:hover .dropdown-trigger {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.dropdown-caret {
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-1px);
  opacity: 0.84;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-actions .nav-cta {
  min-width: 112px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

.nav-actions .secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none;
}

.nav-actions .secondary-cta:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #fff !important;
}

.nav-actions .nav-cta:not(.secondary-cta) {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #fff !important;
  color: #06111f !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.nav-actions .nav-cta:not(.secondary-cta):hover {
  background: #eaf3ff !important;
  color: #06111f !important;
}

.nav-dropdown,
.language-menu {
  position: relative;
}

.dropdown-menu {
  top: calc(100% + 8px);
  border-color: rgba(228, 235, 243, 0.95);
}

.language-menu {
  order: 0;
}

.language-trigger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #fff;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.language-trigger:hover,
.language-menu:focus-within .language-trigger,
.language-menu:hover .language-trigger {
  background: #f1f5f9;
  color: #000;
}

.language-icon {
  width: 21px;
  height: 21px;
  stroke: #111827;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none;
}

.language-panel {
  top: calc(100% + 8px);
  right: 0;
  border-radius: 12px;
}

.canvas-section {
  min-height: 220px;
}

.spatial-wrap {
  height: 230px;
}

.spatial-caption {
  bottom: 24px;
}

.spatial-caption .section-title {
  font-size: clamp(1.55rem, 2.4vw, 2.5rem);
}

.site-footer .brand {
  color: #fff;
}

@media (max-width: 1180px) {
  .brand-logo {
    width: 196px;
  }

  .nav-left {
    gap: 16px;
  }

  .site-nav {
    font-size: 0.9rem;
  }

  .site-nav > a,
  .dropdown-trigger {
    padding-inline: 9px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    margin-left: 6px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-toggle span {
    background: #fff;
  }

  .nav-shell {
    width: min(100% - 32px, var(--max));
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: auto;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px 24px;
    background: #081426;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
    color: rgba(255, 255, 255, 0.86);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav > a,
  .dropdown-trigger {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    border-radius: 10px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    margin-top: 8px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions .secondary-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 170px;
  }

  .footer-brand .brand-logo {
    width: 210px;
  }

  .nav-actions .nav-cta:not(.secondary-cta) {
    min-width: 96px;
    padding-inline: 12px;
  }

  .canvas-section {
    min-height: 190px;
  }

  .spatial-wrap {
    height: 200px;
  }
}

@media (max-width: 500px) {
  .nav-actions .nav-cta:not(.secondary-cta) {
    display: none;
  }

  .brand-logo {
    width: 155px;
  }
}

/* v3 mobile cleanup for right-side language menu; override earlier v2 mobile rules. */
.nav-actions .language-menu {
  width: auto;
}

.nav-actions .language-trigger {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.nav-actions .language-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  width: max-content;
  margin-top: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* Production UI primitives: accessibility, legal content, account/security flows. */
.skip-link {
  position: fixed;
  z-index: 250;
  top: 12px;
  left: 16px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 2px solid #8ce1d8;
  border-radius: 10px;
  background: #fff;
  color: #071426;
  box-shadow: 0 16px 40px rgba(3, 10, 23, 0.28);
  font-weight: 800;
  transform: translateY(calc(-100% - 24px));
  transition: transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(14, 143, 127, 0.52);
  outline-offset: 3px;
}

:where(input, textarea, select)[aria-invalid="true"] {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
}

.site-nav a[aria-current="page"],
.site-nav a.is-active,
.dropdown-trigger[aria-expanded="true"],
.language-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.category-filter button[aria-pressed="true"],
[role="tab"][aria-selected="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

[hidden] {
  display: none !important;
}

.form-note,
.status-message,
.inline-status {
  min-height: 1.5em;
}

.form-note.is-error,
.form-note.error,
.status-message.is-error,
.status-message.error,
[role="alert"].error {
  color: #b42318;
}

.form-note.is-success,
.form-note.success,
.status-message.is-success,
.status-message.success {
  color: #087869;
}

/* Long-form legal, patent and policy pages. */
.legal-page,
.policy-page,
.patent-detail {
  background: #fbfcfd;
}

.legal-hero,
.policy-hero,
.patent-detail-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 10%, rgba(105, 213, 208, 0.18), transparent 28%),
    linear-gradient(145deg, #eef7f6, #fff 68%);
}

.legal-hero .container,
.policy-hero .container,
.patent-detail-hero .container {
  max-width: 1080px;
}

.legal-meta,
.policy-meta,
.patent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-layout,
.policy-layout,
.patent-detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(36px, 6vw, 84px);
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 72px 0 100px;
  align-items: start;
}

.legal-sidebar,
.policy-sidebar,
.legal-toc,
.patent-facts {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(12, 28, 48, 0.07);
}

.legal-sidebar a,
.policy-sidebar a,
.legal-toc a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-sidebar a:hover,
.policy-sidebar a:hover,
.legal-toc a:hover,
.legal-sidebar a[aria-current="true"],
.policy-sidebar a[aria-current="true"],
.legal-toc a[aria-current="true"] {
  background: #edf8f7;
  color: #087869;
}

.legal-content,
.policy-content,
.patent-document,
.legal-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(12, 28, 48, 0.07);
}

.legal-content h2,
.policy-content h2,
.patent-document h2 {
  margin: 2.25em 0 0.65em;
  scroll-margin-top: 110px;
  color: var(--ink);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.legal-content h2:first-child,
.policy-content h2:first-child,
.patent-document h2:first-child {
  margin-top: 0;
}

.legal-content h3,
.policy-content h3,
.patent-document h3 {
  margin: 1.8em 0 0.55em;
  scroll-margin-top: 110px;
}

.legal-content p,
.legal-content li,
.policy-content p,
.policy-content li,
.patent-document p,
.patent-document li {
  color: var(--ink-soft);
  line-height: 1.82;
}

.legal-content a,
.policy-content a,
.patent-document a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.patent-meta-grid,
.fact-grid,
.account-management,
.account-layout,
.request-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.patent-fact,
.fact-card,
.account-section,
.profile-card,
.session-card,
.request-panel,
.access-request-form,
.application-form,
.admin-panel-placeholder {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(12, 28, 48, 0.07);
}

.patent-fact span,
.fact-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.document-actions,
.legal-actions,
.account-actions,
.request-actions,
.copy-row,
.key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Prominent boundaries for security demos and sensitive account actions. */
.security-alert,
.security-warning,
.warning-banner,
.api-key-once,
.one-time-key,
.key-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid #f2c78f;
  border-radius: 14px;
  background: #fff8ed;
  color: #713b05;
}

.security-alert.is-critical,
.security-warning.is-critical,
.warning-banner.is-critical,
.danger-zone {
  border-color: #fecaca;
  background: #fff5f5;
  color: #8b1c13;
}

.security-alert h2,
.security-alert h3,
.security-warning h2,
.security-warning h3,
.warning-banner h2,
.warning-banner h3,
.api-key-once h2,
.api-key-once h3,
.one-time-key h2,
.one-time-key h3 {
  margin: 0 0 6px;
  color: currentColor;
  font-size: 1rem;
}

.security-alert p,
.security-warning p,
.warning-banner p,
.api-key-once p,
.one-time-key p {
  margin: 0;
  line-height: 1.65;
}

.alert-icon,
.warning-icon,
.key-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(181, 71, 8, 0.12);
  font-weight: 900;
}

.api-key-value,
.secret-value,
.key-reveal {
  min-width: 0;
  padding: 13px 15px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(113, 59, 5, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: #3f260d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  user-select: all;
}

.danger-zone {
  padding: 22px;
  border: 1px solid #fecaca;
  border-radius: 16px;
}

.access-request-form label,
.application-form label,
.account-section label,
.request-panel label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 700;
}

.access-request-form input,
.access-request-form textarea,
.access-request-form select,
.application-form input,
.application-form textarea,
.application-form select,
.account-section input,
.account-section textarea,
.account-section select,
.request-panel input,
.request-panel textarea,
.request-panel select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.access-request-form textarea,
.application-form textarea,
.request-panel textarea {
  min-height: 132px;
  resize: vertical;
}

/* Horizontal tables remain keyboard and touch reachable on narrow screens. */
.plan-table,
.comparison-table-wrap,
.responsive-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.plan-table:focus-visible,
.comparison-table-wrap:focus-visible,
.responsive-table-wrap:focus-visible {
  outline-offset: 5px;
}

/* Stable media boxes and intentional empty media states. */
.image-visual,
.article-thumb,
.editorial-image,
.large-visual-card,
.about-visual,
.article-cover,
.featured-research,
.patent-cover,
.media-frame {
  background-color: #dfe9ec;
}

.image-visual img,
.article-thumb img,
.editorial-image img,
.large-visual-card img,
.about-visual img,
.article-cover img,
.featured-research img,
.patent-cover img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  contain-intrinsic-size: 800px 500px;
}

.image-empty,
.media-empty,
.empty-media,
.empty-state-card {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed #b9c9d2;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef4f5, #f9fbfc);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 840px) {
  .legal-layout,
  .policy-layout,
  .patent-detail-grid,
  .patent-meta-grid,
  .fact-grid,
  .account-management,
  .account-layout,
  .request-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .legal-sidebar,
  .policy-sidebar,
  .legal-toc,
  .patent-facts {
    position: static;
  }

  .plan-table-row,
  .comparison-table {
    min-width: 700px;
  }
}

@media (max-width: 560px) {
  .legal-hero,
  .policy-hero,
  .patent-detail-hero {
    padding: 64px 0 42px;
  }

  .legal-layout,
  .policy-layout,
  .patent-detail-grid {
    width: min(100% - 28px, 1120px);
    gap: 22px;
    padding: 42px 0 64px;
  }

  .legal-content,
  .policy-content,
  .patent-document,
  .legal-card,
  .account-section,
  .profile-card,
  .session-card,
  .request-panel,
  .access-request-form,
  .application-form {
    padding: 20px;
  }

  .security-alert,
  .security-warning,
  .warning-banner,
  .api-key-once,
  .one-time-key,
  .key-warning {
    grid-template-columns: 1fr;
  }

  .document-actions > *,
  .legal-actions > *,
  .account-actions > *,
  .request-actions > *,
  .copy-row > *,
  .key-actions > * {
    width: 100%;
  }

  .plan-table-row,
  .comparison-table {
    min-width: 640px;
  }
}
