/* The AI Agents Operator — X ads landing, v1
   Dark + cyan. Mobile-first. No pricing, one CTA. */

:root {
  --bg: #05060b;
  --bg-elev: #0c1018;
  --bg-card: #0e141e;
  --cyan: #3ef0ff;
  --cyan-hot: #58fbff;
  --text: #f5f7fa;
  --muted: #b7c4d2;
  --muted-2: #9aa8b8;
  --line: rgba(62, 240, 255, 0.16);
  --line-strong: rgba(62, 240, 255, 0.45);
  --font-display: "Outfit", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 3.75rem;
  --sticky-h: 4.5rem;
  --max: 68rem;
  --gutter: 1.25rem;
  --shadow-cyan: 0 0 48px rgba(62, 240, 255, 0.16);
  --ease: 160ms ease;
}

@font-face {
  font-family: Outfit;
  src: url("assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.011em;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cyan-hot);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--bg);
}

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

.section {
  padding: 3.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, .wordmark {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 750;
}

h1, h2 {
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.85rem, 8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.lead,
.section-head p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cyan-hot);
  color: var(--bg);
  box-shadow: var(--shadow-cyan);
}

.btn-lg {
  min-height: 3.2rem;
  padding: 0.9rem 1.55rem;
  font-size: 1.08rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(5, 6, 11, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

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

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(62, 240, 255, 0.28);
}

.wordmark {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wordmark-the {
  display: none;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - var(--header-h));
  padding: 1.75rem 0 calc(1.5rem + var(--sticky-h));
}

.hero-visual {
  display: none;
}

.hero-copy {
  max-width: 38rem;
}

.hero-avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 0 1.15rem;
  border-radius: 50%;
  box-shadow: var(--shadow-cyan);
  border: 1px solid var(--line);
}

.honesty {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(62, 240, 255, 0.08);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.hero-actions {
  margin-top: 1.4rem;
}

/* Experiment */
.points {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.points li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.points h3 {
  color: var(--text);
}

.points p {
  margin: 0;
  color: var(--muted);
}

.callout {
  margin-top: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(62, 240, 255, 0.06), transparent 60%),
    var(--bg-elev);
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.callout strong {
  color: var(--text);
  font-weight: 650;
}

/* Modules */
.modules {
  display: grid;
  gap: 1.5rem;
}

.module {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}

.module-cover {
  width: 100%;
  aspect-ratio: 1460 / 752;
  object-fit: cover;
  background: #000;
}

.module-body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.module-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.module-meta {
  margin: 0 0 1rem;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.lessons li {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: 0.75rem;
  align-items: center;
}

.lessons img {
  width: 6.25rem;
  aspect-ratio: 1460 / 752;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.lesson-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Mid / final CTA bands */
.cta-band {
  padding: 0 0 3.25rem;
}

.cta-inner {
  text-align: center;
  padding: 2.1rem 1.2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62, 240, 255, 0.14), transparent 55%),
    var(--bg-elev);
}

.cta-inner h2 {
  max-width: 18em;
  margin-inline: auto;
}

.cta-inner p:not(.kicker) {
  max-width: 34rem;
  margin: 0 auto 1.35rem;
  color: var(--muted);
}

.cta-final {
  padding: 0 0 3.5rem;
}

.cta-final .cta-inner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62, 240, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(91, 46, 176, 0.35), transparent 50%),
    var(--bg-elev);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 46rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-item .faq-body {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

.faq-item summary:hover {
  color: var(--cyan-hot);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 calc(2rem + var(--sticky-h));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.footer-brand {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted-2);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--cyan);
}

.legal {
  padding: 2.5rem 0 4.25rem;
  max-width: 40rem;
}

.legal h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.legal .updated {
  margin: 0 0 1.75rem;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.legal h2 {
  margin: 1.7rem 0 0.45rem;
  font-size: 1.2rem;
}

.legal p {
  margin: 0 0 1rem;
  color: var(--muted);
}

body.legal-page .site-footer {
  padding-bottom: 2rem;
}


/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--sticky-h);
  padding: 0.7rem var(--gutter);
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  background: rgba(5, 6, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.sticky-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.sticky-cta .btn {
  flex-shrink: 0;
}

@media (min-width: 720px) {
  :root {
    --gutter: 1.75rem;
  }

  .wordmark-the {
    display: inline;
  }

  .wordmark {
    font-size: 1.02rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    display: block;
    min-height: 0;
    justify-content: initial;
    padding: 3rem 0 4rem;
  }

  .hero-avatar {
    width: 7rem;
    height: 7rem;
  }

  .points {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Keep module covers uncropped — title art is on the left of a 16:9 frame. */
  .module-body {
    padding: 1.4rem 1.4rem 1.5rem;
  }

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

  .cta-inner {
    padding: 3rem 2rem;
  }

  .site-footer {
    padding-bottom: 2rem;
  }

  .sticky-cta {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 3rem;
    align-items: center;
    padding: 3.5rem 0 5rem;
  }

  .hero-avatar-inline {
    display: none;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-visual img {
    width: min(22rem, 100%);
    height: auto;
    border-radius: 50%;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-cyan), 0 0 80px rgba(91, 46, 176, 0.35);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
