:root {
  --sensia-navy: #0b2d5b;
  --sensia-blue: #3b82f6;
  --sensia-gold: #d4af7c;

  --night-1: #040914;
  --night-2: #07111f;
  --night-3: #0a1930;

  --text: #f5f7fb;
  --muted: rgba(224, 231, 242, 0.64);
  --subtle: rgba(224, 231, 242, 0.38);
  --line: rgba(127, 166, 219, 0.18);

  --max-width: 1540px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 62% 28%, rgba(36, 98, 177, 0.16), transparent 31rem),
    radial-gradient(circle at 29% 45%, rgba(20, 58, 105, 0.18), transparent 35rem),
    var(--night-1);
  font-family: "Inter", system-ui, sans-serif;
}

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

button {
  font: inherit;
}

.sensia-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 8, 17, 0.13), rgba(3, 8, 17, 0.72)),
    radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.12), transparent 42rem);
}


/* Header */

.site-header {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 20;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 32px;
  height: 48px;
  object-fit: contain;
  object-position: center;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.11em;
}

.brand-copy small {
  font-family: "Source Serif 4", serif;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.2vw, 38px);
}

.primary-nav a,
.site-footer nav a {
  font-size: 12px;
  font-weight: 700;
  color: rgba(238, 243, 250, 0.75);
  transition: color 180ms ease;
}

.primary-nav a:hover,
.site-footer nav a:hover {
  color: white;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-button,
.language-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.header-login {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(126, 177, 255, 0.2);
  background: rgba(255,255,255,.035);
  color: rgba(240,246,255,.92);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-login:hover,
.header-login:focus-visible {
  border-color: rgba(126,177,255,.55);
  background: rgba(59,130,246,.12);
}
.header-login-owner {
  border-color: rgba(212,175,124,.35);
  color: #efd6b2;
  background: rgba(212,175,124,.055);
}

.header-explore {
  min-height: 34px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: #07111f;
}


/* Hero */

.hero {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 820px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(650px, 1.3fr);
  align-items: center;
  gap: clamp(34px, 5vw, 90px);
  padding: 70px 36px 106px 20px;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.7) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(94,164,255,.8) 0 1px, transparent 1px);
  background-position: 4% 18%, 0 0;
  background-size: 118px 118px, 173px 173px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 76%, transparent);
}

