/*
  Type follows Grok Bot's landing page (x.ai/bot): one sans family, sizes 64/40/36/18/16/13,
  medium-weight headings with slight negative tracking, and #7d8187 for supporting copy.
  Figtree stands in for xAI's proprietary xVf.
*/
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --line: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: #7d8187;
  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --width: 1120px;
  --gutter: 24px;
  --section: clamp(96px, 14vh, 144px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.625 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

svg {
  display: block;
}

::selection {
  background: #fff;
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--width));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-weight: 450;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.11;
  letter-spacing: -0.01em;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* logo.png is the brand logo with its wordmark recolored white for the dark background. */
.brand img {
  display: block;
  width: auto;
  height: 24px;
}

.links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
}

.links a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}

.links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(64px, 11vh, 104px);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #121212;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

h1 {
  margin-top: 28px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 span {
  color: var(--muted);
}

.lede {
  max-width: 620px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.625;
  color: var(--muted);
}

/* What we do: one large paragraph in gray with its key phrases in white. */
.about {
  padding-top: var(--section);
  scroll-margin-top: 40px;
}

.statement {
  max-width: 26em;
  margin-inline: auto;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--muted);
  text-wrap: pretty;
}

.statement strong {
  font-weight: inherit;
  color: var(--text);
}

/* How we build */
.section {
  padding-top: var(--section);
  scroll-margin-top: 24px;
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-top: 40px;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
}

.card p {
  margin-top: 4px;
  color: var(--muted);
}

/* Footer: the company's legal name and registered address live here. */
.footer {
  margin-top: var(--section);
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer .brand img {
  height: 20px;
}

.footer address {
  font-style: normal;
  text-align: right;
}

.footer > p {
  margin-top: 40px;
}

/* Motion. Everything here is armed only when main.js runs. */
.js .hero > * {
  animation: enter 0.9s var(--ease) both;
}

.js .hero > :nth-child(2) { animation-delay: 0.06s; }
.js .hero > :nth-child(3) { animation-delay: 0.12s; }
.js .hero > :nth-child(4) { animation-delay: 0.18s; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Once the statement is in view, its key phrases light up one after another. */
.js .statement strong {
  color: var(--muted);
  transition: color 0.7s var(--ease) calc(0.35s + var(--w) * 0.18s);
}

.js .statement.in strong {
  color: var(--text);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(8px);
  }
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  .links {
    gap: 20px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer address {
    text-align: left;
  }
}

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

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