@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Space+Mono:wght@400&display=swap');

:root {
  color-scheme: dark;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body.premium {
  --background: #080d18;
  --surface: #0e1626;
  --raised: #141f33;
  --line: #243149;
  --text: #f2f5ff;
  --muted: #a3b1c8;
  --blue: #72a0ff;
  --accent: #3976fa;
  --accent-soft: #192c50;
  --mint: #73ddc1;
  --shadow: 0 30px 90px #0005;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

html[data-theme='light'] body.premium {
  color-scheme: light;
  --background: #f6f8fd;
  --surface: #ffffff;
  --raised: #eaf0fa;
  --line: #d5ddeb;
  --text: #12213b;
  --muted: #50617a;
  --blue: #235bce;
  --accent: #2867eb;
  --accent-soft: #e1eaff;
  --mint: #197960;
  --shadow: 0 24px 70px #29487614;
}

* { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
h4 { font-size: .875rem; font-weight: 500; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
img { max-width: 100%; height: auto; }
svg { display: block; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: #3976fa55; }
[hidden] { display: none !important; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 20px; padding: 12px 20px; background: var(--surface); z-index: 100; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header { width: min(1440px, 100%); min-height: 94px; padding: 20px 34px; margin: auto; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.brand img { width: 136px; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a, .header-tools { font-size: .875rem; font-weight: 500; }
.site-nav a { color: var(--muted); white-space: nowrap; transition: color .18s; }
.site-nav a:hover, .footer-links a:hover { color: var(--blue); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.language-links { display: flex; gap: 7px; align-items: center; }
.language-links a { color: var(--muted); font-size: .875rem; }
.language-links a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.theme-toggle, .menu-toggle { width: 34px; height: 34px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 8px; flex-shrink: 0; }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.menu-toggle { width: auto; padding-inline: 10px; font-size: .8125rem; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 23px; min-height: 48px; font-size: .9375rem; font-weight: 600; border: 1px solid #5389ff; border-radius: 8px; background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 #ffffff26; transition: transform .2s, background .2s, border-color .2s; text-align: center; }
.button:hover { background: #245fdc; transform: translateY(-2px); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: none; }
.button.secondary:hover { border-color: var(--blue); background: var(--raised); }
.header-tools .button { padding: 9px 15px; min-height: 40px; font-size: .875rem; white-space: nowrap; }
.hero { position: relative; overflow: hidden; padding-top: 90px; padding-bottom: 82px; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#527bc410 1px, transparent 1px), linear-gradient(90deg, #527bc410 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(transparent, #000 20%, #000 70%, transparent); }
.hero::after { content: ''; position: absolute; width: 800px; height: 600px; border-radius: 50%; left: calc(50% - 400px); top: 190px; background: radial-gradient(ellipse, #2168e51d, transparent 68%); pointer-events: none; z-index: 0; }
.hero > * { position: relative; z-index: 1; }
.eyebrow { display: block; color: var(--blue); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 21px; }
.hero .eyebrow { display: inline-flex; align-items: center; border: 1px solid #4267ad55; background: #3377ec0b; padding: 6px 14px; border-radius: 30px; font-size: .75rem; margin-bottom: 24px; }
.hero h1 { max-width: 900px; font-size: clamp(2.5rem, 5.3vw, 5rem); line-height: 1.09; letter-spacing: -.055em; font-weight: 550; margin: 0 auto 24px; text-wrap: balance; }
.hero h1 em, .hero h1 span { color: var(--blue); font-style: normal; }
.lead { max-width: 670px; margin-inline: auto; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }
.actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.hero-visual { width: min(1080px, calc(100% - 100px)); margin: 70px auto 0; text-align: left; position: relative; }
.hero-visual > .dashboard { transform: perspective(1800px) rotateX(3deg); }
.demo-label { color: var(--muted); text-align: center; font-size: .8125rem; letter-spacing: .02em; margin-top: 23px; }
.dashboard { display: grid; grid-template-columns: 172px minmax(0, 1fr); border: 1px solid var(--line); background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 7px #ffffff03; text-align: left; }
.dashboard-sidebar { padding: 24px 13px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; background: var(--background); }
.dashboard-sidebar > img { width: 112px; margin: 0 8px 25px; }
.dashboard-sidebar button { display: flex; align-items: center; gap: 9px; text-align: left; border: 1px solid transparent; background: transparent; font-size: .875rem; color: var(--muted); padding: 10px; border-radius: 6px; line-height: 1.4; }
.dashboard-sidebar button svg { width: 16px; height: 16px; flex-shrink: 0; }
.dashboard-sidebar button:hover { color: var(--text); background: var(--raised); }
.dashboard-sidebar button[aria-pressed='true'] { color: var(--blue); background: var(--accent-soft); border-color: #3976fa22; }
.dashboard-sidebar button:disabled { cursor: default; opacity: 1; }
.sidebar-foot { margin-top: auto; color: var(--muted); padding: 24px 8px 0; font-size: .75rem; }
.dashboard-main { padding: 23px; min-width: 0; }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.dashboard-top h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.dashboard-top small { color: var(--muted); font-size: .8125rem; }
.period { padding: 5px 10px; font-size: .8125rem; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 15px; background: var(--raised); border: 1px solid var(--line); border-radius: 7px; min-width: 0; }
.metric small { color: var(--muted); font-size: .8125rem; display: block; line-height: 1.5; }
.metric strong { font-size: clamp(1.15rem, 2.3vw, 1.75rem); line-height: 1.6; font-weight: 550; display: block; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric span { font-size: .75rem; color: var(--mint); display: block; }
.dashboard-widgets { display: grid; grid-template-columns: 1.6fr 1fr; gap: 13px; margin-top: 14px; }
.chart-panel, .inventory-panel, .activity-panel, .ai-panel { border: 1px solid var(--line); border-radius: 7px; padding: 17px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; }
.panel-heading span, .panel-heading small { color: var(--muted); font-size: .75rem; font-weight: 400; }
.panel-heading svg, .ai-mark svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); }
.bar-chart { height: 120px; display: flex; gap: 8px; align-items: flex-end; padding: 16px 4px 0; margin-top: 14px; background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 35px); }
.bar { flex: 1; height: var(--bar-height, 50%); border-radius: 3px 3px 0 0; background: linear-gradient(to top, #254c9c, #6294ff); min-width: 3px; transition: height .7s ease; }
.bar:nth-child(even) { background: linear-gradient(to top, #1e3d7b, #3767c0); }
.bar:hover { filter: brightness(1.3); }
.chart-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: .75rem; }
.stock-row { padding-top: 17px; font-size: .8125rem; color: var(--muted); }
.stock-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.stock-row b { color: var(--text); font-weight: 500; }
.stock-row > b { float: right; }
.stock-track { height: 5px; background: var(--raised); border-radius: 5px; margin-top: 8px; overflow: hidden; }
.stock-track i { display: block; height: 100%; width: var(--stock, 60%); background: var(--accent); border-radius: inherit; transition: width .7s; }
.stock-row:nth-child(3) .stock-track i { background: #76a5fa; }
.stock-row:nth-child(4) .stock-track i { background: #64c4c0; }
.dashboard-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 13px; margin-top: 14px; }
.activity-row { display: flex; align-items: center; gap: 10px; padding-top: 11px; font-size: .8125rem; color: var(--muted); }
.activity-row time { margin-left: auto; white-space: nowrap; font-size: .75rem; }
.activity-dot { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; flex-shrink: 0; }
.ai-panel { background: var(--accent-soft); border-color: #3e69b544; }
.ai-panel p { color: var(--muted); font-size: .8125rem; line-height: 1.65; margin-top: 10px; }
.ai-mark { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: .875rem; font-weight: 600; }
.floating-card { position: absolute; z-index: 2; padding: 17px 20px; min-width: 190px; background: var(--surface); border: 1px solid #4e6d9b66; border-radius: 10px; box-shadow: 0 15px 50px #0003; }
.floating-card small { color: var(--muted); display: block; font-size: .8125rem; }
.floating-card strong { font-size: 1.75rem; font-weight: 500; letter-spacing: -.04em; display: block; }
.floating-card span { display: block; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.floating-card svg { color: var(--blue); width: 24px; height: 24px; }
.mini-bars { font-family: 'Space Mono', monospace; font-size: 1.25rem; line-height: 1.4; color: var(--blue); letter-spacing: -.08em; margin-top: 4px; }
.float-production { left: -57px; top: 98px; }
.float-inventory { right: -58px; top: 195px; }
.float-revenue { left: 64px; bottom: -17px; }
.ecosystem { padding: 105px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 730px; margin: 0 auto 45px; text-align: center; }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 550; text-wrap: balance; }
.section-heading p, .story-intro > p { color: var(--muted); margin-top: 20px; line-height: 1.8; }
.module-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.module-button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 58px; border-radius: 8px; font-size: .875rem; text-align: left; transition: border-color .2s, background .2s, color .2s; }
.module-button:hover, .module-button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.module-icon { color: var(--blue); flex-shrink: 0; }
.module-icon svg { width: 21px; height: 21px; stroke-width: 1.5; }
.module-detail { padding: 28px 30px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.module-detail h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; margin-bottom: 12px; }
.module-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 10px 0 24px; min-height: 190px; position: relative; }
.module-visual::before { content: ''; position: absolute; top: 80px; height: 55px; width: 1px; background: var(--accent); }
.module-hub { width: 80px; height: 80px; display: grid; place-items: center; border: 1px solid #5787f16b; background: var(--accent-soft); box-shadow: 0 0 50px #3976fa14; border-radius: 20px; position: relative; }
.module-hub img { width: 48px; }
.connection-nodes { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; position: relative; }
.connection-nodes span { border: 1px solid #4b679d77; border-radius: 6px; padding: 5px 10px; color: var(--blue); font-size: .8125rem; background: var(--background); }
.module-description { color: var(--muted); font-size: .9375rem; }
.module-value { margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.module-value strong, .connection-label { display: block; color: var(--blue); font-size: .8125rem; font-weight: 500; margin-bottom: 5px; }
.module-value > small { display: block; color: var(--blue); font-size: .8125rem; margin-bottom: 5px; }
.connection-label { margin-top: auto; padding-top: 14px; }
.connection-list { display: flex; flex-wrap: wrap; gap: 8px; }
.connection-list span { color: var(--muted); font-size: .8125rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; }
.showcase { padding: 100px 0; background: var(--surface); border-block: 1px solid var(--line); }
.showcase .dashboard { background: var(--background); box-shadow: var(--shadow); }
.showcase-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.showcase-toolbar .demo-label { text-align: left; margin: 0; }
.showcase-toolbar button { background: var(--accent-soft); color: var(--blue); border: 1px solid var(--line); border-radius: 7px; padding: 8px 14px; font-size: .875rem; }
.showcase-toolbar button:hover { border-color: var(--blue); }
.story-section { padding: 94px 0; border-bottom: 1px solid var(--line); }
.story-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; margin-bottom: 38px; }
.story-intro > p { margin: 0; }
.story-intro .eyebrow { margin-bottom: 14px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-grid:has(> :nth-child(2):last-child), .story-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-card { position: relative; padding: 29px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.story-card::before { content: ''; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--blue); margin-bottom: 24px; opacity: .8; }
.story-card h3 { font-size: 1.125rem; font-weight: 550; letter-spacing: -.02em; margin-bottom: 12px; }
.story-card p { color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.story-section:nth-of-type(even) { background: color-mix(in srgb, var(--surface) 30%, var(--background)); }
#intelligence .story-card, #connectivity .story-card { background: linear-gradient(140deg, var(--accent-soft), var(--surface) 65%); }
#how .story-card { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.faq-section { padding: 100px 0; }
.faq-section .container { max-width: 850px; }
.faq-section details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-section summary { cursor: pointer; font-size: 1.0625rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 30px; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: '+'; font-size: 1.35rem; color: var(--blue); font-weight: 400; }
.faq-section details[open] summary::after { content: '−'; }
.faq-section details p { padding: 17px 40px 0 0; color: var(--muted); line-height: 1.8; }
.contact-section { padding: 10px 0 90px; }
.contact-inner { padding: 70px 60px; border: 1px solid #345080; border-radius: 14px; background: radial-gradient(ellipse at top, #2b68cc24, transparent 75%), var(--surface); text-align: center; }
.contact-inner h2 { max-width: 760px; margin: auto; }
.contact-inner p { max-width: 650px; margin: 23px auto; color: var(--muted); }
.site-footer { padding: 33px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer > .container { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-footer.container { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-footer img { width: 126px; display: block; }
.footer-links { display: flex; gap: 23px; margin-left: auto; }
.site-footer p { font-size: .8125rem; }
.reveal { opacity: 1; }

.audit-page, .legal-page { padding-block: 80px; min-height: 70vh; }
.audit-page .section-heading h1, .legal-page h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 550; text-wrap: balance; }
.legal-page { max-width: 850px; }
.legal-page h2 { font-size: 1.5rem; margin-top: 36px; margin-bottom: 14px; }
.legal-page p { color: var(--muted); margin-top: 16px; line-height: 1.85; }
#audit { max-width: 800px; margin-inline: auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
#audit fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#audit legend { font-size: 1.65rem; font-weight: 550; letter-spacing: -.025em; margin-bottom: 26px; padding: 0; }
#audit .progress { font-size: .875rem; color: var(--blue); border-bottom: 2px solid var(--accent); padding-bottom: 14px; margin-bottom: 25px; }
#audit .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#audit label { display: block; font-size: .9375rem; font-weight: 500; }
#audit input:not([type='checkbox']), #audit select, #audit textarea { width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--background); color: var(--text); font-size: 1rem; }
#audit textarea { resize: vertical; min-height: 140px; }
#audit select { padding-right: 30px; }
#audit .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.7; margin-block: 12px; }
#audit input[type='checkbox'] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; accent-color: var(--accent); }
#audit .check:has(a) { display: block; }
#audit .check:has(a) input { margin-right: 8px; vertical-align: middle; }
#audit a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
#audit .actions { justify-content: space-between; gap: 15px; }
#audit button { padding: 12px 22px; background: var(--accent); color: white; border: 1px solid #5389ff; border-radius: 7px; font-weight: 550; }
#audit button.back { background: var(--raised); color: var(--text); border-color: var(--line); }
#audit .error { color: #ff9aa8; font-size: .9375rem; margin-block: 15px; }
html[data-theme='light'] #audit .error { color: #b2203d; }
#audit .complete { border-left: 3px solid var(--mint); padding: 15px 20px; }
#audit .complete p { color: var(--muted); margin-top: 12px; }
#audit .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (prefers-reduced-motion: no-preference) {
  .floating-card { animation: float 8s ease-in-out infinite; }
  .float-inventory { animation-delay: -3s; }
  .float-revenue { animation-delay: -5s; }
  .reveal.motion-ready { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
  .reveal.motion-ready.is-visible { opacity: 1; transform: translateY(0); }
  .hero h1, .hero .lead, .hero .actions { animation: enter .75s ease both; }
  .hero .lead { animation-delay: .1s; }
  .hero .actions { animation-delay: .18s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

@media (min-width: 1440px) {
  .hero-visual { width: 1100px; }
}

@media (max-width: 1250px) {
  .site-header { gap: 20px; padding-inline: 24px; }
  .site-nav { gap: 15px; }
  .header-tools { gap: 12px; }
  .brand img { width: 120px; }
  .float-production { left: -25px; }
  .float-inventory { right: -25px; }
  .floating-card { padding: 13px 17px; min-width: 168px; }
}

@media (max-width: 1050px) {
  .site-header { min-height: 80px; }
  .menu-toggle { display: grid; }
  .header-tools { margin-left: auto; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 25px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
  .site-nav.is-open { display: flex; flex-wrap: wrap; gap: 24px; }
  .container { width: calc(100% - 48px); }
  .hero { padding-top: 65px; }
  .hero-visual { width: calc(100% - 72px); }
  .dashboard { grid-template-columns: 140px minmax(0, 1fr); }
  .dashboard-sidebar { padding-inline: 8px; }
  .dashboard-main { padding: 17px; }
  .metric { padding: 10px; }
  .floating-card { min-width: 148px; max-width: 190px; }
  .floating-card strong { font-size: 1.5rem; }
  .float-production { top: 170px; }
  .float-inventory { top: 290px; }
  .module-layout { grid-template-columns: 1fr 1fr; gap: 18px; }
  .module-grid { gap: 8px; }
  .module-button { padding: 12px; gap: 8px; }
  .module-detail { padding: 24px; }
  .story-intro { gap: 35px; }
  .story-card { padding: 24px; }
}

@media (max-width: 760px) {
  .hero { padding-top: 52px; padding-bottom: 52px; }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 3.5rem); }
  .lead { font-size: 1rem; }
  .hero-visual { width: calc(100% - 40px); margin-top: 45px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hero-visual > .dashboard { grid-column: 1 / -1; transform: none; }
  .hero-visual > .demo-label { grid-column: 1 / -1; margin-top: 7px; }
  .floating-card { position: static; min-width: 0; max-width: none; padding: 13px; animation: none; }
  .floating-card small { font-size: .75rem; line-height: 1.5; }
  .floating-card strong { font-size: 1.4rem; }
  .floating-card span { font-size: .75rem; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 18px; }
  .dashboard-widgets { grid-template-columns: 1.4fr 1fr; }
  .dashboard-bottom { grid-template-columns: 1fr 1fr; }
  .metric strong { font-size: 1.5rem; }
  .module-layout { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .module-button { font-size: .875rem; flex-direction: column; align-items: flex-start; padding: 14px; }
  .module-detail { min-height: 430px; }
  .module-visual { min-height: 160px; }
  .ecosystem, .showcase, .story-section, .faq-section { padding-block: 65px; }
  .story-intro { grid-template-columns: 1fr; gap: 20px; }
  .story-grid, .story-grid:has(> :nth-child(2):last-child), .story-grid:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; gap: 14px; }
  .story-card { padding: 25px; }
  .story-card::before { margin-bottom: 18px; }
  .section-heading { margin-bottom: 32px; }
  .contact-section { padding-bottom: 60px; }
  .contact-inner { padding: 45px 25px; }
  .site-footer > .container { gap: 20px; }
  .site-footer.container { gap: 20px; }
  .footer-links { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .site-header { padding: 15px 18px; gap: 12px; flex-wrap: wrap; min-height: 74px; }
  .brand img { width: 104px; }
  .header-tools { gap: 9px; }
  .header-tools .button { display: none; }
  .language-links { gap: 6px; }
  .language-links a { font-size: .8125rem; }
  .theme-toggle { width: 32px; height: 32px; }
  .menu-toggle { height: 32px; }
  .site-nav.is-open { flex-direction: column; align-items: stretch; padding: 24px; gap: 16px; }
  .hero .eyebrow { font-size: .6875rem; letter-spacing: .1em; }
  .hero h1 { font-size: 2.55rem; line-height: 1.12; }
  .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .actions .button { width: 100%; }
  .hero-visual { width: calc(100% - 28px); gap: 8px; grid-template-columns: 1fr; }
  .floating-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .floating-card small { font-size: .875rem; max-width: 45%; }
  .floating-card span { text-align: right; }
  .floating-card > span { margin: 0; text-align: left; max-width: 65%; }
  .floating-card .mini-bars, .floating-card > .stock-track { display: none; }
  .floating-card svg { display: none; }
  .floating-card strong { font-size: 1.3rem; }
  .dashboard-main { padding: 13px; }
  .dashboard-top { gap: 8px; margin-bottom: 14px; }
  .dashboard-top h3 { font-size: 1rem; }
  .period { padding: 4px 7px; font-size: .75rem; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric { padding: 12px; }
  .metric strong { font-size: 1.6rem; }
  .metric small { font-size: .875rem; }
  .dashboard-widgets, .dashboard-bottom { grid-template-columns: 1fr; gap: 9px; margin-top: 9px; }
  .hero-visual .inventory-panel, .hero-visual .activity-panel { display: none; }
  .chart-panel, .inventory-panel, .activity-panel, .ai-panel { padding: 14px; }
  .bar-chart { height: 112px; gap: 5px; }
  .showcase-toolbar { align-items: flex-start; gap: 12px; }
  .showcase-toolbar button { flex-shrink: 0; max-width: 49%; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-button { flex-direction: row; align-items: center; padding: 12px; min-height: 65px; }
  .module-detail { padding: 23px; }
  .section-heading .eyebrow { font-size: .75rem; }
  h2 { font-size: 2rem; }
  .faq-section summary { gap: 18px; font-size: 1rem; }
  .faq-section details p { padding-right: 0; }
  .contact-inner { padding-inline: 23px; }
  .contact-inner .button { width: 100%; }
  .audit-page, .legal-page { padding-block: 48px; }
  #audit { padding: 22px 18px; }
  #audit .fields { grid-template-columns: 1fr; }
  #audit .actions { align-items: stretch; }
  #audit .actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.motion-ready { opacity: 1; transform: none; }
}
/* Keep demo navigation available as compact tabs on small screens. */
@media (max-width: 760px) {
  #showcase-dashboard .dashboard-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  #showcase-dashboard .dashboard-sidebar > img,
  #showcase-dashboard .sidebar-foot { display: none; }
  #showcase-dashboard .dashboard-sidebar button { padding: 8px; }
}
.ecosystem h1, .story-intro h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -.045em;
  font-weight: 550;
  text-wrap: balance;
}
@media (prefers-reduced-motion: no-preference) {
  .floating-card { animation-iteration-count: 1; animation-duration: 4s; }
  .hero::before { animation: grid-enter 4s ease both; }
  @keyframes grid-enter { from { opacity: .25; } to { opacity: 1; } }
}
.mobile-nav-action { display: none; }
@media (max-width: 1400px) { .site-nav.is-open .mobile-nav-action { display: block; color: var(--blue); } }
.theme-select {
  appearance: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 40px;
  max-width: 112px;
  font-size: .875rem;
  cursor: pointer;
}

/* Localized navigation needs room for the language and theme controls. */
@media (max-width: 1400px) {
  .menu-toggle { display: grid; }
  .header-tools { margin-left: auto; }
  .header-tools .sign-in { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 25px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; flex-wrap: wrap; gap: 24px; }
}
@media (max-width: 480px) {
  .site-nav.is-open { flex-direction: column; align-items: stretch; padding: 24px; gap: 16px; }
}
