/* Sheep home redesign — values mirror sheep-design tokens + artboard spec */

:root {
    --ix-black: #0a0a0a;
    --ix-card: #181818;
    --ix-raised: #1f1f1f;
    --ix-panel: #101010;
    --ix-inset: #131313;
    --ix-console: #0d0d0d;
    --ix-rule: #1a1a1a;
    --ix-row: #1f1f1f;
    --ix-border: #2a2a2a;
    --ix-border-in: #333333;
    --ix-border-strong: #3d3d3d;
    --ix-white: #ffffff;
    --ix-text: #e0e0e0;
    --ix-muted: #888888;
    --ix-faint: #666666;
    --ix-red: #cf000f;
    --ix-red-hover: #e00712;
    --ix-red-soft: rgba(207, 0, 15, .10);
    --ix-nav-h: 68px;
    --ix-footer-h: 50px;
    --ix-max: 1280px;
    --ix-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root { color-scheme: dark; }

* { box-sizing: border-box; }

/* The UA rule for [hidden] is display:none, but it loses to any author
   `display` on the same element (.ix-ask sets display:flex), which silently
   turned every `el.hidden = true` into a no-op. !important is required here:
   [hidden] and a single class have equal specificity, so source order alone
   would not settle it. */
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--ix-nav-h);
    scroll-padding-bottom: var(--ix-footer-h);
    /* Solto por padrao. O encaixe firme entra so quando a tela tem altura
       para conter uma secao inteira — ver o bloco min-height abaixo. */
    scroll-snap-type: y proximity;
}

/* Uma secao por tela. Fica atras de uma media query de ALTURA porque
   mandatory numa tela baixa prende o visitante: se a secao nao couber, o
   navegador puxa de volta para o ponto de encaixe e o rodape da secao vira
   conteudo inalcancavel. */
@media (min-height: 800px) {
    html { scroll-snap-type: y mandatory; }
}

body {
    margin: 0;
    background: var(--ix-black);
    color: var(--ix-text);
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ix-white); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ix-red); }
::selection { background: rgba(207, 0, 15, .35); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.ix-skip { position: absolute; left: -9999px; }
.ix-skip:focus {
    left: 12px; top: 12px; z-index: 200; padding: 10px 16px;
    background: var(--ix-white); color: var(--ix-black); border-radius: 4px;
}

/* ---------- buttons (design system Button) ---------- */

.ix-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 600; line-height: 1;
    padding: 11px 22px; font-size: 13px;
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ix-btn--primary {
    background: var(--ix-red); color: var(--ix-white); border-radius: 0;
}
.ix-btn--primary:hover { background: var(--ix-red-hover); color: var(--ix-white); }
.ix-btn--ghost {
    background: transparent; color: var(--ix-white);
    border-color: var(--ix-border-in); border-radius: 4px;
}
.ix-btn--ghost:hover {
    background: var(--ix-raised); border-color: var(--ix-border-strong); color: var(--ix-white);
}
.ix-btn--sm { padding: 7px 14px; font-size: 12px; }

/* ---------- nav ---------- */

.ix-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--ix-nav-h); display: flex; align-items: center; padding: 0 32px;
    background: rgba(10, 10, 10, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ix-rule);
}
.ix-nav-inner {
    width: 100%; max-width: var(--ix-max); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ix-brand { display: flex; align-items: center; gap: 10px; }
.ix-brand img { height: 24px; width: auto; display: block; }
.ix-brand-word { font-size: 18px; font-weight: 600; color: var(--ix-white); letter-spacing: -.02em; }
.ix-brand-dot { color: var(--ix-red); }

.ix-navlinks { display: flex; align-items: center; gap: 24px; }
.ix-navlinks a {
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ix-faint);
}
.ix-navlinks a:hover, .ix-navlinks a.is-active { color: var(--ix-white); }

.ix-nav-actions { display: flex; align-items: center; gap: 16px; }
.ix-nav-login {
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ix-faint);
}
.ix-nav-login:hover { color: var(--ix-white); }

.ix-burger {
    display: none; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0;
    background: transparent; border: 1px solid var(--ix-border); border-radius: 4px; cursor: pointer;
}
.ix-burger span { display: block; width: 16px; height: 1px; background: var(--ix-white); position: relative; }
.ix-burger span::before, .ix-burger span::after {
    content: ''; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ix-white);
}
.ix-burger span::before { top: -5px; }
.ix-burger span::after { top: 5px; }

