:root, [data-theme="light"] {
  --bg: #eef1f6;
  --paper: #ffffff;
  --ink: #101828;
  --muted: #526074;
  --line: #d9e0ea;
  --blue: #1554d6;
  --blue-deep: #0d3ea8;
  --navy: #10192c;
  --header-bg: rgba(255, 255, 255, 0.94);
  --soft: #f8fafc;
  --stage: #10192c;
  --stage-text: #f4f7fb;
  --stage-muted: #c5d0e0;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Sora", "Source Sans 3", sans-serif;
  --header: 68px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e1422;
  --paper: #172033;
  --ink: #eef3fb;
  --muted: #b7c4d6;
  --line: #2c3b54;
  --blue: #4c84f5;
  --blue-deep: #8aafff;
  --navy: #090e18;
  --header-bg: rgba(14, 20, 34, 0.94);
  --soft: #121a2b;
  --stage: #090e18;
  --stage-text: #f4f7fb;
  --stage-muted: #c5d0e0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; }
code { font-size: 0.92em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: #000; color: #fff; padding: 0.4rem 0.7rem; }
.skip:focus { top: 0.4rem; }

.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.site-header .brand { background: #fff; border-radius: 10px; padding: 0.15rem 0.45rem; }
body.site .brand img { height: 38px; width: auto; max-height: 38px; max-width: 150px; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-dropdown-trigger {
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: 0.98rem; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3rem 0;
}
.nav-links > li > a:hover, .nav-dropdown-trigger:hover { color: var(--blue); }
.nav-chevron { width: 14px; height: 14px; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; margin: 0; padding: 0.35rem;
  list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16,24,40,.08);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .16s ease;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown-menu a { display: block; padding: 0.5rem 0.65rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.nav-dropdown-menu a:hover { background: color-mix(in srgb, var(--blue) 14%, var(--paper)); color: var(--blue); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; }
.theme-toggle {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; min-height: 36px; padding: 0 0.8rem; font-weight: 700; cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 4px auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1rem;
  border-radius: 10px; text-decoration: none; font-weight: 700; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-line { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.nav-cta, .nav-links .btn {
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
  min-height: 38px;
  flex: 0 0 auto;
}
.nav-cta:hover, .nav-links .btn:hover { background: var(--blue-deep); color: #fff; }

.hero { padding: 1.6rem 0 0.4rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; align-items: stretch; }
.kicker { margin: 0 0 .6rem; color: var(--blue); font-weight: 700; font-size: .86rem; }
.hero h1, .page-hero h1 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.35rem); max-width: 18ch; }
.lede { margin: .85rem 0 0; color: var(--muted); max-width: 42rem; font-size: 1.12rem; }
.hero-actions, .panel-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.hero-note { margin: .9rem 0 0; color: var(--muted); font-size: .95rem; }

.stage { background: var(--stage); color: var(--stage-text); border-radius: 18px; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; }
.slider-viewport { overflow: hidden; flex: 1; }
.slider-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.22,.7,.25,1); }
.slider-slide { min-width: 100%; padding: 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem; }
.slide-visual { background: #18243a; border-radius: 12px; min-height: 210px; display: grid; place-items: center; padding: 1rem; }
.slide-visual img { max-height: 180px; width: auto; object-fit: contain; }
.slider-slide strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.slider-slide span { color: var(--stage-muted); }
.slider-bar { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem .85rem; }
.dots { display: flex; gap: .35rem; }
.dots button { width: 8px; height: 8px; border: 0; border-radius: 99px; background: rgba(255,255,255,.35); padding: 0; cursor: pointer; }
.dots button.is-on { width: 22px; background: var(--paper); }
.slider-controls { display: flex; gap: .35rem; }
.slider-controls button, .rail-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer;
}

.section { padding: 2.4rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-head h2, .block h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; }
.section-head p { margin: .4rem 0 0; color: var(--muted); }

.product-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.product-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.1rem 1.15rem; color: var(--ink);
  display: flex; flex-direction: column; min-height: 100%; box-shadow: 0 10px 30px rgba(16,24,40,.04);
}
.product-panel .logo-row { height: 78px; display: flex; align-items: center; }
.product-panel .logo-row img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.product-panel h2 { margin: .35rem 0 .35rem; font-size: 1.45rem; }
.product-panel > p { margin: 0; color: var(--muted); }
.product-panel ul { margin: .8rem 0 0; padding: 0; list-style: none; flex: 1; }
.product-panel li { padding: .45rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.product-panel.chop { border-top: 4px solid #f0a202; }
.product-panel.pos { border-top: 4px solid #2457d6; }
.product-panel.gym { border-top: 4px solid #12b7d6; }

.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.more-grid a {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1rem; text-decoration: none; min-height: 120px;
}
.more-grid a:hover { border-color: var(--blue); }
.more-grid h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.more-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.4rem; align-items: center; }
.frame { background: var(--soft); border-radius: 16px; padding: .7rem; }
.frame img { display: block; width: 100%; border-radius: 12px; background: var(--paper); }
.checklist { list-style: none; margin: .8rem 0 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 110px 1fr; gap: .6rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.checklist span { color: var(--muted); }

.hardware { display: grid; grid-template-columns: 1.1fr .9fr; gap: .8rem; }
.hardware article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hardware img { width: 100%; height: 220px; object-fit: contain; background: var(--soft); display: block; }
.hardware div { padding: 1rem 1.05rem 1.15rem; }
.hardware h3 { margin: 0 0 .3rem; }
.hardware p { margin: 0; color: var(--muted); }

.directory { display: grid; grid-template-columns: 1fr 1fr; }
.directory a { display: grid; grid-template-columns: 120px 1fr; gap: .6rem; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.directory .tag { color: var(--blue); font-weight: 700; font-size: .82rem; padding-top: .25rem; }
.directory h3 { margin: 0; font-size: 1.15rem; }
.directory p { margin: .15rem 0 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.steps article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.steps span { color: var(--blue); font-weight: 700; font-size: .82rem; }
.steps h3 { margin: .3rem 0; font-size: 1.2rem; }
.steps p, .fine { color: var(--muted); }
.steps p { margin: 0; }
.fine { font-size: .95rem; }

.marquee { overflow: hidden; margin-top: 1rem; }
.marquee-track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.marquee-group { display: flex; gap: 1rem; padding-right: 1rem; align-items: center; }
.marquee img { height: 36px; width: auto; }
@keyframes slide { to { transform: translateX(-50%); } }

.cta-band {
  background: var(--navy); color: #fff; border-radius: 16px; padding: 1.4rem 1.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.cta-band h2 { margin: 0; color: #fff; font-size: 1.8rem; }
.cta-band p { margin: .4rem 0 0; color: #c9d3e2; max-width: 46ch; }
.cta-band .btn-line { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }

.page-hero { padding: 1.5rem 0 .2rem; }
.crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; }
.crumbs a { color: var(--muted); }
.product-hero { display: grid; grid-template-columns: 280px 1fr; gap: 1.3rem; align-items: center; }
.logo-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; min-height: 220px; display: grid; place-items: center; padding: 1.2rem; }
.logo-card img { max-width: 220px; max-height: 150px; }

.downloads { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; }
.downloads h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.downloads > p { margin: 0 0 .9rem; color: var(--muted); }
.dl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.dl {
  display: flex; flex-direction: column; gap: .15rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 12px; padding: .85rem .8rem; background: var(--soft); min-height: 96px;
}
.dl:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, var(--paper)); }
.dl strong { font-size: 1.02rem; }
.dl small { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.feature-grid article, .reason-grid article {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem;
}
.feature-grid h3, .reason-grid h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.feature-grid p, .reason-grid p { margin: 0; color: var(--muted); }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.feature-grid ul { margin: .4rem 0 0; padding-left: 1.05rem; color: var(--ink); }
.feature-grid li { margin: .25rem 0; }

.switcher { display: grid; grid-template-columns: 220px 1fr; gap: .8rem; }
.switcher-nav { display: grid; gap: .3rem; align-content: start; }
.switcher-nav button {
  text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; cursor: pointer; font-weight: 700;
}
.switcher-nav button.is-on { border-color: var(--blue); color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, var(--paper)); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.15rem; }
.panel h2 { margin-top: 0; }
.panel[hidden] { display: none; }

.contact-grid, .page-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; }
.mail-list { display: grid; gap: .6rem; }
.mail-list a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; text-decoration: none; }
.mail-list small { display: block; color: var(--muted); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; }
.form-card h2 { margin: 0 0 .25rem; }
.form-row { display: grid; gap: .25rem; margin-top: .75rem; }
.form-row label { font-weight: 700; font-size: .88rem; }
.form-row input, .form-row select, .form-row textarea, .support-search-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .75rem; background: var(--paper);
}
.form-card .btn { margin-top: 1rem; width: 100%; }
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1rem 0; }
.support-grid a { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; text-decoration: none; }
.support-grid h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.support-grid p { margin: 0; color: var(--muted); }
.faq-list { display: grid; gap: .45rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .8rem 0; }
.faq-item p { margin: 0 0 .9rem; color: var(--muted); }
.faq-item a { color: var(--blue); }

.site-footer { background: var(--navy); color: #e7edf6; padding: 2rem 0 1.2rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 1.5rem; }
.site-footer .brand { background: #fff; border-radius: 10px; padding: .3rem .5rem; display: inline-flex; }
.site-footer p { color: #b7c3d6; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.site-footer h4 { margin: 0 0 .55rem; font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #8ea0b8; }
.site-footer a { display: block; color: #e7edf6; text-decoration: none; padding: .16rem 0; }
.site-footer a:hover { color: #fff; }
.legal-line { margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.1); color: #8ea0b8; font-size: .88rem; }

@media (max-width: 980px) {
  .hero-grid, .product-board, .split, .hardware, .product-hero, .feature-grid, .switcher, .contact-grid, .footer-grid, .steps, .support-grid { grid-template-columns: 1fr; }
  .more-grid, .reason-grid, .directory { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: fixed; top: var(--header); left: 0; right: 0; z-index: 29;
    flex-direction: column; align-items: stretch; gap: .2rem; padding: .8rem 1rem 1rem;
    background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header)); overflow: auto;
  }
  .nav-links.open { display: flex; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 0 0 .3rem .4rem; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-cta { margin-left: auto; }
  .more-grid, .directory, .checklist li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider-track, .marquee-track { transition: none; animation: none; }
}

/* Inner pages that still use the older content markup */
body.site .page-main { padding: 1.25rem 0 2rem; }
body.site .container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
body.site .container-narrow { max-width: 760px; }
body.site .page-hero { padding: 0.4rem 0 0.2rem; background: transparent; border: 0; }
body.site .page-title { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); }
body.site .page-subtitle, body.site .breadcrumb { color: var(--muted); }
body.site .breadcrumb a { color: var(--muted); }
body.site .legal-body, body.site .service-detail {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem 1.25rem;
}
body.site .legal-body h2, body.site .legal-body h3, body.site .service-detail h2, body.site .service-detail h3 { color: var(--ink); }
body.site .legal-body p, body.site .legal-body li, body.site .service-detail p { color: var(--muted); }
body.site .legal-body a, body.site .service-detail a { color: var(--blue); }
body.site .feature-item, body.site .service-card, body.site .support-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; margin: 0.55rem 0;
}
body.site .pos-hero, body.site .section { color: var(--ink); }
body.site .pos-hero-title, body.site .pos-section-title { color: var(--ink); }
