/* ASUKSystems — static publication page */

:root {
  --bg: #050b13;
  --bg-soft: #091525;
  --panel: rgba(13, 29, 49, 0.72);
  --panel-solid: #0d1d31;
  --text: #f4f7fb;
  --muted: #a9b7c8;
  --line: rgba(177, 208, 238, 0.17);
  --accent: #64c8ff;
  --accent-2: #78ffd6;
  --accent-dark: #08243a;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(23, 112, 164, 0.18), transparent 32rem),
    linear-gradient(180deg, #07111f 0%, var(--bg) 34%, #03070c 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -6rem;
  padding: 0.75rem 1rem;
  color: #00131f;
  background: var(--accent);
  border-radius: 0.5rem;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one {
  top: 16rem;
  right: -10rem;
  background: var(--accent);
}

.ambient-two {
  bottom: 8rem;
  left: -12rem;
  background: var(--accent-2);
}

.site-header,
main,
footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 200, 255, 0.45);
  border-radius: 12px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(100, 200, 255, 0.12), rgba(120, 255, 214, 0.04));
  box-shadow: inset 0 0 24px rgba(100, 200, 255, 0.06);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.015em;
}

.brand small {
  margin-top: -0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

main {
  padding-bottom: 5rem;
}

.hero {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 5rem;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 780px;
  margin: 2rem 0 0;
  color: #c8d4e1;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  color: #00131f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.035);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 5rem 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.record-grid div {
  min-height: 112px;
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-grid dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-grid dd {
  margin: 0;
  font-weight: 750;
}

.record-grid a {
  color: var(--accent);
}

.status {
  color: var(--accent-2);
}

.notice {
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(120, 255, 214, 0.25);
  border-radius: 16px;
  color: #d4e2ed;
  background: rgba(120, 255, 214, 0.045);
}

.notice strong {
  color: var(--accent-2);
}

.content-section {
  padding: 7rem 0 1rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: start;
  gap: 1rem;
  margin-bottom: 2.3rem;
}

.section-heading > span {
  padding-top: 0.15rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.kicker {
  margin-bottom: 0.7rem;
}

.prose {
  max-width: 860px;
  margin-left: 86px;
}

.prose p {
  margin: 0 0 1.45rem;
  color: #c4d0dc;
  font-size: 1.075rem;
}

.prose p:first-child {
  color: var(--text);
  font-size: 1.22rem;
}

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

.card,
.question-list article,
.terms-grid article,
.method-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18, 39, 64, 0.78), rgba(7, 16, 28, 0.74));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card {
  min-height: 290px;
  padding: 1.5rem;
}

.card-number {
  margin: 0 0 3.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.card h3,
.question-list h3,
.terms-grid h3,
.method-note h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.card p:last-child,
.question-list p,
.terms-grid p,
.method-note p {
  margin: 0;
  color: var(--muted);
}

.question-list,
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.question-list article,
.terms-grid article {
  padding: 1.45rem;
}

.method-note {
  margin-top: 1rem;
  padding: 1.7rem;
  border-color: rgba(100, 200, 255, 0.28);
}

.declaration {
  position: relative;
}

.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 860px;
  margin: 2.5rem 0 0 86px;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.signature-mark {
  width: 58px;
  height: 58px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #00131f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 0.85rem;
  font-weight: 950;
}

.signature strong,
.signature span,
.signature a {
  display: block;
}

.signature span {
  color: var(--muted);
  font-size: 0.9rem;
}

.signature a {
  margin-top: 0.2rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.terms-grid a {
  color: var(--accent);
}

.version-table-wrap {
  overflow-x: auto;
  margin-left: 86px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0.2rem 0 0;
}

footer a {
  color: var(--accent);
}

.footer-right {
  text-align: right;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

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

  .question-list,
  .terms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.6rem);
  }

  .hero {
    padding-top: 4rem;
  }

  .record-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading > span {
    padding-top: 0;
  }

  .prose,
  .signature,
  .version-table-wrap {
    margin-left: 0;
  }

  .content-section {
    padding-top: 5rem;
  }

  footer {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: transform 160ms ease, border-color 160ms ease;
  }

  .ambient {
    animation: drift 16s ease-in-out infinite alternate;
  }

  .ambient-two {
    animation-delay: -7s;
  }

  @keyframes drift {
    from {
      transform: translate3d(-2rem, -1rem, 0) scale(0.95);
    }
    to {
      transform: translate3d(2rem, 2rem, 0) scale(1.08);
    }
  }
}
