:root {
  --bg: #050a10;
  --bg-elevated: #0b1219;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.72);
  --ink-soft: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --signal: #00f5a0;
  --signal-dim: rgba(0, 245, 160, 0.15);
  --signal-ink: #050a10;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --max: 72rem;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(5, 10, 16, 0.55);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 10, 16, 0.88);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  position: relative;
  width: 2rem;
  height: 2rem;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--signal);
  background: var(--signal-dim);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background: rgba(0, 245, 160, 0.22);
}

.nav__cta svg {
  width: 1rem;
  height: 1rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 50% at 80% -10%, rgba(0, 245, 160, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(74, 58, 255, 0.12), transparent 50%),
    var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) brightness(0.45);
  transform: scale(1.03);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.96) 0%, rgba(5, 10, 16, 0.78) 42%, rgba(5, 10, 16, 0.55) 100%),
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(0, 245, 160, 0.12), transparent 60%);
}

.hero__content {
  padding: 4.5rem 0 5rem;
  max-width: 40rem;
  animation: rise 0.8s ease both;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--signal);
}

.hero__lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
  background: var(--signal);
  color: var(--signal-ink);
}

.btn--primary:hover {
  background: #34ffb4;
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

.section--alt {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 245, 160, 0.06), transparent 55%),
    var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  animation: rise 0.7s ease both;
}

.section__head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section__head > p:not(.eyebrow) {
  color: var(--ink-muted);
  font-size: 1rem;
}

/* ——— Cards ——— */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  min-height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  animation: rise 0.7s ease both;
}

.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }

.card:hover {
  transform: scale(1.02);
  border-color: rgba(0, 245, 160, 0.35);
  background:
    linear-gradient(180deg, rgba(0, 245, 160, 0.06), transparent 45%),
    var(--bg-card-hover);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(0, 245, 160, 0.35);
  background: var(--signal-dim);
  color: var(--signal);
  box-shadow: 0 0 24px rgba(0, 245, 160, 0.12);
}

.card__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.card__subtitle {
  color: var(--signal);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: -0.35rem;
}

.card > p:not(.card__subtitle) {
  color: var(--ink-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  color: var(--signal);
  font-size: 0.9rem;
  font-weight: 600;
}

.card__link span {
  transition: transform 0.2s ease;
}

.card:hover .card__link span {
  transform: translateX(3px);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.card__meta a:not(.card__link) {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-style: dotted;
}

.card__meta a:not(.card__link):hover {
  color: var(--signal);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* ——— About strip ——— */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pillar {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.pillar p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.pillar ul {
  margin-top: 1rem;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pillar li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.pillar li::before {
  content: "";
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background:
    linear-gradient(var(--signal), var(--signal)) center / 0.45rem 0.45rem no-repeat,
    var(--signal-dim);
  border: 1px solid rgba(0, 245, 160, 0.45);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: #03070b;
}

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

.site-footer p {
  color: var(--ink-soft);
  font-size: 0.85rem;
  max-width: 28rem;
  margin-top: 0.5rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__links a {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.site-footer__links a:hover {
  color: var(--signal);
}

.site-footer__copy {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img,
  .card,
  .hero__content,
  .section__head {
    animation: none !important;
  }
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(5, 10, 16, 0.72) 0%, rgba(5, 10, 16, 0.92) 55%, var(--bg) 100%),
      radial-gradient(ellipse 90% 50% at 50% 20%, rgba(0, 245, 160, 0.12), transparent 60%);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: calc(var(--header-h) - 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(5, 10, 16, 0.96);
    backdrop-filter: blur(12px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__cta,
  .nav__link {
    justify-content: flex-start;
  }

  .brand__text {
    font-size: 0.95rem;
  }

  .hero__content {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
}
