/* Xecil Hub company site: on top of site.css (the Xecil UI site's design). */
nav.top .links a[aria-current="page"] { color: var(--white); }
.hub-hero { padding-bottom: 120px; }

/* ---------- products ---------- */
.hub-products { padding-top: 40px; }
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prod { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, .015); transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s; }
.prod:hover { border-color: var(--line-3); transform: translateY(-4px); background: rgba(255, 255, 255, .03); }
.prod.live { background: radial-gradient(600px circle at 0% 0%, rgba(201, 205, 210, .09), transparent 60%), linear-gradient(160deg, var(--ink-3), var(--ink-2)); border-color: var(--line-2); }
.prod-art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.prod-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod-art svg { width: 100%; height: 100%; }
.prod:hover .prod-art img { transform: scale(1.035); }
.prod-body { padding: 26px 28px 30px; display: grid; gap: 10px; }
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod-name { font: 400 12px var(--mono); letter-spacing: 2.5px; text-transform: uppercase; color: var(--steel); }
.prod .pill { font: 400 10.5px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; color: var(--steel); white-space: nowrap; }
.prod .pill.on { background: var(--white); border-color: var(--white); color: var(--ink); }
.prod h3 { color: var(--white); font-size: 26px; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.prod p { color: var(--steel); font-size: 15px; }
.prod-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--white); font-size: 14px; }
.prod-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.prod:hover .prod-link svg { transform: translateX(4px); }

/* small motion in the drawings */
.art-code .caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.art-motion .mo-ball { animation: mo 2.6s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
@keyframes mo { from { transform: translateX(0); } to { transform: translateX(360px); } }
@media (prefers-reduced-motion: reduce) { .art-code .caret, .art-motion .mo-ball { animation: none; } }

/* ---------- about / support pages ---------- */
.hub-page { max-width: var(--wrap); margin: 0 auto; padding: 160px clamp(16px, 4vw, 48px) 100px; }
.hub-page h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 400; letter-spacing: -.045em; line-height: 1.02; color: var(--white); margin: 18px 0 22px; max-width: 900px; }
.hub-page h1 .dim { color: var(--steel); }
.hub-page h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; letter-spacing: -.03em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 70px; }
.value { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: rgba(255, 255, 255, .015); }
.value svg { width: 26px; height: 26px; color: var(--white); }
.value h3 { color: var(--white); font-size: 20px; font-weight: 400; margin: 18px 0 8px; }
.value p { color: var(--steel); font-size: 14.5px; }
.story { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-top: 90px; padding-top: 50px; border-top: 1px solid var(--line); }
.story h2 { margin-top: 14px; }
.story p { color: var(--steel); font-size: 16px; margin-bottom: 16px; }
.story b { color: var(--white); font-weight: 400; }
.story a, .faq a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.help { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 60px; }
.help-card { display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: rgba(255, 255, 255, .015); transition: border-color .3s, transform .3s var(--ease); }
.help-card:hover { border-color: var(--line-3); transform: translateY(-3px); }
.help-card svg { width: 24px; height: 24px; color: var(--white); margin-bottom: 8px; }
.help-card h3 { color: var(--white); font-size: 18px; font-weight: 400; }
.help-card p { color: var(--steel); font-size: 14px; }
.help-card span { font: 400 12px var(--mono); color: var(--silver); margin-top: 8px; overflow-wrap: anywhere; }
.hub-page .faq { margin: 0; }

@media (max-width: 1000px) { .help { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .prods, .values, .story { grid-template-columns: 1fr; } .story { gap: 10px; } }
@media (max-width: 560px) { .help { grid-template-columns: 1fr; } .prod h3 { font-size: 22px; } }

/* ---------- phone menu ---------- */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: none; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i:first-child { top: 17px; }
.menu-btn i:last-child { top: 25px; }
nav.top.open .menu-btn i:first-child { top: 21px; transform: rotate(45deg); }
nav.top.open .menu-btn i:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  nav.top.open { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  nav.top.open .links { display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: 10px clamp(16px, 4vw, 48px) 26px; background: var(--ink); border-bottom: 1px solid var(--line); gap: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
  nav.top.open .links a { padding: 15px 2px; font-size: 18px; color: var(--white); border-bottom: 1px solid var(--line); }
  nav.top.open .links a:last-child { border-bottom: 0; }
}

/* ---------- product pages ---------- */
.prod-hero { padding-bottom: 60px; }
.prod-show { max-width: 980px; margin: 70px auto 0; border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; background: var(--ink-2); box-shadow: 0 60px 140px -50px rgba(0, 0, 0, .9); aspect-ratio: 16 / 10; }
.prod-show svg { width: 100%; height: 100%; display: block; }
.prod-sec { padding-top: 40px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: rgba(255, 255, 255, .015); transition: border-color .3s; }
.feat:hover { border-color: var(--line-3); }
.feat svg { width: 26px; height: 26px; color: var(--white); }
.feat h3 { color: var(--white); font-size: 19px; font-weight: 400; margin: 18px 0 8px; }
.feat p { color: var(--steel); font-size: 14.5px; }
.family, .price { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; border: 1px solid var(--line-2); border-radius: 28px; padding: clamp(28px, 4vw, 52px); background: radial-gradient(700px circle at 0% 0%, rgba(201, 205, 210, .08), transparent 60%), linear-gradient(160deg, var(--ink-3), var(--ink-2)); }
.family h2, .price h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; letter-spacing: -.03em; margin-top: 12px; }
.price h2 .dim { color: var(--steel); }
.family p, .price p { color: var(--steel); font-size: 16.5px; }
.price p { margin-top: 14px; }
.price ul { list-style: none; display: grid; gap: 14px; }
.price li { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.price li:last-child { border-bottom: 0; padding-bottom: 0; }
.price li svg { width: 20px; height: 20px; color: var(--silver); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 22px; padding: 26px; transition: border-color .3s, transform .3s var(--ease); }
.mini:hover { border-color: var(--line-3); transform: translateY(-3px); }
.mini b { color: var(--white); font-weight: 400; font-size: 20px; letter-spacing: -.01em; }
@media (max-width: 960px) { .feats, .minis { grid-template-columns: 1fr 1fr; } .family, .price { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 600px) { .feats, .minis { grid-template-columns: 1fr; } .prod-show { margin-top: 44px; border-radius: 18px; } }

/* ---------- light mode (site-extra.css swaps the palette; these are the company site's own surfaces) ---------- */
html[data-theme="light"] .prod{background:#fff}
html[data-theme="light"] .prod:hover{background:#fff;box-shadow:0 30px 60px -36px rgba(14,15,17,.35)}
html[data-theme="light"] .prod.live{background:radial-gradient(600px circle at 0% 0%,rgba(14,90,74,.07),transparent 60%),#fff}
html[data-theme="light"] .value, html[data-theme="light"] .help-card, html[data-theme="light"] .feat{background:#fff}
html[data-theme="light"] .story a, html[data-theme="light"] .faq a{text-decoration-color:rgba(14,15,17,.35)}
