/* Archilas landing — Composio structure (self-contained, no external Composio requests) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ── Header (floating pill) ─────────────────────────────────────────────── */
.c-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.c-header__pill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 77.5rem;
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 15, 0.38);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.c-header.is-scrolled .c-header__pill {
  background: rgba(15, 15, 15, 0.52);
  border-color: rgba(255, 255, 255, 0.14);
}
.c-logo {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.c-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 960px) { .c-nav { display: flex; } }
.c-nav__item { position: relative; }
.c-nav__trigger,
.c-nav__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}
.c-nav__trigger:hover,
.c-nav__link:hover,
.c-nav__item.is-open .c-nav__trigger { color: #fff; background: rgba(255,255,255,0.06); }
.c-nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 20rem;
  padding: 0.75rem;
  border: 1px solid var(--border-dark);
  border-radius: 0.75rem;
  background: #141414;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.c-nav__item.is-open .c-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.c-nav__menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}
.c-nav__menu a:hover { background: rgba(255,255,255,0.06); }
.c-nav__menu strong {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.c-nav__menu span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}
.c-header__cta {
  margin-left: auto;
}
.nav-toggle {
  display: flex;
  color: #fff;
  padding: 0.5rem;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }

@media (max-width: 959px) {
  .c-nav {
    display: none;
    position: fixed;
    top: 4.75rem;
    left: var(--gutter);
    right: var(--gutter);
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    background: rgba(15, 15, 15, 0.96);
    backdrop-filter: blur(12px);
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
  }
  .c-nav.is-open { display: flex; }
  .c-nav__item { width: 100%; }
  .c-nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0.5rem 0.5rem;
    min-width: 0;
  }
  .c-nav__item:not(.is-open) .c-nav__menu { display: none; }
  .c-header__cta { display: none; }
}

/* ── Buttons (Composio pills) ───────────────────────────────────────────── */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.c-btn--primary {
  background: #fff;
  color: var(--bg-deep);
}
.c-btn--primary:hover { background: rgba(255,255,255,0.9); }
.c-btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}
.c-btn--outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}
.c-btn--outline-dark {
  border: 1px solid #d4d4d4;
  color: var(--text-primary);
  background: transparent;
}
.c-btn--outline-dark:hover {
  border-color: #a3a3a3;
  background: rgba(0,0,0,0.03);
}
.c-btn--dark {
  background: var(--bg-deep);
  color: #fff;
}
.c-btn--nav {
  height: 2.25rem;
  padding: 0 1.1rem;
  font-size: 0.625rem;
  background: #fff;
  color: var(--bg-deep);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.c-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding: 6rem 1rem 3rem;
  text-align: center;
  color: #fff;
  background: var(--bg-deep);
  overflow: hidden;
}
.c-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 47.5rem;
  padding-top: 2rem;
}
.c-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}
.c-hero h1 span { display: block; }
@media (min-width: 768px) {
  .c-hero h1 {
    font-size: 4rem;
    line-height: 4rem;
    letter-spacing: -1.6px;
  }
}
.c-hero__lead {
  margin: 1.5rem auto 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}
@media (min-width: 768px) {
  .c-hero__lead { font-size: 1.125rem; line-height: 1.75; margin-top: 2rem; }
}
.c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 768px) { .c-hero__actions { margin-top: 2.5rem; gap: 1rem; } }
.c-hero__fine {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.c-hero__marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  padding: 3rem 0 1.5rem;
}

