/* Qubit — dark theme matched to brand logos */

:root {
  --bg: #000000;
  --bg-elevated: #0c0c0f;
  --bg-panel: #121218;
  --ink: #ececf1;
  --ink-soft: #a8a8b3;
  --ink-faint: #6e6e78;
  --purple: #3c2d7b;
  --purple-bright: #5b4aaf;
  --purple-glow: rgba(60, 45, 123, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --font: "Quicksand", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

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

body {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: #b7a8f0;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #d2c8ff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--purple);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

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

.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 75% 10%, var(--purple-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(60, 45, 123, 0.22), transparent 50%),
    var(--bg);
}

.field__grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 15%, transparent 75%);
}

.shell {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 10;
  padding: 1.35rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: block;
  height: 2rem;
  width: auto;
  text-decoration: none;
}

.brand-mark img {
  height: 100%;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.lang {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang a {
  color: var(--ink-faint);
  text-decoration: none;
}

.lang a[aria-current="page"] {
  color: var(--ink);
  pointer-events: none;
}

.lang a:not([aria-current="page"]):hover {
  color: #b7a8f0;
}

.lang__sep {
  color: #3a3a42;
  user-select: none;
}

@media (max-width: 720px) {
  .site-header {
    padding: 1.1rem 0;
  }

  .nav {
    gap: 0.85rem;
  }

  .nav > a {
    display: none;
  }

  .brand-mark {
    height: 1.65rem;
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__orbits {
  position: absolute;
  right: -10%;
  top: 6%;
  width: min(72vw, 620px);
  aspect-ratio: 1;
  opacity: 0;
  animation: reveal-orbit 1.4s var(--ease) 0.2s forwards;
}

.hero__orbits circle,
.hero__orbits path,
.hero__orbits ellipse {
  fill: none;
  stroke: var(--purple-bright);
  stroke-width: 1;
}

.hero__orbits .ring-a {
  stroke-opacity: 0.35;
  animation: spin 48s linear infinite;
  transform-origin: center;
}

.hero__orbits .ring-b {
  stroke-opacity: 0.2;
  stroke-dasharray: 6 10;
  animation: spin 72s linear infinite reverse;
  transform-origin: center;
}

.hero__orbits .ring-c {
  stroke-opacity: 0.4;
  animation: pulse-ring 6s ease-in-out infinite;
}

.hero__orbits .dot {
  fill: var(--purple-bright);
  stroke: none;
  animation: blink 3.5s ease-in-out infinite;
}

@keyframes reveal-orbit {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    stroke-opacity: 0.25;
  }
  50% {
    stroke-opacity: 0.5;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 1s var(--ease) 0.15s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__logo {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 0 40px rgba(60, 45, 123, 0.35));
}

.hero__lead {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--purple);
  color: #f3f0ff;
  box-shadow: 0 0 0 1px rgba(91, 74, 175, 0.35), 0 10px 40px rgba(60, 45, 123, 0.35);
}

.btn--primary:hover {
  background: var(--purple-bright);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: rgba(183, 168, 240, 0.45);
}

section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 34rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 500;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 0.75rem;
}

.domains {
  border-block: 1px solid var(--line);
  background: rgba(12, 12, 15, 0.72);
  backdrop-filter: blur(10px);
}

.domain-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.domain-list li {
  display: grid;
  grid-template-columns: minmax(0, 12rem) 1fr;
  gap: 1.5rem 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.domain-list li.is-visible {
  opacity: 1;
  transform: none;
}

.domain-list li:last-child {
  border-bottom: none;
}

.domain-list h3 {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.domain-list p {
  color: var(--ink-soft);
  max-width: 38rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .domain-list li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.experience__panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.experience__stat {
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--purple-bright);
}

.experience__stat small {
  display: block;
  font-size: 0.22em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.85rem;
}

.experience__copy h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.experience__copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}

.experience__copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .experience__panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.approach {
  background: var(--bg-panel);
  position: relative;
  overflow: hidden;
}

.approach::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 120%;
  right: -12%;
  top: -10%;
  background: radial-gradient(circle, rgba(91, 74, 175, 0.28), transparent 65%);
  pointer-events: none;
}

.approach .section-head p {
  color: var(--ink-soft);
}

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  position: relative;
}

.pillars li {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.pillars li.is-visible {
  opacity: 1;
  transform: none;
}

.pillars h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.pillars p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 500;
}

@media (max-width: 800px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact {
  padding-bottom: 6rem;
}

.contact__box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: end;
}

.contact__box h2 {
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.contact__box > div > p {
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.contact__meta {
  font-size: 0.95rem;
}

.contact__meta dt {
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.contact__meta dd {
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-weight: 500;
}

.contact__meta dd:last-child {
  margin-bottom: 0;
}

.contact__meta a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #3a3a42;
}

.contact__meta a:hover {
  color: #d2c8ff;
  border-color: var(--purple-bright);
}

@media (max-width: 720px) {
  .contact__box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--ink-faint);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

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

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

  .hero__content,
  .hero__orbits,
  .domain-list li,
  .pillars li {
    opacity: 1;
    transform: none;
  }
}