.ix-drawer {
    position: fixed; top: var(--ix-nav-h); left: 0; right: 0; z-index: 99;
    background: var(--ix-card); border-bottom: 1px solid var(--ix-border);
    padding: 8px 24px 16px;
}
.ix-drawer a {
    display: block; padding: 13px 0;
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ix-text); border-bottom: 1px solid var(--ix-row);
}
.ix-drawer a:last-child { border-bottom: 0; }

/* ---------- scroll rail ---------- */

.ix-rail {
    position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
    z-index: 90; display: none; flex-direction: column; gap: 13px;
}
.ix-rail a {
    width: 7px; height: 7px; border-radius: 999px;
    border: 1px solid var(--ix-faint); background: transparent;
    transition: background .2s ease, border-color .2s ease;
}
.ix-rail a.is-active { background: var(--ix-red); border-color: var(--ix-red); }

/* ---------- section shell ---------- */

.ix-sec {
    scroll-snap-align: start; scroll-snap-stop: always;
    /* A faixa entre as duas barras fixas. Com encaixe firme a secao tem de
       caber nela inteira, senao o encaixe esconde o proprio rodape da secao. */
    min-height: calc(100svh - var(--ix-nav-h) - var(--ix-footer-h));
    display: flex; align-items: center;
    border-top: 1px solid var(--ix-rule);
}
.ix-sec:first-of-type { border-top: 0; }
.ix-wrap {
    width: 100%; max-width: var(--ix-max); margin: 0 auto;
    padding: 40px 32px; display: flex; flex-direction: column; gap: 24px;
}
.ix-wrap--narrow { max-width: 900px; text-align: center; align-items: center; gap: 22px; }
.ix-wrap--narrow .ix-lead { max-width: 620px; }
.ix-head { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.ix-head--tight { gap: 14px; }
.ix-head--center { max-width: none; text-align: center; align-items: center; }

.ix-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ix-faint);
}
.ix-h2 {
    font-size: clamp(34px, 4.6vw, 52px); color: var(--ix-white);
    line-height: 1.04; letter-spacing: -.025em;
}
.ix-h2--sm { font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -.02em; }
.ix-h2--cta { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; }
.ix-lead { font-size: 16px; line-height: 1.6; color: var(--ix-text); max-width: 500px; }
.ix-lead--muted { color: var(--ix-muted); }
.ix-sub { font-size: 15px; line-height: 1.65; color: var(--ix-muted); max-width: 620px; }
.ix-split {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 52px; align-items: center;
}
.ix-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

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

#Home { padding-top: var(--ix-nav-h); min-height: calc(100svh - var(--ix-footer-h)); }
#Home .ix-wrap { padding: 84px 24px 32px; align-items: center; text-align: center; gap: 24px; }

.ix-hero-brand { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ix-hero-brand img { height: 46px; width: auto; }
.ix-hero-word {
    font-size: clamp(38px, 5vw, 54px); font-weight: 600; color: var(--ix-white);
    letter-spacing: -.035em; line-height: 1;
}
.ix-hero-tagline {
    font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ix-faint); min-height: 20px;
}
.ix-hero-headline {
    font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; color: var(--ix-white);
    letter-spacing: -.03em; line-height: 1.05; min-height: 1.1em;
    max-width: 16ch; margin: 6px auto 0; text-wrap: balance;
}
.ix-caret {
    display: inline-block; width: 2px; height: 1em; background: var(--ix-red);
    vertical-align: -.12em; animation: ixBlink 1s steps(2, start) infinite;
}
@keyframes ixBlink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.ix-reveal { animation: ixReveal .5s ease both; }
@keyframes ixReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ix-ask { width: 100%; max-width: 780px; display: flex; flex-direction: column; gap: 14px; }
.ix-ask-row { position: relative; display: block; }
.ix-ask-row input {
    width: 100%; padding: 22px 76px 22px 22px;
    background: var(--ix-card); border: 1px solid var(--ix-border); border-radius: 6px;
    color: var(--ix-white); font-family: inherit; font-size: 16px; line-height: 1.5;
    outline: none; transition: border-color .18s ease;
}
.ix-ask-row input::placeholder { color: var(--ix-faint); }
.ix-ask-row input:focus { border-color: var(--ix-border-in); }
.ix-ask-send {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ix-red); border: 0; border-radius: 4px; color: var(--ix-white);
    cursor: pointer; transition: background .15s ease;
}
.ix-ask-send:hover { background: var(--ix-red-hover); }