.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  left: 53%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(62, 139, 246, 0.12),
    rgba(20, 77, 151, 0.055) 38%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: rgba(185, 203, 228, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero-copy h1 {
  max-width: 630px;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(48px, 5.2vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(110deg, #ffffff 15%, #bcd6ff 65%, #7198ca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.button-primary {
  background: linear-gradient(135deg, #ffffff, #d9e8fa);
  color: #07111f;
  box-shadow: 0 11px 40px rgba(107, 163, 232, 0.12);
}

.button-secondary {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.82);
}

.hero-signature {
  margin-top: 48px;
  display: grid;
  gap: 6px;
}

.thinking-line {
  font-family: "Source Serif 4", serif;
  font-style: italic;
  font-size: 19px;
  color: rgba(244, 246, 250, 0.8);
}

.realization-line {
  color: rgba(207, 220, 239, 0.4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}


/* Knowledge system */

.knowledge-system {
  position: relative;
  z-index: 3;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(195px, 1fr) 144px minmax(195px, 1fr);
  align-items: center;
  gap: 18px;
}

.cards-column {
  height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cards-left {
  padding: 0 0 0 10px;
}

.cards-right {
  padding: 0 10px 0 0;
}

.cards-left .knowledge-card:nth-child(1),
.cards-right .knowledge-card:nth-child(1) {
  transform: translateY(20px);
}

.cards-left .knowledge-card:nth-child(2),
.cards-right .knowledge-card:nth-child(2) {
  transform: translateY(6px);
}

.cards-left .knowledge-card:nth-child(4),
.cards-right .knowledge-card:nth-child(4) {
  transform: translateY(-6px);
}

.cards-left .knowledge-card:nth-child(5),
.cards-right .knowledge-card:nth-child(5) {
  transform: translateY(-20px);
}

.knowledge-card {
  position: relative;
  min-height: 82px;
  padding: 13px 15px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(109, 158, 221, 0.17);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(12, 34, 65, 0.73), rgba(5, 18, 38, 0.47));
  backdrop-filter: blur(15px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 20px 45px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    translate 240ms ease;
}

.knowledge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(91, 150, 229, 0.075),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 240ms ease;
}

.knowledge-card:hover {
  translate: 0 -3px;
  border-color: rgba(108, 170, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 18px 55px rgba(30, 96, 185, 0.11);
}

.knowledge-card:hover::before {
  opacity: 1;
}

.card-number {
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(137, 176, 229, 0.28);
  font-size: 9px;
  font-weight: 700;
}

.card-title {
  color: rgba(224, 234, 247, 0.78);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.115em;
  font-weight: 700;
}

.card-description {
  margin-top: 7px;
  color: rgba(255,255,255,.86);
  font-family: "Source Serif 4", serif;
  font-size: 13px;
  line-height: 1.25;
}


/* Spine */

.spine {
  width: 130px;
  height: 600px;
  justify-self: center;
  position: relative;
  display: flex;
  justify-content: center;
}

.spine-aura {
  position: absolute;
  inset: 3% -80%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(42, 115, 213, 0.22),
      rgba(28, 80, 157, 0.07) 38%,
      transparent 70%
    );
  filter: blur(14px);
  animation: auraBreath 6s ease-in-out infinite;
}

.spine-line {
  position: absolute;
  width: 3px;
  height: 92%;
  top: 4%;
  border-radius: 999px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(89, 161, 255, 0.35) 12%,
      rgba(142, 190, 255, 0.88) 48%,
      rgba(91, 151, 235, 0.35) 86%,
      transparent
    );
  box-shadow:
    0 0 14px rgba(73, 144, 238, 0.45),
    0 0 42px rgba(42, 111, 203, 0.22);
}

.spine-node {
  --node-size: calc(32px + (var(--node-index) * 0.5px));

  position: absolute;
  left: 50%;
  top: calc(5% + (var(--node-index) - 1) * 9.65%);
  width: var(--node-size);
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(120, 177, 245, 0.33);
  background:
    linear-gradient(
      90deg,
      rgba(13, 38, 76, 0.22),
      rgba(121, 178, 245, 0.44),
      rgba(17, 49, 94, 0.22)
    );
  box-shadow:
    0 0 20px rgba(52, 126, 223, 0.19),
    inset 0 0 9px rgba(128, 184, 248, 0.13);
  animation: nodePulse 4s ease-in-out infinite;
  animation-delay: calc(var(--node-index) * -0.23s);
}

.energy {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b8d8ff;
  box-shadow:
    0 0 9px #74affc,
    0 0 25px rgba(67, 145, 246, .86);
  transform: translateX(-50%);
  animation: energyTravel 5.2s linear infinite;
}

.energy-b {
  animation-delay: -1.75s;
}

.energy-c {
  animation-delay: -3.45s;
}


/* Bottom hero */

.hero-index {
  position: absolute;
  z-index: 5;
  bottom: 34px;
  left: 50%;
  transform: translateX(-8%);
  display: grid;
  justify-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-index strong {
  font-size: 9px;
  letter-spacing: 0.23em;
  color: rgba(229, 238, 249, 0.67);
}

.hero-index span {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(174, 196, 224, 0.35);
}

.impact-axis {
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.impact-axis span {
  writing-mode: vertical-rl;
  color: rgba(180, 204, 233, 0.23);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
}


/* Benefit rail */

.benefit-rail {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.benefit-rail span {
  padding: 22px 24px;
  display: grid;
  gap: 5px;
  color: rgba(214, 225, 240, 0.43);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.benefit-rail b {
  font-weight: 500;
  color: rgba(239, 244, 249, 0.75);
}


/* Footer */

.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 122px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 25px;
  height: 37px;
  object-fit: contain;
}

.footer-brand div {
  display: grid;
  gap: 3px;
}

.footer-brand strong {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.footer-brand span {
  font-family: "Source Serif 4", serif;
  font-size: 9px;
  color: var(--muted);
}

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

.footer-meta {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 4px;
  color: rgba(203, 217, 235, 0.36);
  font-size: 8px;
  letter-spacing: 0.08em;
}


/* Motion */

@keyframes auraBreath {
  0%,
  100% {
    opacity: 0.72;
    scale: 0.93;
  }

  50% {
    opacity: 1;
    scale: 1.08;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.48;
    filter: brightness(0.8);
  }

  50% {
    opacity: 1;
    filter: brightness(1.3);
  }
}

@keyframes energyTravel {
  0% {
    top: 4%;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    top: 96%;
    opacity: 0;
  }
}


/* Tablet */

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(300px, 0.8fr) minmax(540px, 1.2fr);
    gap: 24px;
  }

  .knowledge-system {
    grid-template-columns: minmax(165px, 1fr) 100px minmax(165px, 1fr);
  }

  .spine {
    width: 90px;
  }
}


/* Mobile */

@media (max-width: 880px) {
  .site-header {
    width: min(calc(100% - 28px), var(--max-width));
    min-height: 74px;
  }

  .brand-copy small {
    display: none;
  }

  .header-explore {
    display: none;
  }

  .hero {
    width: min(calc(100% - 28px), var(--max-width));
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 0 80px;
    gap: 70px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 13vw, 66px);
    max-width: 700px;
  }

  .hero-description {
    max-width: 620px;
  }

  .knowledge-system {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .spine {
    position: absolute;
    left: 50%;
    width: 90px;
    height: 94%;
    top: 3%;
    transform: translateX(-50%);
    opacity: 0.24;
  }

  .cards-column {
    height: auto;
    gap: 12px;
    padding: 0;
  }

  .cards-right {
    margin-top: 12px;
  }

  .cards-left .knowledge-card:nth-child(n),
  .cards-right .knowledge-card:nth-child(n) {
    transform: none;
  }

  .knowledge-card {
    min-height: 88px;
    background: rgba(7, 22, 43, 0.9);
  }

  .hero-index {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 46px;
  }

  .impact-axis {
    display: none;
  }

  .benefit-rail {
    width: min(calc(100% - 28px), var(--max-width));
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .footer-meta {
    justify-self: start;
    justify-items: start;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
