/*
Theme Name: AnalytixAI
Theme URI: https://analytixai.com
Author: AnalytixAI
Description: Dark, AI-startup style theme for AnalytixAI — industrial AI for mining and heavy industry. Dark and light mode. Homepage with rotating 3D hero examples, dropdown menus, layered stack, compounding-accuracy loop, decision views, results, 12-week Proof of Value, stack cards and wireframe terrain; Insights pull from your latest posts. Set colour, email, LinkedIn, ABN and announcement in Appearance › Customize.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: analytixai
*/

:root { --ax-accent: #F0454C; }
.ax-root[data-theme="light"] { --ax-accent: #ce3b41; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 80px; }
.admin-bar header { top: 32px !important; }
@media (max-width: 782px) { .admin-bar header { top: 46px !important; } }

.ax-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ax-accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.ax-skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ax-accent); outline-offset: 3px; border-radius: 6px; }

/* Menus built in Appearance › Menus */
.ax-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-size: 14px; }
.ax-menu a { color: var(--muted); }
.ax-menu a:hover, .ax-menu .current-menu-item a { color: var(--text-strong); }
.custom-logo-link img { max-height: 36px; width: auto; display: block; }

/* Blog, posts and pages */
.ax-wrap { max-width: 760px; margin: 0 auto; padding: 96px 20px; }
.ax-wrap.wide { max-width: 1200px; }
.ax-eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); }
.ax-title { font-family: 'Inter Tight', Inter, sans-serif; font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; margin: 12px 0 24px; }
.ax-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.ax-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.ax-card:hover { border-color: var(--border-2); }
.ax-card h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.ax-card p { margin: 0; color: var(--muted); font-size: 14px; }
.ax-prose { color: var(--text-2); font-size: 18px; line-height: 1.7; }
.ax-prose h2, .ax-prose h3 { font-family: 'Inter Tight', Inter, sans-serif; color: var(--text); letter-spacing: -0.02em; margin: 2em 0 0.5em; }
.ax-prose a { color: var(--ax-accent); text-decoration: underline; text-underline-offset: 3px; }
.ax-prose code, .ax-prose pre { font-family: 'JetBrains Mono', ui-monospace, monospace; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.ax-prose code { padding: 2px 6px; font-size: 0.9em; }
.ax-prose pre { padding: 16px; overflow-x: auto; }
.ax-prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--ax-accent); color: var(--text); }
.ax-prose img, .ax-prose figure { border-radius: 12px; }
.ax-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ax-prose th, .ax-prose td { border-top: 1px solid var(--border); padding: 10px; text-align: left; }
.ax-pagination { margin-top: 40px; display: flex; gap: 12px; }
.ax-pagination a, .ax-pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
.ax-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--ax-accent); color: var(--on-accent) !important; font-weight: 600; }
.wp-block-button__link { background: var(--ax-accent); color: var(--on-accent); border-radius: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---- Homepage design ---- */
body{margin:0;background:var(--bg);color:var(--text);overflow-x:clip;transition:background-color .25s,color .25s}
:root,.ax-root[data-theme="dark"]{--bg:#0C0C0E;--surface:#101013;--surface-2:#111114;--card:#141417;--card-warm:#17151A;--plate:#18181C;--model:#24161A;--hover:#1C1C21;--line:#222226;--border:#2A2A30;--border-2:#34343B;--border-3:#3A3A42;--grid:#2E2E35;--dots:#5A5A63;--line-2:#71717A;--label:#93939C;--muted:#A8A8B0;--text-2:#D0D0D6;--text:#ECEEF2;--text-strong:#FFFFFF;--amber:#FFB55E;--green:#7DD3A0;--on-accent:#0C0C0E;--pill-bg:#ECEEF2;--pill-fg:#0C0C0E;--header-bg:rgba(12,12,14,0.88);--shk:1;color-scheme:dark}
.ax-root[data-theme="light"]{--bg:#FAFAF7;--surface:#F3F3EF;--surface-2:#F6F6F2;--card:#FFFFFF;--card-warm:#FBF6F2;--plate:#EEEEEA;--model:#FBE7E8;--hover:#EFEFEA;--line:#E7E7E2;--border:#E1E1DB;--border-2:#D3D3CC;--border-3:#C5C5BE;--grid:#DEDED8;--dots:#B5B5AE;--line-2:#9A9AA2;--label:#66666F;--muted:#4F4F57;--text-2:#2F2F35;--text:#141417;--text-strong:#000000;--amber:#B45309;--green:#15803D;--on-accent:#FFFFFF;--pill-bg:#141417;--pill-fg:#FAFAF7;--header-bg:rgba(250,250,247,0.88);--shk:0.22;color-scheme:light}
.ax-root{transition:background-color .25s,color .25s}
.ax-root[data-theme="light"] [stroke="#222226"]{stroke:#E7E7E2}
.ax-root[data-theme="light"] [stroke="#2A2A30"]{stroke:#E1E1DB}
.ax-root[data-theme="light"] [stroke="#2E2E35"]{stroke:#D6D6CF}
.ax-root[data-theme="light"] [stroke="#34343B"]{stroke:#D3D3CC}
.ax-root[data-theme="light"] [stroke="#71717A"]{stroke:#9A9AA2}
.ax-root[data-theme="light"] [fill="#71717A"]{fill:#9A9AA2}
.ax-root[data-theme="light"] [stroke="#93939C"]{stroke:#66666F}
.ax-root[data-theme="light"] [fill="#93939C"]{fill:#66666F}
.ax-root[data-theme="light"] [stroke="#D0D0D6"]{stroke:#3A3A40}
.ax-root[data-theme="light"] [fill="#D0D0D6"]{fill:#3A3A40}
.ax-root[data-theme="light"] [stroke="#ECEEF2"]{stroke:#141417}
.ax-root[data-theme="light"] [fill="#ECEEF2"]{fill:#141417}
.ax-root[data-theme="light"] [fill="#141417"]{fill:#FFFFFF}
.ax-root[data-theme="light"] [stroke="#7DD3A0"]{stroke:#15803D}
.ax-root[data-theme="light"] [fill="#7DD3A0"]{fill:#15803D}
.ax-root[data-theme="light"] [stroke="#FFB55E"]{stroke:#B45309}
.ax-root[data-theme="light"] .pill-ic{filter:saturate(1.2)}
.theme-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;border:1px solid var(--border-2);background:transparent;color:var(--text);cursor:pointer;padding:0;transition:background .2s,border-color .2s}
.theme-btn:hover{background:var(--hover);border-color:var(--dots)}
#top{overflow-x:clip}
a{color:var(--text);text-decoration:none}a:hover{color:var(--text-strong)}
.tilt{transform:rotateY(-14deg) rotateX(7deg);transform-style:preserve-3d;animation:floaty 9s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:rotateY(-14deg) rotateX(7deg) translateY(0)}50%{transform:rotateY(-9deg) rotateX(4deg) translateY(-10px)}}
.ghost{transform:rotateY(-14deg) rotateX(7deg) translateZ(-90px) translate(30px,30px)}
.iso{transform:rotateX(60deg) rotateZ(-45deg)}
.bob{animation:bob 6s ease-in-out infinite}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -12px}}
.plate-grid{background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:26px 26px}
.plate-dots{background-image:radial-gradient(var(--dots) 1.5px,transparent 1.7px);background-size:18px 18px}
.spin{animation:spin 60s linear infinite;transform-origin:50% 50%}
@keyframes spin{to{transform:rotate(360deg)}}
.dots-soft{background-image:radial-gradient(var(--border-2) 1.2px,transparent 1.4px);background-size:12px 12px}
.heat{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));gap:3px}
.heat i{display:block;aspect-ratio:1/1;border-radius:3px}
@media (max-width: 600px){.loop-wrap{height:370px;overflow:hidden}.loop-host{transform:scale(0.68);transform-origin:top center}}
.dd{position:relative;height:64px;display:flex;align-items:center}
.dd-trig{display:inline-flex;align-items:center;gap:6px;color:var(--muted);padding:8px 10px;margin:0 -10px;border-radius:8px}
.dd:hover .dd-trig,.dd:focus-within .dd-trig{color:var(--text-strong);background:var(--hover)}
.dd-chev{transition:transform .2s}
.dd:hover .dd-chev,.dd:focus-within .dd-chev{transform:rotate(180deg)}
.dd-panel{position:absolute;top:56px;left:-24px;padding-top:6px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s,transform .18s,visibility .18s;z-index:20}
.dd:hover .dd-panel,.dd:focus-within .dd-panel{opacity:1;visibility:visible;transform:none}
.dd-box{width:380px;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:8px;box-shadow:0 30px 60px rgba(0,0,0,calc(0.55 * var(--shk)));display:flex;flex-direction:column}
.dd-feat{display:flex;flex-direction:column;gap:4px;padding:14px 14px 16px;margin-bottom:6px;border:1px solid var(--border);border-radius:10px;background-color:var(--surface-2);color:var(--text)}
.dd-feat:hover{border-color:var(--border-2)}
.dd-feat svg{margin-bottom:6px}
.dd-label{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;color:var(--label);padding:10px 12px 4px}
.dd-item{display:flex;gap:14px;align-items:flex-start;padding:10px 12px;border-radius:10px;color:var(--text)}
.dd-item:hover{background:var(--hover);color:var(--text-strong)}
.dd-ic{flex:none;width:22px;padding-top:1px}
.dd-t{display:block;font-size:14px;font-weight:500;line-height:1.35}
.dd-d{display:block;font-size:12.5px;color:var(--label);line-height:1.4;margin-top:2px}
.pill{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;padding:3px 14px 3px 4px;margin:0 2px;border:1px solid var(--border-2);border-radius:999px;background:var(--card);color:var(--text);line-height:1.5;transition:border-color .2s,background .2s}
.pill:hover{border-color:var(--dots);background:var(--hover);color:var(--text-strong)}
.pill-ic{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;border:1px solid}
.fadein{animation:fadein .6s ease both}
@keyframes fadein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.prog{display:block;height:100%;width:0;animation:prog 7s linear forwards}
@keyframes prog{to{width:100%}}
.tilt:hover .prog{animation-play-state:paused}
@media (prefers-reduced-motion: reduce){.tilt,.bob,.spin,.fadein{animation:none}}
@media (max-width: 900px){.tilt,.ghost{transform:none;animation:none}.ghost{display:none}}
.mono{font-family:'JetBrains Mono',ui-monospace,monospace}
.disp{font-family:'Inter Tight','Inter',system-ui,sans-serif}
@media (max-width: 900px){.navlinks{display:none !important}.hero-h1{font-size:44px !important}.sec-h2{font-size:34px !important}.sec{padding:72px 20px !important}.closing-h2{font-size:40px !important}}
.ax-ic-sun,.ax-ic-moon{display:inline-flex}
.ax-ic-moon{display:none}
.ax-root[data-theme="light"] .ax-ic-moon{display:inline-flex}
.ax-root[data-theme="light"] .ax-ic-sun{display:none}

/* Hero carousel (theme script) */
.ax-slide{display:contents}
.ax-slide[hidden]{display:none}
.ax-tab{color:var(--label)}
.ax-tab:hover{color:var(--text-2)}
.ax-tab.is-active{color:var(--text)}
.ax-tab .prog{display:none}
.ax-tab.is-active .prog{display:block}