.ix-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ix-chip {
    padding: 9px 16px;
    background: transparent; border: 1px solid var(--ix-border); border-radius: 999px;
    color: var(--ix-muted); font-family: inherit; font-size: 13px;
    cursor: pointer; transition: border-color .18s ease, color .18s ease;
}
.ix-chip:hover { border-color: var(--ix-border-strong); color: var(--ix-white); }

.ix-hero-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px 22px; font-size: 12px; color: var(--ix-faint);
}
.ix-hero-meta .ix-sep { color: var(--ix-border); }

.ix-scrollcue {
    display: inline-flex; align-self: center; align-items: center; gap: 10px;
    margin-top: 18px;
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ix-faint);
}
.ix-scrollcue:hover { color: var(--ix-white); }
.ix-scrollcue span:last-child { animation: ixNudge 1.9s ease-in-out infinite; }
@keyframes ixNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- cards (design system Card) ---------- */

.ix-card {
    background: var(--ix-card); border: 1px solid var(--ix-border); border-radius: 8px;
    padding: 24px; display: flex; flex-direction: column; gap: 14px;
    transition: background .18s ease, border-color .18s ease;
}
.ix-card:hover { background: var(--ix-raised); border-color: var(--ix-border-strong); }
.ix-card h3 { font-size: 17px; color: var(--ix-white); letter-spacing: -.01em; }
.ix-card p { font-size: 14px; line-height: 1.6; color: var(--ix-muted); }
.ix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* ---------- bordered row lists ---------- */

.ix-list li {
    padding: 14px 0; border-bottom: 1px solid var(--ix-row);
    font-size: 15px; color: var(--ix-text);
}
.ix-list li:last-child { border-bottom: 0; }
.ix-apilist { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 32px; }
.ix-apilist span {
    padding: 14px 0; border-bottom: 1px solid var(--ix-row);
    font-size: 14px; color: var(--ix-text);
}
.ix-apilist .is-sheep { color: var(--ix-white); }

/* ---------- big number ---------- */

.ix-bignum {
    padding: 56px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px;
    background: var(--ix-panel); border: 1px solid var(--ix-border); border-radius: 8px;
}
.ix-bignum-val { display: flex; align-items: flex-start; gap: 6px; }
.ix-bignum-val b {
    font-size: clamp(96px, 12vw, 150px); font-weight: 600; color: var(--ix-white);
    line-height: .82; letter-spacing: -.04em;
}
.ix-bignum-val em { font-style: normal; font-size: 40px; font-weight: 600; line-height: 1; color: var(--ix-red); }
.ix-bignum-rule { width: 64px; height: 1px; background: var(--ix-border); }
.ix-bignum-label { font-size: 15px; color: var(--ix-muted); text-align: center; letter-spacing: .02em; }

/* ---------- console mock ---------- */

.ix-mock {
    background: var(--ix-console); border: 1px solid var(--ix-border); border-radius: 8px;
    overflow: hidden;
}
.ix-mock--term { background: var(--ix-panel); }
.ix-mock-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 16px; border-bottom: 1px solid var(--ix-row);
}
.ix-mock-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; color: var(--ix-white);
}
.ix-mock-title--chan {
    font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ix-faint); gap: 8px;
}
.ix-dot { width: 5px; height: 5px; border-radius: 999px; background: var(--ix-red); flex: 0 0 auto; }
.ix-mock-tag { font-family: var(--ix-mono); font-size: 10px; color: var(--ix-faint); }
.ix-mock-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.ix-mock-note {
    padding: 11px 16px; border-top: 1px solid var(--ix-row);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 10px; color: var(--ix-muted);
}
.ix-mock-note .ix-mock-quota { font-family: var(--ix-mono); }

.ix-console { display: grid; grid-template-columns: 128px 1fr; }
.ix-console-side {
    border-right: 1px solid var(--ix-row);
    padding: 12px 0; display: flex; flex-direction: column; gap: 1px;
}
.ix-console-side span {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px;
    font-size: 11px; font-weight: 500; color: var(--ix-muted); background: transparent;
}
.ix-console-side span.is-active { color: var(--ix-white); background: var(--ix-red-soft); }
.ix-ico { width: 12px; height: 12px; flex: 0 0 auto; }
.ix-mark { width: 13px; height: 13px; flex: 0 0 auto; opacity: .9; }
.ix-console-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }

