:root {
  --bg: #05090f;
  --bg-2: #09111b;
  --glass: rgba(12, 25, 38, 0.58);
  --glass-2: rgba(16, 34, 50, 0.72);
  --ink: #ffffff;
  --muted: #aab9c9;
  --soft: #e7f7ff;
  --cyan: #20d9ff;
  --cyan-2: #7ee8ff;
  --blue: #2778ff;
  --line: rgba(255, 255, 255, 0.12);
  --line-cyan: rgba(32, 217, 255, 0.46);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  --glow: 0 0 54px rgba(32, 217, 255, 0.24);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(32, 217, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(39, 120, 255, 0.14), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, #03060b 52%, #07111a 100%);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(32, 217, 255, 0.1) 44%, rgba(39, 120, 255, 0.08) 52%, transparent 65%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 96px 96px, 96px 96px;
  opacity: 0.48;
  transform: translateX(-35%);
  animation: grid-drift 14s linear infinite;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 690px;
  margin-top: 16px;
  font-size: clamp(3.1rem, 8vw, 7.7rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.6rem);
}

h3 {
  font-size: 1.16rem;
}

.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: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 74px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-cyan);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 217, 255, 0.22), rgba(39, 120, 255, 0.12)),
    rgba(7, 17, 26, 0.76);
  color: var(--cyan-2);
  box-shadow: var(--glow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.76);
  backdrop-filter: blur(18px);
}

.site-nav a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(32, 217, 255, 0.12);
  color: var(--ink);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.82);
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 80svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 9, 15, 0.99) 0%, rgba(5, 9, 15, 0.84) 38%, rgba(5, 9, 15, 0.22) 72%, rgba(5, 9, 15, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 9, 15, 0) 62%, var(--bg) 100%),
    url("assets/olofsors-cyber-apps.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(32, 217, 255, 0.08), transparent 42%, rgba(39, 120, 255, 0.12)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 18px);
  opacity: 0.5;
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 126px;
}

.eyebrow {
  color: var(--cyan-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 640px;
  margin-top: 22px;
  color: var(--soft);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--cyan);
  color: #001016;
  box-shadow: var(--glow);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--cyan-2);
}

.button-secondary {
  border-color: var(--line-cyan);
  background: rgba(12, 25, 38, 0.72);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(32, 217, 255, 0.12);
}

.hero-nodes {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100% - 32px, var(--max));
  transform: translateX(-50%);
}

.hero-nodes div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line-cyan);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-nodes span,
.card-index,
.process-card span,
.system-row span {
  color: var(--cyan-2);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-nodes strong {
  display: block;
  margin-top: 12px;
}

.section {
  padding: 96px 0;
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.orbit-section {
  padding-top: 56px;
  background: linear-gradient(180deg, rgba(32, 217, 255, 0.04), transparent);
}

.orbit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: end;
}

.section-copy,
.section-heading p:not(.eyebrow),
.contact-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
}

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

.glass-card,
.process-card,
.systems-panel,
.contact-panel,
.legal-content section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(32, 217, 255, 0.08), transparent 42%),
    var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-card,
.process-card {
  min-height: 292px;
  padding: 22px;
}

.glass-card h3,
.process-card h3 {
  margin-top: 44px;
}

.glass-card p,
.process-card p {
  margin-top: 16px;
  color: var(--muted);
}

.systems-section {
  background:
    linear-gradient(180deg, transparent, rgba(39, 120, 255, 0.045), transparent),
    linear-gradient(135deg, transparent 49.8%, rgba(32, 217, 255, 0.14) 50%, transparent 50.2%);
}

.systems-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: 48px;
  align-items: start;
}

.systems-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(39, 120, 255, 0.12), transparent 38%),
    var(--glass-2);
}

.system-row {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.system-row:last-child {
  border-bottom: 0;
}

.system-row strong {
  line-height: 1.35;
}

.geometry-section {
  padding-top: 50px;
}

.geometry-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.geometry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.geometry-tags span {
  padding: 12px 14px;
  border: 1px solid var(--line-cyan);
  border-radius: 8px;
  background: rgba(12, 25, 38, 0.66);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.contact-section {
  padding-top: 50px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-color: var(--line-cyan);
  background:
    linear-gradient(115deg, rgba(32, 217, 255, 0.16), transparent 36%),
    linear-gradient(280deg, rgba(39, 120, 255, 0.14), transparent 42%),
    rgba(10, 22, 34, 0.82);
}

.contact-panel > div {
  display: grid;
  gap: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.site-footer p {
  margin-top: 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:not(.brand) {
  color: var(--soft);
}

.site-footer a:not(.brand):hover,
.site-footer a:not(.brand):focus-visible {
  color: var(--cyan-2);
  outline: none;
}

.copyright {
  text-align: right;
}

.legal-main {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  padding: 62px 0 76px;
}

.legal-hero {
  padding: 54px 0 46px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.legal-hero p:last-child {
  margin-top: 18px;
  color: var(--muted);
}

.legal-content {
  display: grid;
  gap: 24px;
  padding-top: 38px;
}

.legal-content section {
  padding: 24px;
}

.legal-content h2 {
  font-size: 1.14rem;
}

.legal-content p {
  margin-top: 12px;
  color: var(--muted);
}

.legal-content a {
  color: var(--cyan-2);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes grid-drift {
  0% {
    transform: translateX(-35%);
  }
  100% {
    transform: translateX(35%);
  }
}

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

  .orbit-grid,
  .systems-layout,
  .geometry-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel .button {
    justify-self: start;
  }

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

  .copyright {
    text-align: left;
  }
}

@media (max-width: 740px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    max-width: calc(100% - 58px);
  }

  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(310px, calc(100vw - 32px));
    padding: 8px;
    background: rgba(5, 10, 16, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: 88svh;
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 54px;
    padding-bottom: 284px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 5rem);
    overflow-wrap: anywhere;
  }

  .hero-nodes {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .card-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .glass-card,
  .process-card,
  .system-row,
  .legal-content section {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
