﻿:root {
  --ink: #121826;
  --muted: #58657a;
  --soft: #eef3f7;
  --paper: #f8fafc;
  --white: #ffffff;
  --line: #d8e1ea;
  --teal: #0f9f8f;
  --blue: #2563eb;
  --amber: #c97916;
  --plum: #7446b8;
  --dark: #111827;
  --panel: #172033;
  --radius: 8px;
  --shadow: 0 22px 58px rgba(18, 24, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
  padding: 0 36px;
  border-bottom: 1px solid rgba(216, 225, 234, 0.88);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(18, 24, 38, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--dark);
  border-radius: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #3a4659;
  font-size: 14px;
}

.nav-product-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-product-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-product-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-product-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  width: 324px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-product-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav-product-menu:hover .nav-product-panel,
.nav-product-menu:focus-within .nav-product-panel,
.nav-product-menu.is-open .nav-product-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-product-panel a {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 6px;
}

.nav-product-panel a:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav-product-panel strong {
  font-size: 14px;
}

.nav-product-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.nav a:hover,
.header-action:hover {
  color: var(--blue);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  font-weight: 780;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(13, 19, 31, 0.98), rgba(13, 19, 31, 0.84) 48%, rgba(13, 19, 31, 0.38)),
    linear-gradient(180deg, rgba(13, 19, 31, 0.1), #0d131f 94%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: linear-gradient(180deg, rgba(13, 19, 31, 0), #0d131f);
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mesh {
  position: absolute;
  right: 3vw;
  top: 9vh;
  width: min(58vw, 760px);
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 12px;
  transform: perspective(900px) rotateY(-12deg) rotateX(7deg);
  opacity: 0.92;
}

.mesh span {
  aspect-ratio: 1.15 / 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 159, 143, 0.18), rgba(37, 99, 235, 0.1)),
    rgba(255, 255, 255, 0.04);
}

.signal-card {
  position: absolute;
  right: 8vw;
  width: min(380px, 32vw);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.signal-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  color: #ffffff;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.25;
}

.signal-a {
  top: 20vh;
  border-color: rgba(15, 159, 143, 0.55);
}

.signal-b {
  top: 39vh;
  right: 15vw;
  border-color: rgba(37, 99, 235, 0.55);
}

.signal-c {
  top: 58vh;
  right: 6vw;
  border-color: rgba(201, 121, 22, 0.55);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 940px;
  padding: 104px 40px 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 910px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-subcopy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.hero-actions,
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 850;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
}

.button.secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.proof-strip {
  margin-top: 38px;
}

.proof-strip span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.section {
  padding: 94px 40px;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 34px;
}

.thesis-section,
.thesis-grid,
.product-grid,
.use-case-grid,
.positioning-grid,
.ops-grid,
.workflow-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.thesis-grid {
  grid-template-columns: repeat(3, 1fr);
}

.thesis-grid article,
.product-card,
.use-case-grid article,
.positioning-grid article,
.ops-grid article,
.workflow-grid article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.thesis-grid article {
  padding: 26px;
}

.thesis-grid h3 {
  margin-bottom: 10px;
}