.ix-bubble { font-size: 12px; line-height: 1.5; }
.ix-bubble--user {
    align-self: flex-end; max-width: 78%; padding: 9px 13px;
    background: var(--ix-raised); border: 1px solid var(--ix-border-in); border-radius: 4px;
    color: var(--ix-white);
}
.ix-bubble--ai {
    align-self: flex-start; display: flex; align-items: flex-start; gap: 11px;
    line-height: 1.6; color: var(--ix-text);
}
.ix-bubble--ai .ix-mark { margin-top: 2px; }
.ix-ttps { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-ttp {
    padding: 4px 8px; background: transparent;
    border: 1px solid var(--ix-border); border-radius: 3px;
    font-family: var(--ix-mono); font-size: 10px; color: var(--ix-muted);
}
.ix-console-input {
    display: flex; align-items: center; gap: 10px; padding: 11px 13px;
    background: var(--ix-inset); border: 1px solid var(--ix-border); border-radius: 4px;
    font-size: 12px; color: var(--ix-faint);
}
.ix-console-input span { flex: 1; }
.ix-console-input i {
    width: 26px; height: 24px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ix-red); color: var(--ix-white); border-radius: 3px; font-style: normal;
}
.ix-console-input i svg { width: 11px; height: 11px; }

.ix-term { font-family: var(--ix-mono); font-size: 13px; line-height: 1.6; }
.ix-term-group { display: flex; flex-direction: column; gap: 6px; }
.ix-term .ix-cmd { color: var(--ix-red); }
.ix-term .ix-out { color: var(--ix-muted); }

/* ---------- code + endpoints ---------- */

.ix-code {
    margin: 0; padding: 22px;
    background: var(--ix-panel); border: 1px solid var(--ix-border); border-radius: 8px;
    font-family: var(--ix-mono); font-size: 13px; line-height: 1.75; color: var(--ix-text);
    overflow-x: auto; white-space: pre;
}
.ix-code .ix-comment { color: var(--ix-faint); }
.ix-code .ix-str { color: var(--ix-muted); }
.ix-endpoints {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px;
    margin-top: 16px;
}
.ix-endpoint {
    padding: 18px; display: flex; flex-direction: column; gap: 6px;
    background: var(--ix-inset); border: 1px solid var(--ix-border); border-radius: 8px;
}
.ix-endpoint code { font-family: var(--ix-mono); font-size: 15px; color: var(--ix-red); }
.ix-endpoint span { font-size: 12px; color: var(--ix-muted); }

/* ---------- CLI install ---------- */

.ix-tabs { display: flex; justify-content: center; gap: 10px; }
.ix-tab {
    padding: 11px 20px;
    background: transparent; border: 1px solid var(--ix-border); border-radius: 4px;
    color: var(--ix-muted); font-family: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ix-tab:hover { color: var(--ix-white); border-color: var(--ix-border-strong); }
.ix-tab.is-active { color: var(--ix-white); border-color: var(--ix-red); background: var(--ix-red-soft); }
.ix-install {
    width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
    padding: 20px 22px;
    background: var(--ix-panel); border: 1px solid var(--ix-border); border-radius: 8px;
}
.ix-install code {
    flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
    font-family: var(--ix-mono); font-size: 14px; color: var(--ix-text);
}
.ix-copy {
    flex: 0 0 auto; width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ix-raised); border: 1px solid var(--ix-border-in); border-radius: 4px;
    color: var(--ix-muted); font-family: inherit; font-size: 11px; cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}
.ix-copy:hover { color: var(--ix-white); border-color: var(--ix-border-strong); }
.ix-copy.is-copied { color: var(--ix-red); border-color: var(--ix-red); }
.ix-copy svg { width: 15px; height: 15px; }
.ix-cli-note { font-size: 13px; color: var(--ix-faint); }
.ix-cli-note a { color: var(--ix-red); }
.ix-cli-note a:hover { color: var(--ix-red-hover); }

/* ---------- plans ---------- */

