/* Home page: the product landing page. Dark hero and bands; the rest follows the portal's light/dark tokens. */

.home-page { --hx-ink: #e8eefc; --hx-ink-2: rgba(232, 238, 252, 0.7); --hx-navy: #0b1328; --hx-navy-2: #0f1d3a;
  --hx-teal: #2dd4bf; --hx-blue: #60a5fa; --hx-green: #34d399; --hx-amber: #fbbf24; --hx-red: #f87171; }
.home-page main { overflow-x: clip; }
.hx-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.hi { width: 18px; height: 18px; flex: none; }
.hx-section { padding-block: 96px; }
.hx-band { background: var(--surface); border-block: 1px solid var(--border); }
.hx-head { max-width: 760px; margin: 0 auto 48px; text-align: center; display: grid; gap: 12px; }
.hx-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.hx-h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 760; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.hx-text { color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 60ch; }
.hx-text.center { margin-inline: auto; text-align: center; }
.home-page .btn .hi { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- Hero */
.hx-hero, .hx-cta, .hx-dark { position: relative; color: var(--hx-ink); background: radial-gradient(120% 120% at 20% 0%, #13254d 0%, var(--hx-navy) 55%, #070c1a 100%); isolation: isolate; }
.hx-hero { padding-block: 72px 96px; }
.hx-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.hx-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 40% 20%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 40% 20%, #000 0%, transparent 70%); }
.hx-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.45; animation: hxDrift 18s ease-in-out infinite alternate; }
.hx-glow-a { width: 560px; height: 560px; top: -240px; right: -120px; background: #10b981; }
.hx-glow-b { width: 480px; height: 480px; bottom: -260px; left: -160px; background: #2563eb; animation-delay: -6s; }
@keyframes hxDrift { to { transform: translate(-60px, 40px) scale(1.1); } }

.hx-hero-inner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hx-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(45, 212, 191, 0.35); background: rgba(45, 212, 191, 0.08); color: #99f6e4; font-size: 13px; font-weight: 650; letter-spacing: 0.02em; }
.hx-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hx-teal); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); animation: hxPing 2s ease-out infinite; }
@keyframes hxPing { to { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } }
.hx-title { margin: 22px 0 18px; font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.hx-title span { background: linear-gradient(90deg, #5eead4 0%, #60a5fa 55%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-title-sm { font-size: clamp(32px, 4.4vw, 52px); }
.hx-lede { font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; color: var(--hx-ink-2); max-width: 56ch; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hx-actions-center { justify-content: center; }
.home-page .btn-primary { background: linear-gradient(135deg, #10b981, #0ea5e9); border: 0; color: #fff; box-shadow: 0 12px 30px -12px rgba(16, 185, 129, 0.7); }
.home-page .btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, #10b981, #0ea5e9); }
.hx-btn-ghost { color: var(--hx-ink); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); }
.hx-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.hx-proof { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--hx-ink-2); font-size: 14.5px; }
.hx-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hx-proof .hi { color: var(--hx-teal); }

/* Product illustration */
.hx-stage { position: relative; padding-bottom: 240px; animation: hxRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes hxRise { from { opacity: 0; transform: translateY(24px); } }
.hx-window { border-radius: 16px; overflow: hidden; background: #0d1117; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.hx-window-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: #161b22; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.hx-dots { display: inline-flex; gap: 7px; }
.hx-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.hx-dots i:nth-child(2) { background: #febc2e; }
.hx-dots i:nth-child(3) { background: #28c840; }
.hx-url { display: inline-flex; align-items: center; gap: 6px; flex: 1; justify-content: center; font: 12px var(--mono); color: #8b949e; background: #0d1117; border-radius: 7px; padding: 5px 10px; }
.hx-url .hi { width: 12px; height: 12px; color: var(--hx-green); }
.hx-window-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 360px; }
.hx-term { border-right: 1px solid rgba(255, 255, 255, 0.07); min-width: 0; }
.hx-term-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 8px 0; background: #11161d; font: 11.5px var(--mono); color: #8b949e; }
.hx-term-tabs span { padding: 5px 10px; border-radius: 6px 6px 0 0; }
.hx-term-tabs .is-on { background: #0d1117; color: #e6edf3; }
.hx-term-split { margin-left: auto; display: inline-flex; }
.hx-term-split .hi { width: 14px; height: 14px; }
.hx-term-text, .hx-phone pre, .hx-pane pre, .hx-cli { margin: 0; font: 12.5px/1.65 var(--mono); color: #e6edf3; white-space: pre-wrap; word-break: break-word; }
.hx-term-text { padding: 14px 16px; white-space: normal; }
.home-page .p { color: #7ee787; font-weight: 600; }
.home-page .c { color: #79c0ff; font-weight: 600; }
.home-page .dim { color: #8b949e; }
.home-page .ok { color: #3fb950; }
.home-page .bad { color: #f85149; }
.home-page .k { color: #ff7b72; }
.hx-term-text .l { display: block; white-space: pre-wrap; opacity: 0; animation: hxLine 0.35s ease-out forwards; }
.l1 { animation-delay: 0.5s !important; } .l2 { animation-delay: 1.1s !important; } .l3 { animation-delay: 1.2s !important; } .l4 { animation-delay: 1.3s !important; }
.l5 { animation-delay: 3.2s !important; } .l6 { animation-delay: 4.2s !important; } .l7 { animation-delay: 4.8s !important; } .l8 { animation-delay: 5.3s !important; }
@keyframes hxLine { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hx-cursor { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: #e6edf3; animation: hxBlink 1.1s steps(1) infinite; }
@keyframes hxBlink { 50% { opacity: 0; } }

.hx-chat { padding: 14px; display: grid; gap: 10px; align-content: start; background: #0f141b; min-width: 0; }
.hx-chat-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #e6edf3; }
.hx-chat-title .hi { width: 15px; height: 15px; color: var(--hx-blue); }
.hx-bubble { justify-self: end; max-width: 92%; padding: 8px 11px; border-radius: 12px 12px 3px 12px; background: #1f6feb; color: #fff; font-size: 12.5px; line-height: 1.45; }
.hx-card { border: 1px solid rgba(255, 255, 255, 0.09); border-left: 3px solid #3fb950; border-radius: 9px; background: #161b22; padding: 8px 10px; display: grid; gap: 6px; font-size: 11.5px; color: #c9d1d9; }
.hx-card p { display: flex; justify-content: space-between; align-items: center; color: #8b949e; font-weight: 600; }
.hx-card code { font: 11.5px var(--mono); color: #e6edf3; background: #0d1117; padding: 5px 7px; border-radius: 6px; overflow-wrap: anywhere; }
.hx-card-mod { border-left-color: #f85149; animation: hxGlow 2.4s ease-in-out infinite; }
@keyframes hxGlow { 50% { box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.18); } }
.hx-card-actions { display: flex; gap: 6px; }
.hx-card-actions b, .hx-card-actions span { padding: 3px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.15); font-size: 11px; font-weight: 600; }
.hx-card-actions b { background: #da3633; border-color: #da3633; color: #fff; }
.home-page em[class^="r-"] { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid; }
.r-safe { color: #3fb950; border-color: rgba(63, 185, 80, 0.5); }
.r-mod { color: #d29922; border-color: rgba(210, 153, 34, 0.55); }
.r-danger { color: #f85149; border-color: rgba(248, 81, 73, 0.55); }
.r-block { color: #fff; background: #da3633; border-color: #da3633; }
.hx-answer { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: #c9d1d9; }
.hx-answer .hi { width: 15px; height: 15px; color: #3fb950; margin-top: 2px; }

.hx-phone { position: absolute; right: -28px; bottom: 0; width: 160px; padding: 9px; border-radius: 28px; background: #05070c; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85); animation: hxFloat 6s ease-in-out infinite; }
@keyframes hxFloat { 50% { transform: translateY(-10px); } }
.hx-phone-notch { width: 54px; height: 16px; margin: 0 auto 6px; border-radius: 0 0 12px 12px; background: #000; }
.hx-phone-screen { border-radius: 20px; overflow: hidden; background: #1e1e1e; display: grid; }
.hx-phone-head { display: flex; align-items: center; gap: 6px; padding: 7px 10px; font: 10.5px var(--mono); color: #e6edf3; background: #252526; }
.hx-phone-head i { width: 6px; height: 6px; border-radius: 50%; background: #3fb950; }
.hx-phone pre { padding: 9px 10px; min-height: 120px; font-size: 9.5px; }
.hx-phone .hx-cursor { width: 6px; height: 11px; }
.hx-phone-keys { display: flex; gap: 4px; padding: 6px; background: #252526; border-top: 1px solid #3c3c3c; }
.hx-phone-keys span { flex: 1; text-align: center; font: 600 8.5px var(--mono); color: #d4d4d4; background: #333; border: 1px solid #444; border-radius: 4px; padding: 4px 0; }
.hx-phone-tabs { display: flex; font-size: 9.5px; font-weight: 700; color: #999; background: #252526; border-top: 1px solid #3c3c3c; }
.hx-phone-tabs span { flex: 1; text-align: center; padding: 7px 0 9px; }
.hx-phone-tabs .is-on { color: #3794ff; box-shadow: inset 0 2px 0 #3794ff; }

/* ---------------------------------------------------------- Everywhere */
.hx-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hx-tile { position: relative; padding: 28px; border-radius: 18px; background: var(--surface-raised); border: 1px solid var(--border); display: grid; gap: 12px; align-content: start; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.hx-tile:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.35); }
.hx-tile h3 { font-size: 19px; font-weight: 720; letter-spacing: -0.01em; }
.hx-tile p { color: var(--ink-2); line-height: 1.6; }
.hx-tile-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.hx-tile-icon .hi { width: 23px; height: 23px; }
.hx-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.hx-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.hx-green { background: linear-gradient(135deg, #10b981, #14b8a6); }
.hx-violet { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.hx-platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hx-platforms .hx-tile { padding: 24px; }
.hx-platforms .hx-tile h3 { font-size: 17px; }
.hx-actions .btn .hi { width: 19px; height: 19px; }

/* ----------------------------------------------------------- Showcases */
.hx-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.hx-show-flip .hx-show-copy { order: 2; }
.hx-show-copy { display: grid; gap: 16px; align-content: start; }
.hx-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 11px; }
.hx-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); line-height: 1.55; }
.hx-list .hi { color: var(--good); margin-top: 3px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.hx-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-raised); font-size: 14px; font-weight: 600; }
.hx-chips .hi { width: 16px; height: 16px; color: var(--accent); }
.hx-show-art { min-width: 0; }
.hx-mini-chat { display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: #0f141b; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.7); }
.hx-mini-chat .hx-bubble, .hx-mini-chat .hx-answer { font-size: 14px; }
.hx-mini-chat .hx-card { font-size: 12.5px; }
.hx-mini-chat .hx-card code { font-size: 13px; }
.hx-mini-chat .hx-card-mod { border-left-color: #d29922; animation-name: hxGlowAmber; }
.hx-mini-chat .hx-card-actions b { background: #1f6feb; border-color: #1f6feb; }
@keyframes hxGlowAmber { 50% { box-shadow: 0 0 0 3px rgba(210, 153, 34, 0.2); } }

.hx-panes { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px; padding: 8px; border-radius: 18px; background: #0d1117; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.7); }
.hx-pane { border-radius: 10px; background: #161b22; border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; min-width: 0; }
.hx-pane-editor { grid-column: 1 / -1; }
.hx-pane-bar { display: flex; align-items: center; gap: 7px; padding: 7px 11px; font: 11.5px var(--mono); color: #8b949e; background: #11161d; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.hx-pane-bar .hi { width: 13px; height: 13px; }
.hx-pane pre { padding: 11px 13px; font-size: 12.5px; }

.hx-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; padding: 34px 26px; border-radius: 18px; background: var(--surface-raised); border: 1px solid var(--border); }
.hx-node { display: grid; justify-items: center; gap: 9px; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.hx-node .hi { width: 54px; height: 54px; padding: 13px; border-radius: 15px; background: var(--hover); color: var(--accent); }
.hx-node-hub .hi { background: linear-gradient(135deg, #10b981, #0ea5e9); color: #fff; box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.6); }
.hx-link { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 40px; }
.hx-link i { display: block; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 28px 2px; animation: hxDash 1s linear infinite; }
@keyframes hxDash { to { background-position: 28px 0; } }
.hx-link small { font: 11px var(--mono); color: var(--ink-2); }
.hx-flow-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--ink-2); font-size: 14px; }

.hx-cli { padding: 22px; border-radius: 18px; background: #0d1117; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.7); font-size: 13px; overflow-x: auto; white-space: pre; }
.hx-cli .box { color: #79c0ff; }
.hx-install { display: grid; gap: 8px; margin-top: 8px; }

/* ---------------------------------------------------------------- Demo */
.hx-dark { padding-block: 96px; }
.hx-dark .hx-eyebrow { color: #5eead4; }
.hx-video { margin: 0 auto; max-width: 980px; display: grid; gap: 12px; }
.hx-video video { width: 100%; height: auto; display: block; background: #1d1d2d; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8); }
.hx-video figcaption { text-align: center; color: var(--hx-ink-2); font-size: 14px; }

/* -------------------------------------------------------------- Safety */
.hx-risks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hx-risk { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 16px; background: var(--surface-raised); border: 1px solid var(--border); }
.hx-risk em { justify-self: start; font-size: 12px !important; padding: 3px 11px !important; }
.hx-risk code { font-size: 13px; background: var(--code-bg); padding: 7px 9px; border-radius: 8px; }
.hx-risk p { color: var(--ink-2); }
.hx-grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hx-grid6 article { display: grid; gap: 9px; align-content: start; padding: 24px; border-radius: 16px; background: var(--surface-raised); border: 1px solid var(--border); }
.hx-grid6 .hi { width: 26px; height: 26px; color: var(--accent); }
.hx-grid6 h3 { font-size: 17px; font-weight: 700; }
.hx-grid6 p { color: var(--ink-2); line-height: 1.6; font-size: 15px; }

/* --------------------------------------------------------------- Teams */
.hx-teams { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hx-teams > div { display: grid; gap: 14px; }
.hx-list-cols { grid-template-columns: 1fr 1fr; gap: 14px 28px; }

/* ----------------------------------------------------------------- FAQ */
.hx-faq-wrap { max-width: 860px; }
.hx-faq { display: grid; gap: 10px; }
.hx-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); padding: 0 20px; }
.hx-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-2); transition: transform 0.2s; }
.hx-faq details[open] summary::after { transform: rotate(45deg); }
.hx-faq details p { padding: 0 0 18px; color: var(--ink-2); line-height: 1.65; }

/* ----------------------------------------------------------------- CTA */
.hx-cta { padding-block: 100px; text-align: center; }
.hx-cta-inner { display: grid; justify-items: center; gap: 4px; }
.hx-cta .hx-lede { margin-inline: auto; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
  .hx-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hx-window { transform: none; }
  .hx-phone { right: 4px; }
}
@media (max-width: 900px) {
  .hx-section, .hx-dark, .hx-cta { padding-block: 72px; }
  .hx-trio, .hx-grid6 { grid-template-columns: minmax(0, 1fr); }
  .hx-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-risks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-show, .hx-teams { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hx-show-flip .hx-show-copy { order: 0; }
  .hx-list-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hx-wrap { padding-inline: 16px; }
  .hx-hero { padding-block: 44px 64px; }
  .hx-window-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hx-term { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .hx-stage { padding-bottom: 0; }
  .hx-cli { padding: 16px; font-size: 10.5px; }
  .hx-phone { display: none; }
  .hx-risks, .hx-platforms { grid-template-columns: minmax(0, 1fr); }
  .hx-flow { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 26px 18px; }
  .hx-link { min-height: 34px; }
  .hx-link i { width: 2px; height: 30px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); animation: none; }
  .hx-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-glow, .hx-pill-dot, .hx-phone, .hx-card-mod, .hx-link i, .hx-cursor, .hx-stage { animation: none !important; }
  .hx-term-text .l { animation: none; opacity: 1; }
}
