:root {
  --black: #07070b;
  --black-2: #111118;
  --white: #ffffff;
  --paper: #f5f5f7;
  --line: #d8d8df;
  --muted: #6f7280;
  --purple: #5747ED;
  --purple-dark: #3c2fd6;
  --purple-soft: rgba(87, 71, 237, 0.12);
  --radius: 6px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--white);
  color: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: var(--purple);
  color: var(--white);
}

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

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

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 30;
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-color: rgba(7, 7, 11, 0.22);
  box-shadow: 0 18px 54px rgba(7, 7, 11, 0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand img {
  width: 132px;
  height: auto;
  transition: filter 250ms ease;
}

.site-header:not(.is-scrolled) .brand img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  transition: background 250ms ease, border-color 250ms ease;
}

.site-header.is-scrolled .site-nav {
  border-color: var(--line);
  background: var(--white);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .site-nav a {
  color: var(--muted);
}

.site-header.is-scrolled .site-nav a:hover {
  color: var(--white);
  background: var(--black);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--purple);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(87, 71, 237, 0.28);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 136px 24px 84px;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 68vw;
  height: 68vw;
  right: -32vw;
  top: -22vw;
  z-index: -2;
  border: 1px solid rgba(87, 71, 237, 0.34);
  background: rgba(87, 71, 237, 0.10);
  transform: rotate(18deg);
}

.hero-canvas,
.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-canvas {
  z-index: -1;
  opacity: 0.74;
}

.hero-noise {
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(87, 71, 237, 0.18), transparent 38%),
    linear-gradient(20deg, transparent 55%, rgba(255,255,255,0.07));
}

.hero-inner {
  width: min(1020px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-label,
.vision-content span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before,
.vision-content span::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--purple);
}

.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;
}

.hero-logo {
  width: min(620px, 84vw);
  height: auto;
  max-height: 116px;
  margin: 0 auto;
}

.hero-title {
  max-width: 940px;
  margin: 34px auto 0;
  color: var(--white);
  font-size: 2.45rem;
  line-height: 1.12;
  font-weight: 950;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--purple);
  box-shadow: 0 16px 34px rgba(87, 71, 237, 0.34);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
}

.signal-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.signal-bar span {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-right: 1px solid var(--black);
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
  text-align: center;
}

.signal-bar span:last-child {
  border-right: 0;
}

.section {
  padding: 112px 24px;
}

.studio-section,
.final-cta {
  background: var(--white);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  width: min(1160px, 100%);
  margin: 0 auto;
  align-items: start;
}

.section-title h2,
.products-header h2,
.vision-content h2,
.cta-frame h2 {
  margin: 0;
  color: var(--black);
  font-size: 3.65rem;
  line-height: 1.02;
  font-weight: 950;
}

.section-copy p,
.products-header p,
.product-card p,
.vision-content p,
.cta-frame p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
  font-weight: 620;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1160px, 100%);
  margin: 58px auto 0;
}

.principle-card,
.product-card,
.cta-frame {
  border: 1px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(7, 7, 11, 0.08);
}

.principle-card {
  min-height: 252px;
  padding: 26px;
}

.principle-card span,
.product-kicker span {
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.principle-card h3 {
  margin: 34px 0 12px;
  color: var(--black);
  font-size: 1.32rem;
  font-weight: 950;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-weight: 620;
}

.products-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.products-header {
  width: min(880px, 100%);
  margin: 0 auto 54px;
  text-align: center;
}

.products-header p {
  margin-top: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.product-card {
  padding: 30px;
}

.thoth-card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.product-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--black);
}

.product-kicker strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.product-card h3 {
  margin: 38px 0 18px;
  color: var(--black);
  font-size: 4.8rem;
  line-height: 0.95;
  font-weight: 950;
}

.product-card p {
  max-width: 640px;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.product-features span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  color: var(--black);
  background: var(--white);
  font-weight: 850;
}

.thoth-card .button {
  width: fit-content;
  margin-top: auto;
}

.dark-card {
  color: var(--white);
  background: var(--black);
}

.dark-card .product-kicker {
  border-color: rgba(255,255,255,0.22);
}

.dark-card .product-kicker strong,
.dark-card h3,
.dark-card p {
  color: var(--white);
}

.dark-card p {
  color: rgba(255,255,255,0.68);
}

.vision-section {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 120px 24px;
  overflow: hidden;
  background: var(--black);
}

.vision-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

.vision-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.045);
  font-size: 15vw;
  font-weight: 950;
  white-space: nowrap;
}

.vision-content {
  position: relative;
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.vision-content h2 {
  color: var(--white);
}

.vision-content p {
  max-width: 720px;
  margin: 24px auto 0;
  color: rgba(255,255,255,0.70);
}

.final-cta {
  padding: 112px 24px;
}

.cta-frame {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 44px;
  text-align: center;
}

.cta-frame img {
  width: 190px;
  height: auto;
  margin: 0 auto 26px;
}

.cta-frame p {
  max-width: 590px;
  margin: 18px auto 28px;
}

.site-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-top: 1px solid var(--black);
  color: var(--muted);
  background: var(--white);
}

.site-footer span:first-child {
  color: var(--black);
  font-weight: 950;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr;
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px 10px 10px 14px;
  }

  .site-nav {
    display: none;
  }

  .nav-cta {
    justify-self: end;
    min-height: 42px;
    padding: 0 16px;
  }

  .brand img {
    width: 116px;
  }

  .hero {
    padding: 118px 18px 74px;
  }

  .hero-logo {
    width: min(430px, 84vw);
    max-height: 82px;
  }

  .hero-title {
    font-size: 1.58rem;
  }

  .signal-bar,
  .split-layout,
  .principle-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .signal-bar span {
    border-right: 0;
    border-bottom: 1px solid var(--black);
  }

  .signal-bar span:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 84px 18px;
  }

  .section-title h2,
  .products-header h2,
  .vision-content h2,
  .cta-frame h2 {
    font-size: 2.45rem;
  }

  .product-card h3 {
    font-size: 3.4rem;
  }

  .thoth-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-logo {
    width: min(310px, 82vw);
    max-height: 58px;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

  .product-card h3 {
    font-size: 2.75rem;
  }

  .cta-frame {
    padding: 30px 18px;
  }
}

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

  .hero-canvas {
    display: none;
  }
}