.thesis-points {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.thesis-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.thesis-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.products-section {
  background: #eef3f7;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  padding: 26px;
  box-shadow: var(--shadow);
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.product-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  color: #ffffff;
  font-weight: 900;
}

.temporal-card .product-mark {
  background: var(--teal);
}

.matrixdb-card .product-mark {
  background: var(--blue);
}

.matrixkv-card .product-mark {
  background: var(--amber);
}

.status-pill {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #43516a;
  background: #f7fafc;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

dl {
  margin: 22px 0 0;
}

dl div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: #202b3d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.architecture-section {
  color: #ffffff;
  background: var(--dark);
}

.architecture-section p,
.architecture-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.architecture-board {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 0.95fr 1.35fr 0.95fr;
  gap: 18px;
}

.arch-lane {
  min-height: 360px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.arch-lane h3 {
  color: #ffffff;
}

.arch-lane > span,
.engine-row {
  display: block;
  margin-top: 12px;
  padding: 13px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.engine-row strong,
.engine-row small {
  display: block;
}

.engine-row small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.temporal-row {
  border-left: 4px solid var(--teal);
}

.matrixdb-row {
  border-left: 4px solid var(--blue);
}

.matrixkv-row {
  border-left: 4px solid var(--amber);
}

.workflow-grid article {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  color: var(--ink);
}

.workflow-grid ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.72;
}

.use-case-section {
  background: var(--paper);
}

.use-case-grid {
  grid-template-columns: repeat(3, 1fr);
}

.use-case-grid article {
  padding: 24px;
}

.use-case-grid code {
  display: inline-block;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 6px;
  color: #1d4ed8;
  background: #eef6ff;
  font-weight: 800;
  white-space: normal;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #46566f;
  background: #f3f6fa;
  font-size: 13px;
}

.cloud-section {
  color: #ffffff;
  background: #142033;
}

.cloud-section p {
  color: rgba(255, 255, 255, 0.72);
}

.ops-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ops-grid article {
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.ops-grid span {
  color: var(--teal);
  font-weight: 900;
}

.ops-grid h3 {
  color: #ffffff;
  margin-top: 12px;
}

.positioning-section {
  background: var(--white);
}

.positioning-grid {
  grid-template-columns: repeat(3, 1fr);
}

.positioning-grid article {
  padding: 26px;
}

.blog-preview-section {
  background: #eef3f7;
}

.blog-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-grid article,
.blog-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.blog-grid article {
  padding: 26px;
}

.blog-grid span,
.blog-list span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-action {
  margin-top: 28px;
  text-align: center;
}

.blog-detail {
  background:
    linear-gradient(115deg, rgba(13, 19, 31, 0.98), rgba(13, 19, 31, 0.76)),
    linear-gradient(45deg, rgba(116, 70, 184, 0.52), transparent 56%);
}

.blog-index-section {
  background: var(--white);
}

.blog-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.blog-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.article {
  background: var(--white);
}

.article-hero {
  padding: 120px 40px 72px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(13, 19, 31, 0.98), rgba(13, 19, 31, 0.76)),
    linear-gradient(45deg, rgba(15, 159, 143, 0.54), transparent 58%);
}

.article-hero h1,
.article-hero p {
  max-width: 980px;
}

.article-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.article-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 40px;
  border-bottom: 1px solid var(--line);
}

.article-section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.article-section p {
  font-size: 17px;
}

.article-callout {
  margin-top: 22px;
  padding: 22px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #eef9f7;
  color: #233246;
  line-height: 1.65;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.article-grid > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
}

.article-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
}

.article-flow span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7fafc;
  color: #263449;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.architecture-diagram {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.architecture-diagram.two-column {
  grid-template-columns: 1fr 1fr;
}

.diagram-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.diagram-panel.strong {
  border-color: rgba(17, 128, 111, 0.35);
  background: #edf7f4;
}

.diagram-panel h3 {
  margin-bottom: 14px;
}

.flow-stack,
.sequence-diagram,
.diagram-row {
  display: grid;
  gap: 10px;
}

.flow-stack span,
.sequence-diagram span,
.diagram-row span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #263449;
  font-weight: 850;
  text-align: center;
  line-height: 1.35;
}

.diagram-row {
  grid-template-columns: repeat(3, 1fr);
}

.diagram-row.wide span {
  background: #eef6f3;
}

.diagram-row small,
.flow-stack small,
.sequence-diagram small {
  color: var(--muted);
  font-weight: 700;
}

.sequence-diagram {
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
}

.code-slab {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111816;
}

.code-slab pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #eef8f3;
  font-size: 14px;
  line-height: 1.55;
}

.status-note {
  margin-top: 16px;
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: #eef6f3;
}

.example-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-list {
  color: var(--muted);
  line-height: 1.75;
}

