/* =============================
   ARCACIPHER — COLOURS AND BASE
   ============================= */

:root {
  color-scheme: dark;
  --background-dark: #080b12;
  --background-mid: #101723;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(131, 169, 255, 0.32);
  --text-primary: #f4f6fa;
  --text-secondary: #c6ceda;
  --text-muted: #8f9aaa;
  --accent: #83a9ff;
  --accent-light: #b6ccff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 55rem 40rem at 95% 12%, rgba(43, 76, 145, 0.15), transparent 75%),
    radial-gradient(ellipse 45rem 35rem at 0% 65%, rgba(37, 61, 106, 0.08), transparent 75%),
    var(--background-dark);
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}

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

::selection {
  color: #ffffff;
  background: #345589;
}

.page-shell {
  width: calc(100% - 4rem);
  max-width: 1240px;
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--background-dark);
  background: var(--accent-light);
  border-radius: 6px;
  font-weight: 650;
  transform: translateY(calc(-100% - 2rem));
}

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

/* =============================
   HEADER AND NAVIGATION
   ============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 18, 0.94);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-symbol {
  width: 34px;
  height: 38px;
  color: var(--accent);
}

.brand-wordmark {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.brand-wordmark > span {
  color: var(--accent-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--accent-light);
}

/* =============================
   HERO AND SHARED TYPOGRAPHY
   ============================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding-block: 5.5rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 33px;
  padding: 0.45rem 0.8rem;
  color: var(--accent-light);
  background: rgba(131, 169, 255, 0.07);
  border: 1px solid rgba(131, 169, 255, 0.23);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(131, 169, 255, 0.09);
}

.hero-content > .status-badge {
  margin-bottom: 1.75rem;
}

.home-eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-light);
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-heading {
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.055em;
}

.home-heading > span {
  color: var(--accent-light);
}

.hero-lead {
  margin-bottom: 0.9rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.home-description {
  max-width: 35rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
}

.button-primary {
  color: #101a2c;
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(96, 139, 237, 0.12);
}

.button-primary:hover {
  background: #d0dfff;
  border-color: #d0dfff;
  box-shadow: 0 6px 24px rgba(96, 139, 237, 0.2);
}

.button-secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.16);
}

.button-secondary:hover {
  background: rgba(131, 169, 255, 0.07);
  border-color: var(--glass-border-hover);
}

.hero-note {
  margin-top: 1.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* =============================
   DECORATIVE STORAGE VISUAL
   No image files are required.
   ============================= */

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
  pointer-events: none;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(131, 169, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 169, 255, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 70%);
}

