/* ennaim.dev — design language mirrors mastra.ai (tokens measured from the live site) */

:root {
  --bg: #020202;
  --surface: #080808;
  --card: #0f0f0f;
  --card-2: #171717;
  --line: #1c1c1c;
  --line-2: #262626;
  --line-3: #343434;
  --white: #f0f0f0;
  --fg: #d9d9d9;
  --muted: #939393;
  --muted-2: #6f6f6f;
  --green: #7fe97e;
  --amber: #ffb258;
  --btn: #cccccc;
  --btn-hover: #e4e4e4;
  --btn-dark: #1c1c1c;
  --btn-dark-hover: #262626;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --content: 1328px;
  --pad: 38px;
  --gap: 24px;
  --radius: 40px;
  --radius-md: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ls: .255px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: var(--ls);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 2px solid var(--line); }
.nav__bar { max-width: var(--content); margin: 0 auto; height: var(--nav-h); padding: 0 var(--pad); display: flex; align-items: center; gap: 8px; }
.nav__logo { display: flex; align-items: center; gap: 10px; margin-right: 22px; color: #fff; }
.nav__mark { width: 28px; height: 28px; }
.nav__word { font-size: 22px; font-weight: 540; letter-spacing: -.01em; line-height: 1; transform: translateY(-1px); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: 57px; transition: color .3s; }
.nav__link:hover { color: var(--white); }
.nav__link--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; opacity: .6; transition: opacity .3s; }
.nav__link--dot:hover::before { opacity: 1; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__gh { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 8px; border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--white); margin-right: 14px; transition: background .2s; }
.nav__gh:hover { background: var(--line); }
.nav__gh-icon { width: 16px; height: 16px; }
.nav__toggle { display: none; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; color: var(--white); }
.nav__toggle-icon { width: 22px; height: 22px; }
.nav__toggle-icon--close { display: none; }
.nav.is-open .nav__toggle-icon--open { display: none; }
.nav.is-open .nav__toggle-icon--close { display: block; }
.nav__mobile { display: none; flex-direction: column; gap: 2px; padding: 8px var(--pad) 20px; border-top: 1px solid var(--line); }
.nav.is-open .nav__mobile { display: flex; }
.nav__mobile a { padding: 12px 4px; font-size: 17px; color: var(--fg); }
.nav__mobile .btn { margin-top: 10px; justify-content: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 57px; font-size: 17px; font-weight: 470; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: background-color .2s, color .2s, transform .2s; }
.btn--primary { background: var(--btn); color: #000; }
.btn--primary:hover { background: var(--btn-hover); }
.btn--dark { background: var(--btn-dark); color: var(--btn); }
.btn--dark:hover { background: var(--btn-dark-hover); color: var(--white); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--white); background: var(--line); }
.btn--nav { height: 38px; padding: 0 16px; font-size: 14.5px; font-weight: 450; }
.btn__icon { width: 16px; height: 16px; flex: none; }
.btn:active { transform: scale(.985); }
.actions { display: flex; gap: 16px; flex-wrap: wrap; }
.actions--center { justify-content: center; margin-top: 36px; }