/* ── Section typography ─────────────────────────────────────────────────── */
.c-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 1rem;
}
.section--light .c-eyebrow { color: var(--text-muted-light); }
.c-section-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section--dark { background: var(--bg-deep); color: #fff; }
.section--light { background: var(--bg-page); color: var(--text-primary); }
.c-section {
  padding: 5rem 0;
}
@media (min-width: 768px) { .c-section { padding: 7rem 0; } }

/* ── Demo ───────────────────────────────────────────────────────────────── */
.c-demo__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .c-demo__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
  }
}
.c-demo__sub {
  max-width: 36rem;
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  line-height: 1.5;
}
.c-demo__ui {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  background: #0a0a0a;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .c-demo__ui { grid-template-columns: 1fr 1.1fr 1fr; min-height: 28rem; }
}
.c-demo__col {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-dark);
}
@media (min-width: 1024px) {
  .c-demo__col { border-bottom: none; border-right: 1px solid var(--border-dark); }
  .c-demo__col:last-child { border-right: none; }
}
.c-demo__tools { display: flex; flex-direction: column; gap: 0.5rem; }
.c-tool {
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, background 0.2s;
}
.c-tool.is-active {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}
.c-tool__name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.c-tool__desc {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: rgba(255,255,255,0.45);
}
.c-demo__chat-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}
.c-demo__prompt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1rem;
  transition: opacity 0.18s ease;
}
.c-demo__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: #34d399;
}
.c-demo__status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}
.c-demo__trace {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  transition: opacity 0.18s ease;
}
.c-demo__trace .ok { color: #34d399; }
.c-demo__trace .key { color: #82aaff; }
.c-demo__trace .val { color: #34d399; }
.c-demo__trace .dim { color: rgba(255,255,255,0.3); }

/* ── Pillars ────────────────────────────────────────────────────────────── */
.c-pillars__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}
.c-pillars__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.c-pillars__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.c-pillars__nav button {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: all 0.2s var(--ease);
}
.c-pillars__nav button.is-active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.c-pillars__panels {
  position: relative;
  min-height: 22rem;
}
.c-pillar-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  background: #141414;
}
.c-pillar-panel.is-active {
  display: grid;
  animation: fade-up 0.45s var(--ease);
}
@media (min-width: 768px) { .c-pillar-panel.is-active { grid-template-columns: 1fr 1fr; } }
.c-pillar-num {
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(255,255,255,0.12);
  margin: 0 0 1rem;
}
.c-pillar-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.c-pillar-panel p { color: rgba(255,255,255,0.55); margin: 0 0 1rem; }
.c-pillar-panel li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.c-pillar-panel li::before { content: "→"; position: absolute; left: 0; color: rgba(255,255,255,0.35); }
.c-pillar-visual {
  border: 1px solid var(--border-dark);
  border-radius: 0.75rem;
  background: #050505;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  min-height: 12rem;
  white-space: pre-wrap;
}

/* ── Products split ─────────────────────────────────────────────────────── */
.c-products__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 0.75rem;
}
.c-split {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .c-split { grid-template-columns: 1fr 1fr; } }
.c-split-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  background: #fff;
}
.c-split-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 1rem;
}
.c-split-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.c-split-card p {
  margin: 0 0 1.5rem;
  color: #525252;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.c-terminal {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  white-space: pre-wrap;
}

/* ── Developers ─────────────────────────────────────────────────────────── */
.c-ascii {
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(0.35rem, 1vw, 0.55rem);
  line-height: 1.1;
  color: rgba(255,255,255,0.2);
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 2rem;
}
.c-dev-grid {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--border-dark);
}
@media (min-width: 768px) { .c-dev-grid { grid-template-columns: 1fr 1fr; } }
.c-dev-card {
  background: #141414;
  padding: 1.5rem;
}
.c-dev-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 400;
}
.c-dev-card p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.c-dev-card pre {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #050505;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  overflow-x: auto;
}

/* ── Security ───────────────────────────────────────────────────────────── */
.c-security {
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    var(--bg-deep);
  border-block: 1px solid var(--border-dark);
}
.c-security__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .c-security__grid { grid-template-columns: repeat(4, 1fr); } }
.c-security__item {
  padding: 1.25rem;
  border: 1px solid var(--border-dark);
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.35);
}
.c-security__item strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.c-security__item span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.c-cta {
  text-align: center;
}
.c-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.c-cta__sub {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--text-muted-light);
}
.c-cta p {
  max-width: 32rem;
  margin: 1.25rem auto 2rem;
  color: #525252;
}
.c-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.c-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}
.c-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .c-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.c-footer__brand p {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  max-width: 18rem;
}
.c-footer h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 1rem;
}
.c-footer a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.c-footer a:hover { color: #fff; }
.c-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.text-center { text-align: center; }