.article-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 40px 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.secondary.light {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.contact-section {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
}

.contact-panel {
  padding: 28px;
}

.contact-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.contact-panel .button.primary {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 850;
}

.text-link:hover {
  text-decoration: underline;
}

.product-hero {
  min-height: 560px;
  display: grid;
  align-content: end;
  padding: 120px 40px 74px;
  color: #ffffff;
  background: var(--dark);
}

.product-hero h1 {
  max-width: 1000px;
}

.product-hero p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.temporal-detail {
  background:
    linear-gradient(115deg, rgba(13, 19, 31, 0.98), rgba(13, 19, 31, 0.78)),
    linear-gradient(45deg, rgba(15, 159, 143, 0.55), transparent 54%);
}

.matrixdb-detail {
  background:
    linear-gradient(115deg, rgba(13, 19, 31, 0.98), rgba(13, 19, 31, 0.78)),
    linear-gradient(45deg, rgba(37, 99, 235, 0.55), transparent 54%);
}

.matrixkv-detail {
  background:
    linear-gradient(115deg, rgba(13, 19, 31, 0.98), rgba(13, 19, 31, 0.78)),
    linear-gradient(45deg, rgba(201, 121, 22, 0.55), transparent 54%);
}

.detail-section {
  background: var(--white);
}

.alt-section {
  background: #eef3f7;
}

.advantage-section {
  background: var(--white);
}

.scenario-section {
  background: #f3f7fb;
}

.detail-grid,
.capability-grid,
.advantage-grid,
.scenario-board {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.detail-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.detail-grid article,
.capability-grid article,
.advantage-grid article,
.scenario-board > div,
.comparison-table,
.product-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.detail-grid article,
.capability-grid article,
.advantage-grid article,
.scenario-board > div {
  padding: 26px;
}

.advantage-grid {
  grid-template-columns: repeat(4, 1fr);
}

.advantage-grid span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 900;
}

.scenario-board {
  grid-template-columns: repeat(3, 1fr);
}

.scenario-board > div {
  min-height: 190px;
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 20px;
}

.flow-diagram span {
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #263449;
  background: #f7fafc;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.detail-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.78;
}

.capability-grid {
  grid-template-columns: repeat(3, 1fr);
}

.comparison-table {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px;
  overflow-x: auto;
}

.comparison-table h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.product-cta {
  max-width: 960px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.product-cta h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.product-cta p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1040px) {
  .site-header {
    padding: 0 22px;
  }

  .nav {
    display: none;
  }

  .hero-copy {
    padding: 112px 24px 64px;
  }

  .mesh {
    width: 80vw;
    right: -18vw;
    opacity: 0.48;
  }

  .signal-card {
    display: none;
  }

  .section {
    padding: 72px 24px;
  }

  .thesis-grid,
  .product-grid,
  .architecture-board,
  .use-case-grid,
  .positioning-grid,
  .blog-grid,
  .ops-grid,
  .workflow-grid,
  .contact-section,
  .detail-grid,
  .capability-grid,
  .advantage-grid,
  .scenario-board {
    grid-template-columns: 1fr;
  }

  .arch-lane {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }

  .blog-list article {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .article-flow,
  .architecture-diagram.two-column,
  .sequence-diagram,
  .diagram-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-action {
    display: none;
  }

  h1 {
    font-size: 43px;
  }

  .hero-subcopy {
    font-size: 18px;
  }

  .product-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .product-hero {
    min-height: 520px;
    padding: 96px 24px 58px;
  }

  .flow-diagram {
    grid-template-columns: 1fr;
  }

  .article-hero,
  .article-section,
  .article-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}




.access-hero {
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(13, 19, 31, 0.98), rgba(13, 19, 31, 0.78)),
    radial-gradient(circle at 78% 24%, rgba(15, 159, 143, 0.34), transparent 32%),
    #0d131f;
}

.hero-copy.narrow {
  max-width: 900px;
}

.access-flow-grid,
.access-admin-grid,
.access-note-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.access-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.access-admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.access-flow-grid article,
.access-admin-grid article,
.access-preview,
.access-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.access-flow-grid article,
.access-admin-grid article {
  min-height: 220px;
  padding: 24px;
}

.access-flow-grid code {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #17324d;
  background: #f6f9fc;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.key-request-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.access-form,
.access-preview {
  padding: 24px;
}

.access-form {
  display: grid;
  gap: 14px;
}

.access-form label,
.access-form fieldset {
  display: grid;
  gap: 7px;
  color: #263449;
  font-size: 13px;
  font-weight: 820;
}

.access-form input,
.access-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #f8fafc;
  font: inherit;
}

.access-form fieldset {
  margin: 4px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.access-form fieldset label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 720;
}

.access-form fieldset input {
  width: 16px;
  min-height: 16px;
}

.access-preview pre {
  min-height: 300px;
  overflow: auto;
  margin: 14px 0 16px;
  padding: 16px;
  border-radius: 8px;
  background: #101828;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
}

.access-note-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.access-note-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.access-note-grid strong,
.access-note-grid span {
  display: block;
}

.access-note-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.soft-band {
  background: #f3f7fb;
}

@media (max-width: 1040px) {
  .access-flow-grid,
  .access-admin-grid,
  .access-note-grid,
  .key-request-layout {
    grid-template-columns: 1fr;
  }
}


.reference-section {
  background: #eef5f8;
}

.access-reference-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.access-reference-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.access-reference-grid h3 {
  margin-top: 0;
}

@media (max-width: 1040px) {
  .access-reference-grid {
    grid-template-columns: 1fr;
  }
}


/* Account access card (sign in / register) */
.auth-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.auth-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.auth-tab {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.is-on {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(18, 24, 38, 0.14);
}

.provider-buttons {
  display: grid;
  gap: 10px;
}

.provider-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.provider-btn:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 20px rgba(18, 24, 38, 0.08);
  transform: translateY(-1px);
}

.provider-btn span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.provider-btn.github {
  background: #1b2330;
  color: #ffffff;
  border-color: #1b2330;
}

.provider-btn.github span {
  color: #aab4c2;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-register-only {
  display: none;
}

.auth-card.is-register .auth-register-only {
  display: grid;
}

.auth-2col {
  gap: 11px;
}

.auth-card.is-register .auth-2col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 620px) {
  .auth-card.is-register .auth-2col {
    grid-template-columns: 1fr;
  }
}