.ix-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ix-plan {
    display: flex; flex-direction: column; gap: 18px; height: 100%;
    padding: 24px;
    background: var(--ix-card); border: 1px solid var(--ix-border); border-radius: 8px;
}
.ix-plan--featured { border-color: var(--ix-red); }
.ix-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ix-plan-name { font-size: 20px; font-weight: 600; color: var(--ix-white); letter-spacing: -.01em; }
.ix-plan-badge {
    font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ix-red);
}
.ix-plan-price {
    font-size: 38px; font-weight: 600; color: var(--ix-white);
    letter-spacing: -.02em; line-height: 1;
}
.ix-plan-price small { font-size: 14px; font-weight: 500; color: var(--ix-muted); letter-spacing: 0; }
.ix-plan-term { font-size: 14px; color: var(--ix-muted); }
.ix-plan ul { flex: 1; display: flex; flex-direction: column; }
.ix-plan ul li {
    padding: 10px 0; border-bottom: 1px solid var(--ix-row);
    font-size: 14px; color: var(--ix-muted);
}
.ix-plan ul li:last-child { border-bottom: 0; }
.ix-plan .ix-btn { width: 100%; }
.ix-plans-note { text-align: center; font-size: 14px; color: var(--ix-faint); }

/* ---------- closing + footer ---------- */

.ix-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ix-linkcard {
    background: var(--ix-card); border: 1px solid var(--ix-border); border-radius: 8px;
    padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.ix-links-title { font-size: 19px; font-weight: 600; color: var(--ix-white); letter-spacing: -.01em; }
.ix-links { display: flex; flex-direction: column; }
.ix-links a {
    padding: 15px 0; border-bottom: 1px solid var(--ix-row);
    font-size: 15px; color: var(--ix-text);
}
.ix-links a:last-child { border-bottom: 0; }
.ix-links a:hover { color: var(--ix-red); }

#ix-page { padding-bottom: var(--ix-footer-h); }

.ix-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    background: var(--ix-black); border-top: 1px solid var(--ix-rule);
}
.ix-footer-inner {
    max-width: var(--ix-max); margin: 0 auto; padding: 13px 32px;
    min-height: var(--ix-footer-h);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    font-size: 12px; color: var(--ix-faint);
}
.ix-footer-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ix-footer-group .ix-sep { color: var(--ix-border); }
.ix-footer a { color: var(--ix-faint); }
.ix-footer a:hover { color: var(--ix-white); }
.ix-footer button {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--ix-faint); font-family: inherit; font-size: 12px;
}
.ix-footer button:hover { color: var(--ix-white); }

.ix-lang { display: inline-flex; align-items: center; gap: 10px; }
.ix-lang a { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ix-faint); }
.ix-lang a:hover { color: var(--ix-white); }
.ix-lang a.is-active { color: var(--ix-red); }

/* ---------- breakpoints ---------- */

@media (min-width: 900px) { .ix-rail { display: flex; } }

@media (max-width: 1100px) {
    .ix-footer-tag { display: none; }
}

@media (max-width: 1023px) {
    .ix-navlinks { display: none; }
    .ix-burger { display: flex; }
}

@media (max-width: 860px) {
    html { scroll-snap-type: none; }
    .ix-sec { min-height: 0; scroll-snap-align: none; scroll-snap-stop: normal; }
    .ix-sec#Home { min-height: 100svh; }
    .ix-wrap { padding: 64px 20px; }
    #Home .ix-wrap { padding: 84px 20px 36px; }
    .ix-console { grid-template-columns: 1fr; }
    .ix-console-side { display: none; }
    .ix-bignum { padding: 40px 26px; gap: 20px; }
    .ix-footer { position: static; }
    .ix-footer-tag { display: inline; }
    .ix-footer-inner { padding: 32px 20px; min-height: 0; }
    #ix-page { padding-bottom: 0; }
}

@media (max-width: 560px) {
    .ix-nav { padding: 0 18px; }
    .ix-wrap { padding: 56px 18px; }
    #Home .ix-wrap { padding: 80px 18px 32px; }
    .ix-hero-brand { gap: 11px; }
    .ix-hero-brand img { height: 34px; }
    .ix-hero-tagline { font-size: 10px; letter-spacing: .1em; }
    .ix-ask-row input { padding: 18px 64px 18px 16px; font-size: 15px; }
    .ix-ask-send { width: 40px; height: 40px; right: 11px; }
    .ix-chip { font-size: 12px; padding: 8px 13px; }
    .ix-install { flex-direction: column; align-items: stretch; gap: 12px; }
    .ix-copy { width: 100%; }
    .ix-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ix-reveal, .ix-caret, .ix-scrollcue span:last-child { animation: none; }
}

