/* Homepage interface layer — December 2026. Brand colors from rebuild.css; form borrowed from the apps owners already use. */
:root { --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; --ax-panel: #12283d; --ax-edge: rgba(255,255,255,0.14); --ax-ok: #7fd1a6; }
body.ax h1, body.ax h2, body.ax h3, body.ax h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.035em; }
body.ax h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0 0 18px; }
.ax-k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ax-k::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); border: 1px solid var(--ink); }
.ax-dark .ax-k { color: var(--yellow); }
.ax-dark .ax-k::before { border-color: var(--yellow); }
.ax-sec { padding: 92px 0; }
.ax-sec.ax-tint { background: var(--blue2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ax-dark { background: var(--dark); color: var(--paper); }
.ax-dark p { color: var(--on-dark); }
.ax-lede { font-size: 19px; color: var(--muted); max-width: 56ch; }
.ax-fine { font-size: 13px; color: var(--muted); }
.ax-dark .ax-fine { color: var(--on-dark-mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero + composer */
.ax-hero { padding: 76px 0 84px; background: radial-gradient(1100px 520px at 50% -10%, #1b3d5e 0%, var(--dark) 62%); }
.ax-hero .wrap { max-width: 900px; }
.ax-hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; margin: 0 0 20px; color: var(--white); }
.ax-hero h1 em { font-style: normal; color: var(--yellow); }
.ax-hero .ax-lede { color: var(--on-dark); margin: 0 0 34px; }
.composer { background: var(--paper); color: var(--ink); border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,255,255,0.05); overflow: hidden; }
.composer-tabs { display: flex; gap: 4px; padding: 10px 10px 0; }
.composer-tabs button { font: 600 14px var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 10px 10px 0 0; padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.composer-tabs button code { font: 500 11px var(--mono); color: var(--blue); background: var(--blue2); border-radius: 5px; padding: 2px 6px; }
.composer-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line); }
.composer-body { background: var(--white); border-top: 1px solid var(--line); }
.composer textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; font: 400 19px/1.5 var(--sans); color: var(--ink); padding: 22px 22px 8px; min-height: 124px; }
.composer textarea::placeholder { color: #8196a8; }
.composer-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 14px 22px; flex-wrap: wrap; }
.composer-meta { margin: 0; font: 500 12px/1.5 var(--mono); color: var(--muted); flex: 1 1 280px; }
.composer-meta strong { color: var(--ink); }
.composer-more { font: 600 14px var(--sans); color: var(--blue); text-decoration: none; white-space: nowrap; }
.composer-more:hover { text-decoration: underline; }
.send { font: 700 15px var(--sans); background: var(--yellow); color: var(--ink); border: 1px solid var(--ink); border-radius: 12px; padding: 12px 18px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.send:hover { background: var(--yellow-hover); }
.composer:focus-within { box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 3px var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.chips span { font: 500 12px var(--mono); color: var(--on-dark-mute); margin-right: 4px; }
.chips button { font: 500 14px var(--sans); color: var(--paper); background: rgba(255,255,255,0.06); border: 1px solid var(--ax-edge); border-radius: 999px; padding: 8px 14px; cursor: pointer; text-align: left; }
.chips button:hover { background: rgba(255,255,255,0.13); border-color: var(--yellow); }
.ax-hero .ax-fine { margin-top: 16px; }
.ax-hero .ax-fine a { color: var(--yellow); }
.ax-who { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-size: 14px; color: var(--on-dark); }
.ax-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--yellow); }
.ax-who strong { color: var(--white); }

/* Split */
.ax-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .ax-split { grid-template-columns: 1fr; gap: 34px; } .ax-sec { padding: 64px 0; } }

/* Run window */
.run { background: var(--dark); color: var(--paper); border-radius: 16px; border: 1px solid var(--shadow-dark); box-shadow: 0 24px 60px rgba(11,28,45,0.28); overflow: hidden; font-size: 15px; }
.run-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ax-edge); font: 500 12px var(--mono); color: var(--on-dark-mute); }
.run-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.run-bar b { margin-left: auto; font-weight: 500; color: var(--ax-ok); display: inline-flex; gap: 6px; align-items: center; }
.run-bar b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ax-ok); animation: axpulse 2s infinite; }
@keyframes axpulse { 50% { opacity: 0.35; } }
.run-msg { margin: 18px 16px 6px auto; max-width: 84%; background: var(--blue); color: var(--white); border-radius: 14px 14px 4px 14px; padding: 12px 16px; width: fit-content; }
.run-steps { list-style: none; margin: 0; padding: 10px 16px 6px; }
.run-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.run-steps li > i { width: 20px; height: 20px; border-radius: 50%; background: rgba(127,209,166,0.16); color: var(--ax-ok); font: 700 12px/20px var(--sans); text-align: center; font-style: normal; margin-top: 2px; }
.run-steps strong { display: block; color: var(--white); font-weight: 600; }
.run-steps small { display: block; font: 400 12px/1.5 var(--mono); color: var(--on-dark-mute); margin-top: 2px; }
.run-hold { margin: 12px 16px 16px; background: var(--ax-panel); border: 1px solid var(--yellow); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.run-hold p { margin: 0; color: var(--white); font-weight: 600; }
.run-hold p small { display: block; font: 400 12px var(--mono); color: var(--yellow); margin-bottom: 3px; }
.run-hold span { display: inline-flex; gap: 8px; }
.run-hold span b { font: 700 13px var(--sans); border-radius: 9px; padding: 8px 14px; background: var(--yellow); color: var(--ink); }
.run-hold span b + b { background: transparent; color: var(--paper); border: 1px solid var(--ax-edge); }
@media (prefers-reduced-motion: no-preference) {
  .run.reveal .run-steps li, .run.reveal .run-hold { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
  .run.reveal.in .run-steps li, .run.reveal.in .run-hold { opacity: 1; transform: none; }
  .run.in .run-steps li:nth-child(1) { transition-delay: 0.3s; } .run.in .run-steps li:nth-child(2) { transition-delay: 0.7s; }
  .run.in .run-steps li:nth-child(3) { transition-delay: 1.1s; } .run.in .run-steps li:nth-child(4) { transition-delay: 1.5s; }
  .run.in .run-hold { transition-delay: 2s; }
}

/* Tools (the three things to ask for) */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 980px) { .tools { grid-template-columns: 1fr; } }
.tool { background: var(--ax-panel); border: 1px solid var(--ax-edge); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.tool-cmd { font: 500 12px var(--mono); color: var(--yellow); background: rgba(255,213,74,0.1); border: 1px solid rgba(255,213,74,0.35); border-radius: 6px; padding: 3px 8px; align-self: flex-start; margin-bottom: 16px; }
.tool h3 { font-size: 28px; line-height: 1.05; color: var(--white); margin: 0 0 10px; }
.tool > p { font-size: 15px; margin: 0 0 18px; }
.tool-rows { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--ax-edge); }
.tool-rows li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--ax-edge); font-size: 14px; color: var(--on-dark); }
.tool-rows li b { font: 600 14px var(--mono); color: var(--white); white-space: nowrap; }
.tool-rows li em { font: 500 11px var(--mono); font-style: normal; color: var(--on-dark-mute); white-space: nowrap; }
.tool .ax-fine { margin: 0 0 18px; }
.tool-go { margin-top: auto; display: grid; gap: 8px; }
.tool-go a { font: 700 14px var(--sans); text-decoration: none; border-radius: 11px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--ax-edge); color: var(--paper); }
.tool-go a:hover { border-color: var(--yellow); }
.tool-go a:first-child { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tool-go a:first-child:hover { background: var(--yellow-hover); }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 36px; }
@media (max-width: 980px) { .apps { grid-template-columns: repeat(2, 1fr); } }
.app { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); display: block; transition: transform 0.15s, border-color 0.15s; }
.app:hover { transform: translateY(-2px); border-color: var(--blue); }
.app i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--dark); color: var(--yellow); font: 700 15px var(--mono); font-style: normal; margin-bottom: 12px; }
.app strong { display: block; font-size: 15px; line-height: 1.25; }
.app span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 4px; }