.visual-orbit {
  position: absolute;
  top: 48%;
  left: 50%;
  border: 1px solid rgba(131, 169, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.visual-orbit-outer {
  width: 94%;
  height: 94%;
}

.visual-orbit-inner {
  width: 74%;
  height: 74%;
  border-color: rgba(131, 169, 255, 0.08);
}

.visual-orbit-outer::before,
.visual-orbit-inner::after {
  position: absolute;
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(131, 169, 255, 0.35);
}

.visual-orbit-outer::before {
  top: 50%;
  left: -3px;
}

.visual-orbit-inner::after {
  top: -3px;
  left: 50%;
  opacity: 0.6;
}

.visual-glow {
  position: absolute;
  inset: 5%;
  background: radial-gradient(ellipse at center, rgba(62, 111, 213, 0.18), transparent 70%);
}

.vault-stack {
  position: absolute;
  top: 22%;
  left: 19%;
  width: 59%;
  height: 59%;
  transform: rotate(-9deg);
}

.vault-layer {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(131, 169, 255, 0.25);
  border-radius: 24px;
}

.vault-layer-back {
  background: linear-gradient(145deg, #1a2b46, #0b1422);
  transform: translate(15%, -15%) rotate(9deg) scale(0.96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.vault-layer-middle {
  background: linear-gradient(145deg, #233756, #101c2e);
  transform: translate(7.5%, -7.5%) rotate(4.5deg) scale(0.98);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.vault-layer-front {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(172, 203, 255, 0.12), transparent 55%),
    linear-gradient(145deg, #18283f, #0c1421 75%);
  border-color: rgba(160, 192, 255, 0.48);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vault-layer-front::after {
  position: absolute;
  top: 13%;
  right: 12%;
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(131, 169, 255, 0.4);
}

.vault-topline {
  position: absolute;
  top: 11%;
  left: 12%;
  color: var(--accent-light);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.vault-symbol {
  width: 34%;
  height: auto;
  color: var(--accent-light);
  filter: drop-shadow(0 0 16px rgba(131, 169, 255, 0.2));
}

.vault-baseline {
  position: absolute;
  bottom: 12%;
  left: 12%;
  color: #a8b8d0;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
}

.visual-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--text-muted);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

/* =============================
   VISION AND VALUES
   ============================= */

.values-section {
  padding-top: 4.5rem;
  border-top: 1px solid var(--glass-border);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 0 4rem;
}

.section-intro > .home-eyebrow {
  grid-column: 1 / -1;
}

.section-heading {
  color: var(--text-primary);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-description {
  max-width: 39rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.value-card {
  min-width: 0;
  padding: 1.8rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(16, 23, 35, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: border-color 180ms ease;
}

.value-card:hover {
  border-color: var(--glass-border-hover);
}

.value-number {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.value-number::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(131, 169, 255, 0.25), transparent);
}

.value-title {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.value-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* =============================
   LAUNCH STATUS
   ============================= */

.launch-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-block: 5rem;
  padding: 2.75rem;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(86, 126, 217, 0.1), transparent 65%),
    var(--background-mid);
  border: 1px solid rgba(131, 169, 255, 0.17);
  border-radius: 18px;
}

.launch-copy {
  flex: 1;
  min-width: 0;
}

.launch-copy .section-heading {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 2.5vw, 2rem);
}

.launch-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
  flex-shrink: 0;
  padding-left: 2.5rem;
  border-left: 1px solid var(--glass-border);
}

.developer-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.developer-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* =============================
   FOOTER
   ============================= */

.site-footer {
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.2rem;
}

.footer-wordmark {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.footer-brand p,
.footer-details {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.9;
}

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

.footer-details p {
  margin-bottom: 0.3rem;
}

.footer-details a {
  display: inline-block;
}

.site-footer a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* =============================
   TABLETS
   ============================= */

@media (max-width: 1000px) {
  .hero {
    gap: 1.5rem;
    padding-block: 4.5rem;
  }

  .home-heading {
    font-size: clamp(2.5rem, 4.6vw, 3rem);
  }

  .hero-lead {
    font-size: 1.125rem;
  }

  .section-intro {
    gap: 0 2.5rem;
  }

  .value-card {
    padding: 1.5rem;
  }

  .launch-panel {
    gap: 2rem;
    padding: 2rem;
  }

  .launch-aside {
    padding-left: 1.5rem;
  }
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 4rem;
  }

  .hero-content {
    max-width: 42rem;
  }

  .home-heading {
    font-size: clamp(2.5rem, 7vw, 3.75rem);
  }

  .hero-visual {
    max-width: 25rem;
    margin-inline: auto;
  }

  .section-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-intro .section-description {
    margin-top: 1.25rem;
  }

  .values-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .value-number {
    margin-bottom: 1.25rem;
  }

  .value-card {
    padding: 1.75rem;
  }

  .launch-panel {
    flex-direction: column;
    align-items: stretch;
    margin-block: 4rem;
  }

  .launch-aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0 0;
    border-top: 1px solid var(--glass-border);
    border-left: 0;
  }
}

/* =============================
   PHONES
   ============================= */

@media (max-width: 600px) {
  html {
    scroll-padding-top: 1.5rem;
  }

  .page-shell {
    width: calc(100% - 2.5rem);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 80px;
    gap: 1rem;
  }

  .brand-symbol {
    width: 28px;
    height: 32px;
  }

  .brand-wordmark {
    font-size: 1.3rem;
  }

  .site-nav {
    gap: 1.2rem;
  }

  .site-nav a {
    font-size: 0.8125rem;
  }

  .hero {
    gap: 1rem;
    padding-block: 3rem;
  }

  .hero-content > .status-badge {
    margin-bottom: 1.5rem;
  }

  .home-eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }

  .home-heading {
    font-size: clamp(2.125rem, 8.8vw, 3rem);
  }

  .home-description {
    font-size: 0.9375rem;
    line-height: 1.8;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .button {
    min-height: 50px;
  }

  .hero-visual {
    max-width: 21rem;
    margin-top: 0.75rem;
  }

  .vault-layer {
    border-radius: 18px;
  }

  .vault-baseline {
    font-size: 0.625rem;
  }

  .values-section {
    padding-top: 3rem;
  }

  .section-heading {
    font-size: 1.875rem;
  }

  .values-grid {
    margin-top: 2rem;
  }

  .value-card {
    padding: 1.5rem;
  }

  .launch-panel {
    gap: 1.5rem;
    margin-block: 3rem;
    padding: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
    padding-block: 1.75rem;
  }

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

@media (max-width: 420px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding-block: 0.85rem;
  }

  .site-nav {
    gap: 2rem;
  }
}

/* Respect the visitor's reduced-motion setting. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