/* ---------- Sections (the "antigrid" stack: dark panels with 24px gaps) ---------- */
main { display: flex; flex-direction: column; gap: var(--gap); }
.section { position: relative; background: var(--surface); border-radius: var(--radius); border: 1.5px solid #141414; }
.section--hero { border-radius: 0 0 var(--radius) var(--radius); border-top: 0; overflow: clip; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 120px var(--pad); }
.wrap--narrow { max-width: 1028px; }
.wrap--center { text-align: center; }

.h2 { font-size: clamp(30px, 2.4vw + 12px, 46px); font-weight: 520; line-height: 1.1; letter-spacing: var(--ls); color: var(--white); max-width: 1000px; margin: 0 auto; text-align: center; text-wrap: balance; }
.h2__muted { color: var(--muted); font-weight: 500; }
.h2--left { text-align: left; margin: 0; }
.h2--sm { font-size: clamp(26px, 1.8vw + 10px, 34px); }

/* ---------- Announcement lip ---------- */
.lip { position: absolute; top: 0; left: max(var(--pad), calc((100% - var(--content)) / 2 + var(--pad))); z-index: 20; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px 0 22px; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #ffb45c, #f98f2a); color: #1a1000; font-size: 14.5px; font-weight: 500; letter-spacing: 0; animation: hero-fall .7s var(--ease) .3s both; transition: transform .2s; }
.lip:hover { transform: translateY(2px); }
.lip__meta { font-weight: 600; }
.lip__sep { opacity: .5; }
.lip__arrow { width: 14px; height: 14px; transition: transform .2s; }
.lip:hover .lip__arrow { transform: translateX(2px); }

/* ---------- Hero ---------- */
.hero { max-width: var(--content); margin: 0 auto; padding: 0 var(--pad); position: relative; min-height: clamp(640px, calc(100svh - var(--nav-h)), 920px); display: flex; align-items: center; }
.hero__copy { position: relative; z-index: 10; width: min(100%, 540px); padding: 120px 0 150px; }
.hero__title { font-size: clamp(40px, 3.4vw + 14px, 64px); font-weight: 520; line-height: 1.08; letter-spacing: var(--ls); color: var(--white); text-wrap: balance; }
.hero__sub { margin-top: 22px; font-size: 22px; line-height: 1.36; color: var(--muted); max-width: 500px; }
.cycle { transition: color .7s; }
.cycle.is-on { color: var(--green); }
.hero__actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero__fade-1 { animation: hero-fade .7s var(--ease) .08s both; }
.hero__fade-2 { animation: hero-fade .7s var(--ease) .22s both; }

.hero__panel {
  position: absolute; right: 0; bottom: 0; top: 10%; left: 53%;
  overflow: hidden; border-top-left-radius: var(--radius); padding: var(--pad);
  border-top: 1.5px solid transparent; border-left: 1.5px solid transparent;
  background:
    radial-gradient(86% 69% at 2% 1%, #171717 27%, #080808 88%) padding-box,
    linear-gradient(to right, rgba(255,255,255,.08), rgba(255,255,255,0)) border-box;
  animation: hero-slide-in .7s var(--ease) .36s both;
}

.trace { width: 560px; max-width: 100%; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--radius-md); font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--fg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); animation: hero-fade .7s var(--ease) .51s both; }
.trace__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.trace__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(127,233,126,.14); animation: pulse 2s ease-in-out infinite; flex: none; }
.trace__name { color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace__meta { margin-left: auto; color: var(--muted-2); white-space: nowrap; }
.trace__time { color: var(--muted); }
.trace__rows { padding: 8px 0; }
.trace__row { display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 12px; padding: 7px 18px; animation: hero-row-in .45s var(--ease) both; animation-delay: calc(.8s + var(--i) * .11s); }
.trace__k { color: var(--fg); padding-left: 16px; position: relative; white-space: nowrap; }
.trace__k::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 1px; background: var(--line-3); }
.trace__v { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace__t { color: var(--muted-2); text-align: right; }
.trace__row--warn { background: rgba(255,178,88,.06); }
.trace__row--warn .trace__k { color: var(--amber); }
.trace__row--ok .trace__k { color: var(--green); }
.trace__foot { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; }
.trace__cost { color: var(--green); }

.slackcard { position: absolute; left: -6px; top: 44%; width: 300px; background: #1a1a1a; border: 1.5px solid #2b2b2b; border-radius: 16px; padding: 16px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.65); font-size: 13.5px; line-height: 1.4; animation: hero-fall .7s var(--ease) 2.1s both; }
.slackcard__head { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.slackcard__hash { color: var(--muted-2); }
.slackcard__app { margin-left: auto; color: var(--muted-2); }
.slackcard__post { margin-top: 10px; color: var(--muted); }
.slackcard__post strong { color: var(--white); font-weight: 500; }
.slackcard__sub { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.slackcard__btns { display: flex; gap: 8px; margin-top: 12px; }
.slackcard__btn { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-3); font-size: 12.5px; color: var(--fg); }
.slackcard__btn--ok { background: rgba(127,233,126,.12); border-color: rgba(127,233,126,.35); color: var(--green); }
.slackcard--static { position: static; width: 100%; max-width: 420px; animation: none; box-shadow: none; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1.5px solid var(--line); padding: 34px 0 38px; overflow: hidden; position: relative; animation: hero-fall .7s var(--ease) .56s both; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: logo-marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { width: 200px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.marquee__logo { font-size: 22px; font-weight: 600; color: #bdbdbd; letter-spacing: -.01em; }
.marquee__cap { font-size: 12px; color: var(--muted-2); }

/* ---------- Feature tabs ---------- */
.tabs { margin-top: 64px; }
.tabs__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 1100px; margin: 0 auto; }
.tabs__tab { display: flex; align-items: center; justify-content: center; gap: 10px; height: 66px; border-radius: 38px; color: var(--white); font-size: 13.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s, box-shadow .25s; }
.tabs__tab:hover { background: #0d0d0d; }
.tabs__tab[aria-selected="true"] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tabs__icon { width: 26px; height: 26px; color: var(--muted); transition: color .25s; }
.tabs__tab[aria-selected="true"] .tabs__icon { color: var(--white); }

.tabs__stage { margin-top: 28px; position: relative; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); overflow: hidden; }
.tabs__panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.tabs__panel[hidden] { display: none; }
.tabs__code { padding: 34px 38px; border-right: 2px solid var(--line); background: var(--card); min-width: 0; }
.code__bar { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 18px; }
.code { margin: 0; font-family: var(--mono); font-size: 14.5px; line-height: 1.65; color: var(--white); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: pre; }
.code::-webkit-scrollbar { display: none; }
.code .l { display: block; min-height: 1.65em; }
.k { color: #fa7b6a; } .s { color: #46f488; } .c { color: #d06bee; } .m { color: #6f6f6f; } .n { color: #f5c97a; }
.tabs__media { padding: 34px 38px; display: flex; align-items: center; justify-content: center; background: radial-gradient(80% 70% at 50% 100%, #141414, var(--card)); min-width: 0; }
.tabs__panel.is-in .code { animation: ft-code-in .5s var(--ease) both; }
.tabs__panel.is-in .code .l { animation: ft-line-in .4s var(--ease) both; animation-delay: calc(var(--n, 0) * 28ms); }
.tabs__panel.is-in .tabs__media > * { animation: ft-media-in .6s var(--ease) both; }
.tabs__copy { position: relative; min-height: 80px; margin-top: 28px; text-align: center; }
.tabs__copy-item { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; pointer-events: none; }
.tabs__copy-item.is-active { opacity: 1; position: relative; pointer-events: auto; }
.tabs__copy-item.is-in { animation: ft-copy-in .45s var(--ease) both; }
.tabs__copy h3 { font-size: 17px; font-weight: 500; color: var(--white); }
.tabs__copy p { color: var(--muted); max-width: 520px; margin: 4px auto 0; }

/* mocks used inside the tab stage */
.mock { width: 100%; max-width: 460px; background: #121212; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 16px; font-size: 13.5px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.mock__top { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.mock__pill { font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }
.mock__pill.is-on { background: var(--line); color: var(--white); }
.mock__crumb { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.mock--table .mock__crumb { margin-left: 0; margin-right: auto; }
.mock__msg { padding: 10px 12px; border-radius: 12px; background: #181818; color: var(--fg); margin-top: 8px; line-height: 1.45; }
.mock__msg--user { background: #1f1f1f; color: var(--white); margin-left: 40px; }
.mock__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mock__tools span { font-family: var(--mono); font-size: 11px; color: var(--green); background: rgba(127,233,126,.08); border: 1px solid rgba(127,233,126,.2); padding: 3px 8px; border-radius: 6px; }
.mock__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.mock__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); display: inline-block; flex: none; }
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--pulse { animation: pulse 2s ease-in-out infinite; }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; row-gap: 12px; }
.flow__node { font-family: var(--mono); font-size: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-3); background: #181818; color: var(--white); }
.flow__node--fan { box-shadow: 3px 3px 0 -1px #181818, 3px 3px 0 0 var(--line-3), 6px 6px 0 -1px #181818, 6px 6px 0 0 var(--line-3); }
.flow__node--pause { border-color: rgba(255,178,88,.5); color: var(--amber); }
.flow__node--ok { border-color: rgba(127,233,126,.5); color: var(--green); }
.flow__edge { width: 16px; height: 1px; background: var(--line-3); flex: none; }
.tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted-2); padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 8px; border-bottom: 1px solid #1a1a1a; color: var(--fg); }
.tbl .ok { color: var(--green); }
.tbl tr.warn td { background: rgba(255,107,107,.08); color: #ff8a8a; }
.phone { width: 220px; margin: 0 auto; background: #0b0b0b; border: 1.5px solid var(--line-3); border-radius: 28px; padding: 14px 14px 18px; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.phone__bar { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted-2); font-family: var(--mono); }
.phone__title { font-size: 20px; font-weight: 600; color: var(--white); margin-top: 12px; }
.phone__stat { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; }
.phone__stat b { color: var(--green); font-weight: 600; }
.phone__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.phone__grid span { font-size: 11px; text-align: center; padding: 10px 4px; border-radius: 10px; background: #161616; color: var(--fg); }
.phone__cta { margin-top: 14px; background: var(--btn); color: #000; text-align: center; font-size: 12.5px; font-weight: 500; padding: 10px; border-radius: 40px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 72px; }
.stat { background: var(--card); border: 2px solid var(--line); border-radius: 28px; padding: 32px 30px 28px; min-height: 220px; display: flex; flex-direction: column; }
.stat__n { font-size: clamp(44px, 4vw, 64px); font-weight: 520; line-height: 1; color: var(--white); letter-spacing: -.01em; }
.stat__u { font-size: .55em; color: var(--muted); margin-left: 2px; }
.stat__l { margin-top: 14px; color: var(--fg); max-width: 230px; }
.stat__tag { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 360px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 38px 38px 30px; transition: border-color .3s; }
.card:hover { border-color: var(--line-3); }
.card__kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.card__title { font-size: 22px; font-weight: 520; line-height: 1.2; color: var(--white); }
.card__text { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.card__cta { margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 15px; }
.card__cta svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__cta svg { transform: translateX(3px); }
.card__glow { position: absolute; left: -20%; right: -20%; bottom: -45%; height: 70%; z-index: -1; border-radius: 50%; filter: blur(44px) saturate(0); opacity: .45; transition: filter .5s ease-out, opacity .5s ease-out; background: radial-gradient(closest-side, var(--glow), transparent); }
.card:hover .card__glow { filter: blur(44px) saturate(1); opacity: .75; }
.card--a { --glow: #2f8a56; } .card--b { --glow: #9a6a2a; } .card--c { --glow: #2f6a9a; } .card--d { --glow: #7a3a9a; } .card--e { --glow: #9a3a4f; } .card--f { --glow: #5a5a5a; }
.card--g { --glow: #2a7a8a; } .card--h { --glow: #8a7a2a; } .card--i { --glow: #4a4ad0; }

/* ---------- Experience / resources ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tl { padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl__head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.tl__title { font-size: 19px; font-weight: 520; color: var(--white); }
.tl__when { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.tl__text { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.split__side .h2 { margin-bottom: 40px; }
.res { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 2px solid var(--line); background: var(--card); border-radius: 20px; margin-bottom: 12px; transition: border-color .3s; }
a.res:hover { border-color: var(--line-3); }
.res__icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.res__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res__title { color: var(--white); font-size: 16px; }
.res__sub { color: var(--muted-2); font-size: 13px; }
.res__arrow { width: 16px; height: 16px; margin-left: auto; color: var(--muted); flex: none; transition: transform .2s; }
a.res:hover .res__arrow { transform: translate(2px, -2px); }
.res__note { margin-top: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border: 2px solid var(--line); border-radius: 28px; background: var(--card); overflow: hidden; }
.faq__item + .faq__item { border-top: 2px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; text-align: left; font-size: 17px; color: var(--white); transition: background .2s; }
.faq__q:hover { background: #121212; }
.faq__chev { width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform .35s var(--ease); }
.faq__item.is-open .faq__chev { transform: rotate(90deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__inner { overflow: hidden; padding: 0 28px; color: var(--muted); line-height: 1.5; transition: padding .4s var(--ease); }
.faq__item.is-open .faq__inner { padding-bottom: 24px; }
.faq__inner a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.section--cta .wrap { padding: 150px var(--pad); }
.cta__title { font-size: clamp(34px, 3vw + 10px, 52px); font-weight: 520; color: var(--white); line-height: 1.1; text-wrap: balance; }
.btn--copy { min-width: 200px; }
.btn__slide { display: block; height: 50px; overflow: hidden; line-height: 50px; }
.btn__slide-inner { display: flex; flex-direction: column; text-align: left; transition: transform .2s; }
.btn--copy.is-copied .btn__slide-inner { transform: translateY(-50px); }

/* ---------- Footer ---------- */
.footer { padding: var(--gap) var(--gap) var(--gap); }
.footer__panel { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); max-width: calc(var(--content) + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad) 36px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.footer__mark { width: 36px; height: 36px; }
.footer__status { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.footer__status-row { display: flex; align-items: center; gap: 10px; }
.footer__status-row:first-child { color: var(--green); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.footer__col a { font-size: 15px; color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 36px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); font-family: var(--mono); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- Keyframes (names mirror mastra.ai) ---------- */
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-fall { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
@keyframes hero-row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes logo-marquee { to { transform: translateX(calc(-50% - 8px)); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes ft-copy-in { from { opacity: 0; transform: translateY(calc(var(--dir, 1) * 10px)); } to { opacity: 1; transform: none; } }
@keyframes ft-media-in { from { opacity: 0; filter: blur(7px); transform: translateY(calc(var(--dir, 1) * 24px)) scale(.985); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes ft-code-in { from { opacity: 0; filter: blur(4px); transform: translateY(calc(var(--dir, 1) * 14px)); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes ft-line-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav__right .btn--ghost { display: none; }
  .nav__logo { margin-right: 14px; }
}
@media (max-width: 1279px) {
  .hero__copy { width: min(100%, 450px); }
  .hero__title { font-size: clamp(40px, 3vw + 12px, 54px); }
  .hero__sub { font-size: 20px; }
  .hero__panel { left: max(49%, 500px); padding: 30px; }
  .slackcard { left: 6px; width: 260px; top: 52%; }
}
@media (max-width: 1180px) {
  .tabs__panel { grid-template-columns: 1fr; }
  .tabs__code { border-right: 0; border-bottom: 2px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 1023px) {
  .nav__links, .nav__right { display: none; }
  .nav__toggle { display: flex; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__copy { padding: 96px 0 56px; width: 100%; max-width: 600px; }
  .hero__panel { position: relative; inset: auto; left: auto; top: auto; margin: 0 calc(-1 * var(--pad)) 0 0; border-top-left-radius: var(--radius); min-height: 0; padding: 28px 0 0 28px; }
  .slackcard { display: none; }
  .trace { border-radius: var(--radius-md) 0 0 0; border-right: 0; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; --radius: 28px; --gap: 18px; }
  .wrap { padding: 80px var(--pad); }
  .section--cta .wrap { padding: 100px var(--pad); }
  .lip { font-size: 13px; height: 36px; padding: 0 14px 0 16px; gap: 8px; }
  .lip__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }
  .hero__sub { font-size: 19px; }
  .trace { font-size: 12px; }
  .trace__row { grid-template-columns: 1fr auto; }
  .trace__v { display: none; }
  .marquee__item { width: 150px; }
  .marquee__logo { font-size: 19px; }
  .tabs { margin-top: 44px; }
  .tabs__bar { display: flex; overflow-x: auto; scrollbar-width: none; }
  .tabs__bar::-webkit-scrollbar { display: none; }
  .tabs__tab { flex: none; padding: 0 16px; height: 54px; font-size: 12px; }
  .tabs__code, .tabs__media { padding: 24px 20px; }
  .code { font-size: 13px; }
  .stats, .cards { grid-template-columns: 1fr; margin-top: 44px; }
  .card { padding: 28px 26px 24px; min-height: 0; }
  .tl__head { flex-direction: column; gap: 4px; }
  .faq__q { padding: 18px 20px; font-size: 16px; }
  .faq__inner { padding: 0 20px; }
  .faq__item.is-open .faq__inner { padding-bottom: 20px; }
  .footer { padding: var(--gap) 12px 12px; }
  .footer__panel { grid-template-columns: 1fr; gap: 36px; padding: 40px 24px 28px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .cycle { transition: none; }
}