/* Proof metrics */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 28px; }
@media (max-width: 760px) { .metrics { grid-template-columns: 1fr; } }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.metric b { display: block; font: 700 40px/1 var(--sans); letter-spacing: -0.04em; }
.metric span { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
body.ax .work-card { border-radius: 16px; overflow: hidden; }

/* Close */
.ax-close { text-align: center; }
.ax-close .wrap { max-width: 860px; }
.ax-close-go { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
@media (max-width: 760px) { .ax-close-go { grid-template-columns: 1fr; } .composer textarea { font-size: 17px; min-height: 140px; } .composer-tabs button code { display: none; } .composer-tabs button { padding: 10px 12px; } .send { flex: 1 1 100%; justify-content: center; } }
.ax-close-go a { background: var(--ax-panel); border: 1px solid var(--ax-edge); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--paper); text-align: left; }
.ax-close-go a:hover { border-color: var(--yellow); }
.ax-close-go code { font: 500 12px var(--mono); color: var(--yellow); }
.ax-close-go strong { display: block; font-size: 18px; margin: 6px 0 2px; color: var(--white); }
.ax-close-go span { font-size: 13px; color: var(--on-dark-mute); }
.ax-dark p a:not(.text-link):not(.btn), .ax-dark .ax-fine a { color: var(--yellow); }
.ax-dark .composer p.composer-meta { color: #3d5468; }
.ax-dark .composer p.composer-meta strong { color: var(--ink); }