.ix-sr {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Held invisible (not removed, so the layout does not shift) until the
   typing effect takes over. Only ever set by script. */
[data-ix-type].is-armed { visibility: hidden; }

/* ---------- demo chat ---------- */

.ix-thread {
    display: flex; flex-direction: column; gap: 18px;
    max-height: 46vh; overflow-y: auto;
    text-align: left; padding-right: 4px;
}
.ix-msg { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.ix-msg--user { align-items: flex-end; }
.ix-msg--user p {
    max-width: 86%; padding: 10px 14px;
    background: var(--ix-raised); border: 1px solid var(--ix-border-in); border-radius: 4px;
    color: var(--ix-white); font-size: 15px; line-height: 1.5;
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.ix-msg--ai { align-self: stretch; flex-direction: row; gap: 14px; }
.ix-msg-mark { flex: none; height: 20px; width: auto; margin-top: 3px; opacity: .85; }
.ix-msg-body { flex: 1; min-width: 0; }
.ix-msg--ai .ix-msg-body p {
    font-size: 15px; line-height: 1.65; color: var(--ix-text);
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.ix-msg--ai .ix-msg-body p + p { margin-top: 10px; }
.ix-msg--error p { color: var(--ix-muted); }

.ix-typing { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; }
.ix-typing span {
    width: 5px; height: 5px; border-radius: 999px; background: var(--ix-red);
    animation: ixDot 1.1s ease-in-out infinite;
}
.ix-typing span:nth-child(2) { animation-delay: .16s; }
.ix-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes ixDot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.ix-gate {
    max-width: 780px; padding: 26px 28px; text-align: left;
    display: flex; flex-direction: column; gap: 20px;
    background: var(--ix-card); border: 1px solid var(--ix-border); border-radius: 8px;
}
.ix-gate-title { font-size: 17px; font-weight: 600; color: var(--ix-white); letter-spacing: -.01em; }
.ix-gate-desc { font-size: 14px; line-height: 1.55; color: var(--ix-muted); }

/* Once the visitor sends the first message the hero yields the space to the
   conversation: the intro copy stops competing with the thread. */
#Home.is-chatting .ix-hero-brand,
#Home.is-chatting .ix-hero-tagline,
#Home.is-chatting .ix-hero-headline,
#Home.is-chatting .ix-chips { display: none; }
#Home.is-chatting .ix-wrap { gap: 18px; }

/* Out of turns: the composer goes away with the allowance, leaving the
   conversation and the closing card. */
#Home.is-gated .ix-ask-row,
#Home.is-gated .ix-chips { display: none; }

.ix-quota { display: inline-flex; align-items: center; gap: 22px; }

@media (prefers-reduced-motion: reduce) {
    .ix-typing span { animation: none; opacity: .7; }
}

/* Scrollbars: 8px with a #2a2a2a thumb on a transparent track, per the
   artboard. The Firefox properties carry the same intent. */
.ix-thread,
.ix-code,
.ix-install code {
    scrollbar-width: thin;
    scrollbar-color: var(--ix-border) transparent;
}
.ix-thread::-webkit-scrollbar,
.ix-code::-webkit-scrollbar,
.ix-install code::-webkit-scrollbar { width: 8px; height: 8px; }
.ix-thread::-webkit-scrollbar-track,
.ix-code::-webkit-scrollbar-track,
.ix-install code::-webkit-scrollbar-track { background: transparent; }
.ix-thread::-webkit-scrollbar-thumb,
.ix-code::-webkit-scrollbar-thumb,
.ix-install code::-webkit-scrollbar-thumb {
    background: var(--ix-border); border-radius: 8px;
}
.ix-thread::-webkit-scrollbar-thumb:hover,
.ix-code::-webkit-scrollbar-thumb:hover,
.ix-install code::-webkit-scrollbar-thumb:hover { background: var(--ix-border-strong); }

.ix-msg-note {
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid var(--ix-row);
    font-size: 13px; line-height: 1.5; color: var(--ix-faint);
}
.ix-msg-note a { color: var(--ix-red); }
.ix-msg-note a:hover { color: var(--ix-red-hover); }
