:root {
  --indexa-blue: #0068b4;
  --indexa-blue-dark: #123f67;
  --indexa-blue-soft: #e7f3fb;
  --indexa-green: #36ab90;
  --indexa-green-dark: #1e7a64;
  --indexa-green-soft: #e6f6f1;
  --success-green: #22b889;
  --warning: #f1b84b;
  --danger: #c64f4f;
  --ink: #122031;
  --muted: #607086;
  --line: #d9e4ec;
  --paper: #f8fbfe;
  --panel: #ffffff;
  --shadow: 0 22px 70px rgba(18, 63, 103, 0.13);
  --shadow-green: 0 22px 70px rgba(30, 122, 100, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(231, 243, 251, 0.95), transparent 32rem),
    radial-gradient(circle at 92% 88%, rgba(230, 246, 241, 0.85), transparent 36rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f5f9fd 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

code {
  border-radius: 6px;
  background: var(--indexa-blue-soft);
  color: var(--indexa-blue-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  padding: 0.08rem 0.28rem;
}

/* ---------- header ---------- */

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 253, 249, 0.78);
  border-bottom: 1px solid rgba(216, 229, 223, 0.72);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 0 7vw;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  font-weight: 760;
  gap: 0.72rem;
  text-decoration: none;
}

.brand-mark {
  display: block;
  height: 2rem;
  width: 2rem;
}

.site-header nav {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.site-header nav a {
  text-decoration-color: rgba(0, 104, 180, 0.32);
  text-underline-offset: 0.25em;
}

.site-header nav a:hover {
  color: var(--indexa-blue);
}

.site-header nav .nav-cta {
  background: var(--indexa-green);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 780;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.site-header nav .nav-cta:hover {
  background: var(--indexa-green-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.inline-link,
.site-footer a {
  text-decoration-color: rgba(0, 104, 180, 0.32);
  text-underline-offset: 0.25em;
}

.inline-link:hover,
.site-footer a:hover {
  color: var(--indexa-blue);
}

main {
  overflow: hidden;
}

/* ---------- layout ---------- */

.hero,
.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 6rem 7vw;
}

.hero {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  min-height: calc(88svh - 72px);
  place-items: center;
}

.hero-copy,
.section-heading,
.panel-copy,
.step-body,
.join-copy {
  animation: rise-in 680ms ease both;
}

.eyebrow {
  color: var(--indexa-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.95rem;
  text-transform: uppercase;
}

.join-eyebrow {
  color: var(--indexa-green-dark);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  color: var(--indexa-blue-dark);
  font-size: clamp(3rem, 6.4vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 1.4rem;
  max-width: 13ch;
}

h2 {
  color: var(--indexa-blue-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 1rem;
}

h3 {
  color: var(--indexa-blue-dark);
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

h4 {
  color: var(--indexa-blue-dark);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.hero-lead,
.section-heading p,
.step-body > p,
.join-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: none;
}

.panel-copy p {
  color: var(--muted);
  font-size: 1rem;
  max-width: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---------- buttons ---------- */

.button {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 780;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.12rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--indexa-blue);
  box-shadow: 0 14px 28px rgba(0, 104, 180, 0.2);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--indexa-blue-dark);
}

.button.ghost {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--indexa-blue-dark);
}

.button.ghost:hover {
  border-color: var(--indexa-blue);
  color: var(--indexa-blue);
}

.button.big {
  background: var(--indexa-green);
  box-shadow: 0 18px 36px rgba(30, 122, 100, 0.28);
  color: #ffffff;
  font-size: 1.04rem;
  min-height: 3.4rem;
  padding: 1rem 1.5rem;
}

.button.big:hover {
  background: var(--indexa-green-dark);
}

/* ---------- hero panel ---------- */

.hero-panel {
  animation: float-in 760ms ease 120ms both;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 430px;
  padding: 1.5rem;
  width: 100%;
}

.status-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--indexa-blue-dark);
  display: flex;
  font-weight: 780;
  gap: 0.6rem;
  padding-bottom: 1rem;
}

.pulse {
  background: var(--success-green);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(34, 184, 137, 0.5);
  display: inline-block;
  height: 0.65rem;
  width: 0.65rem;
  animation: pulse 1.9s infinite;
}

dl {
  display: grid;
  gap: 1rem;
  margin: 1.15rem 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

dd {
  color: var(--ink);
  margin: 0.18rem 0 0;
  overflow-wrap: anywhere;
}

/* ---------- click-to-copy chip (hero panel values) ---------- */

.copyable {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  margin: -0.18rem -0.32rem;
  padding: 0.18rem 0.32rem;
  position: relative;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.copyable:hover,
.copyable:focus-visible {
  background: var(--indexa-blue-soft);
  color: var(--indexa-blue-dark);
  outline: none;
}

.copyable::after {
  background: var(--indexa-blue-dark);
  border-radius: 6px;
  bottom: calc(100% + 0.4rem);
  color: #ffffff;
  content: attr(data-copy-tooltip);
  font-size: 0.72rem;
  font-weight: 700;
  left: 50%;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  padding: 0.32rem 0.5rem;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.copyable:hover::after,
.copyable:focus-visible::after,
.copyable.is-copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copyable.is-copied {
  background: rgba(34, 184, 137, 0.15);
  color: var(--indexa-green-dark);
}

.copyable-suffix {
  color: var(--ink);
}

/* ---------- install section ---------- */

.install {
  padding-top: 4rem;
}

.section-heading {
  margin-bottom: 2.4rem;
  max-width: 760px;
}

.install-step {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  margin-top: 3rem;
}

.install-step:first-of-type {
  margin-top: 1.5rem;
}

.step-marker {
  align-items: center;
  background: var(--indexa-blue);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 104, 180, 0.22);
  color: #ffffff;
  display: flex;
  font-size: 1.4rem;
  font-weight: 800;
  height: 3.2rem;
  justify-content: center;
  width: 3.2rem;
}

.step-body {
  min-width: 0;
}

.step-body > p {
  margin-bottom: 1.1rem;
}

.step-aside {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.step-figure {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 1rem 0 0;
  overflow: hidden;
}

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

.step-figure figcaption {
  background: var(--indexa-blue-soft);
  border-top: 1px solid var(--line);
  color: var(--indexa-blue-dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
}

.inline-link {
  color: var(--indexa-blue);
  display: inline-flex;
  font-weight: 780;
}

/* ---------- app tabs (Claude / Codex / Cursor) ---------- */

.app-tabs {
  align-items: center;
  background: var(--indexa-blue-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  width: fit-content;
}

.tab-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
  min-height: 2.5rem;
  min-width: 6.4rem;
  padding: 0.55rem 1rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tab-button:hover {
  color: var(--indexa-blue-dark);
}

.tab-button.is-active {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(18, 63, 103, 0.1);
  color: var(--indexa-blue-dark);
}

.app-panels {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: clip;
}

.app-panel {
  animation: panel-in 260ms ease both;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  padding: 1.25rem;
}

.app-panel[hidden] {
  display: none;
}

.panel-copy {
  padding: 1rem;
}

/* ---------- code blocks ---------- */

.code-card {
  background: #102842;
  border-radius: 8px;
  color: #e9f6ff;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.copy-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
  min-height: 2.25rem;
  padding: 0.42rem 0.72rem;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  transition: background 180ms ease, transform 180ms ease;
  z-index: 2;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

pre {
  margin: 0;
  max-height: 520px;
  overflow: auto;
  padding: 3.6rem 1.2rem 1.2rem;
}

pre[class*="language-"] {
  background: transparent;
}

pre code {
  background: transparent;
  color: inherit;
  display: block;
  font-size: 0.86rem;
  line-height: 1.65;
  padding: 0;
  white-space: pre;
}

/* token padding so inline <code> styling doesn't bleed into Prism tokens */
pre code[class*="language-"] .token {
  background: transparent;
  padding: 0;
}

/* ---------- numbered steps inside panels ---------- */

.numbered-steps {
  color: var(--ink);
  counter-reset: numbered;
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.numbered-steps li {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 2rem;
  position: relative;
}

.numbered-steps li::before {
  align-items: center;
  background: var(--indexa-blue);
  border-radius: 999px;
  color: #ffffff;
  content: counter(numbered);
  counter-increment: numbered;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 1.4rem;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0.1rem;
  width: 1.4rem;
}

/* ---------- config screenshot (Codex panel) ---------- */

.config-screenshot {
  background: #102842;
  border-radius: 8px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0.6rem;
}

.config-screenshot img {
  border-radius: 4px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

/* ---------- carousel (step 3 examples) ---------- */

.carousel {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  margin-top: 1.5rem;
  max-width: 100%;
  min-width: 0;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  align-items: center;
  background: transparent;
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  margin: 0;
  scroll-snap-align: center;
}

.carousel-slide img {
  display: block;
  height: auto;
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
}

.carousel-nav {
  align-items: center;
  align-self: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(18, 63, 103, 0.12);
  color: var(--indexa-blue-dark);
  cursor: pointer;
  display: flex;
  font-size: 1.5rem;
  height: 2.6rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
  width: 2.6rem;
}

.carousel-nav.prev {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.carousel-nav.next {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.carousel-nav:hover {
  background: var(--indexa-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.carousel-nav:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
}

.carousel-dots {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  grid-column: 1 / 4;
  grid-row: 2 / 3;
  justify-content: center;
}

.carousel-dot {
  appearance: none;
  background: var(--line);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 0.5rem;
  padding: 0;
  transition: background 180ms ease, width 180ms ease;
  width: 0.5rem;
}

.carousel-dot.is-active {
  background: var(--indexa-blue);
  width: 1.4rem;
}

/* ---------- join (referral) ---------- */

.join {
  padding-bottom: 4rem;
  padding-top: 4rem;
}

.join-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(230, 246, 241, 0.85), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(54, 171, 144, 0.28);
  border-radius: 12px;
  box-shadow: var(--shadow-green);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  padding: 3rem;
}

.join-copy h2 {
  color: var(--indexa-green-dark);
  margin-bottom: 1rem;
}

.join-copy > p {
  margin-bottom: 1.4rem;
}

.join-points {
  color: var(--ink);
  display: grid;
  gap: 0.65rem;
  font-size: 1rem;
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
}

.join-points li {
  padding-left: 1.5rem;
  position: relative;
}

.join-points li::before {
  background: var(--indexa-green);
  border-radius: 999px;
  content: "";
  height: 0.55rem;
  left: 0.25rem;
  position: absolute;
  top: 0.55rem;
  width: 0.55rem;
}

.join-fineprint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  max-width: 55ch;
}

.join-mark {
  align-items: center;
  display: flex;
  justify-content: center;
}

.join-mark img {
  filter: drop-shadow(0 14px 28px rgba(30, 122, 100, 0.2));
  height: auto;
  max-width: 220px;
  width: 100%;
}

/* ---------- status section ---------- */

.service-status {
  padding-top: 0;
}

.status-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.service-card-top {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  font-weight: 780;
  gap: 0.62rem;
  margin-bottom: 1rem;
}

.service-indicator {
  background: var(--warning);
  border-radius: 999px;
  display: inline-block;
  height: 0.72rem;
  width: 0.72rem;
}

.service-indicator.is-ok {
  background: var(--success-green);
}

.service-indicator.is-down {
  background: var(--danger);
}

.service-indicator.is-checking {
  animation: pulse 1.9s infinite;
}

.service-card h3 {
  margin-bottom: 0.55rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- footer ---------- */

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.4rem 7vw;
}

.footer-meta {
  font-size: 0.9rem;
}

.footer-credit {
  font-size: 0.9rem;
}

.footer-credit a {
  color: var(--indexa-blue);
  font-weight: 780;
}

/* ---------- animations ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(34, 184, 137, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 184, 137, 0);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
    position: static;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .hero,
  .app-panel,
  .status-grid,
  .join-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  h1 {
    max-width: 10ch;
  }

  .app-tabs {
    width: 100%;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
  }

  .install-step {
    gap: 1rem;
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .step-marker {
    font-size: 1.15rem;
    height: 2.4rem;
    width: 2.4rem;
  }

  .join-card {
    gap: 1.8rem;
    padding: 2rem;
  }

  .join-mark {
    order: -1;
  }

  .join-mark img {
    max-width: 140px;
  }
}

@media (max-width: 560px) {
  .hero,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .app-panel,
  .service-card {
    padding: 1rem;
  }

  .join-card {
    padding: 1.5rem;
  }

  .install-step {
    grid-template-columns: 1fr;
  }

  .step-marker {
    margin-bottom: 0.2rem;
  }
}

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