/* ==========================================================================
   yeboplayer — corporate site stylesheet
   Design language: minimal, generous whitespace, deep ink + copper accent
   ========================================================================== */

:root {
  --ink: #0a0e13;
  --ink-2: #101821;
  --ink-3: #1a2431;
  --ink-4: #26313f;
  --paper: #ffffff;
  --bg: #f7f8fa;
  --bg-2: #eef1f5;
  --line: #e4e8ee;
  --line-2: #d5dbe3;
  --text: #111a24;
  --text-2: #3c4855;
  --muted: #6b7885;
  --accent: #c8873f;
  --accent-2: #e0aa6d;
  --accent-dark: #a86d2c;
  --accent-soft: rgba(200, 135, 63, 0.1);
  --danger: #d0453b;
  --success: #2f9e6a;
  --warn: #c98b0f;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(12, 20, 32, 0.1);
  --shadow: 0 14px 34px -16px rgba(12, 20, 32, 0.24);
  --shadow-lg: 0 34px 64px -28px rgba(12, 20, 32, 0.36);

  --maxw: 1180px;
  --header-h: 76px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tint { background: var(--bg); }
.section-ink { background: var(--ink); color: #e8edf3; }

.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.8;
}
.section-head.center .eyebrow::before { display: none; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 16px; }
.section-ink .section-sub { color: #96a4b4; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(200, 135, 63, 0.85); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 16px 30px -14px rgba(168, 109, 44, 0.9); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn-light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-danger { background: #fdeceb; color: var(--danger); border-color: #f6d5d2; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px; color: var(--accent-dark);
}
.link-arrow svg { transition: transform 0.22s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(200, 135, 63, 0.9);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 18px; font-weight: 700; letter-spacing: -0.035em; }
.brand-text span { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.55; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  position: relative; padding: 9px 15px; border-radius: 9px;
  font-size: 14.5px; font-weight: 550; transition: color 0.2s ease, background 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* transparent state — used while the dark hero is in view */
.site-header.on-dark { color: #fff; }
.site-header.on-dark .brand-text span { opacity: 0.6; }
.site-header.on-dark .nav a:hover { background: rgba(255, 255, 255, 0.1); }
.site-header.on-dark .nav a.active { color: var(--accent-2); }
.site-header.on-dark .hd-login { color: #fff; }
.site-header.on-dark .hd-login:hover { border-color: rgba(255, 255, 255, 0.55); }

.site-header.solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 22px -18px rgba(12, 20, 32, 0.5);
  color: var(--text);
}
.site-header.solid .nav a.active { color: var(--accent-dark); }
.site-header.solid .brand-text span { opacity: 0.45; }

.hd-login {
  height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; border: 1px solid transparent;
  transition: all 0.2s ease;
}
.hd-login { border-color: var(--line-2); }
.hd-login:hover { border-color: var(--accent); color: var(--accent-dark); }
.site-header.on-dark .hd-login { border-color: rgba(255, 255, 255, 0.3); }

.hd-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}

.nav-toggle {
  display: none; flex: none; width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-mobile-cta { display: none; }
.site-header.on-dark .nav-toggle { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.nav-toggle span { display: block; width: 17px; height: 1.6px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: currentColor;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------------------------------------------------- language switch */
.lang-switch {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 2px; gap: 2px; background: rgba(255, 255, 255, 0.5);
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.01em; line-height: 1; color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--ink); color: #fff; }

/* inside the transparent / dark header */
.site-header.on-dark .lang-switch {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}
.site-header.on-dark .lang-switch a { color: rgba(255, 255, 255, 0.75); }
.site-header.on-dark .lang-switch a:hover { color: #fff; }
.site-header.on-dark .lang-switch a.active { background: rgba(255, 255, 255, 0.92); color: var(--ink); }

.site-header.solid .lang-switch { background: rgba(255, 255, 255, 0.6); }

/* sidebar variant (account / admin console) */
.lang-switch-dark {
  margin: 22px 13px 0;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.lang-switch-dark a { color: #8c99a7; }
.lang-switch-dark a:hover { color: #fff; }
.lang-switch-dark a.active { background: #fff; color: var(--ink); }

/* the mobile duplicate lives inside the slide-down nav */
.lang-switch-mobile { display: none; }

/* top bar on the sign-in / sign-up screens */
.auth-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: clamp(600px, 88vh, 880px);
  display: flex; align-items: center;
  background: var(--ink); color: #fff; overflow: hidden; padding: 150px 0 90px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 14, 19, 0.96) 0%, rgba(10, 14, 19, 0.86) 38%,
    rgba(10, 14, 19, 0.5) 62%, rgba(10, 14, 19, 0.72) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 620px; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 62px); letter-spacing: -0.04em; line-height: 1.1;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-lead { font-size: 17px; color: #b9c3cf; max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: 70px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 32px; max-width: 700px;
}
.hero-stats .num {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em;
  color: #fff; line-height: 1.1;
}
.hero-stats .num i { font-style: normal; color: var(--accent-2); font-size: 0.62em; margin-left: 1px; }
.hero-stats .lbl { font-size: 12.5px; color: #8d9aa8; letter-spacing: 0.06em; margin-top: 6px; }

/* ----------------------------------------------------------- page hero */
.page-hero {
  position: relative; background: var(--ink); color: #fff;
  padding: 168px 0 78px; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 300px at 82% 8%, rgba(200, 135, 63, 0.2), transparent 70%),
    radial-gradient(560px 240px at 8% 92%, rgba(52, 92, 140, 0.22), transparent 72%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.035em; }
.page-hero p { color: #a3b0be; max-width: 640px; margin: 18px 0 0; font-size: 16.5px; }
.crumbs { display: flex; gap: 9px; align-items: center; font-size: 13px; color: #7f8c9a; margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs span.sep { opacity: 0.5; }

/* ------------------------------------------------------------- eyebrow */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.badge-new { background: var(--accent-soft); color: var(--accent-dark); }
.badge-ink { background: #eef1f5; color: var(--text-2); }
.badge-ok { background: #e7f6ee; color: #1f7a51; }
.badge-warn { background: #fdf3e0; color: #96690c; }
.badge-off { background: #f2f4f7; color: #7a8794; }
.badge-danger { background: #fdecea; color: #b8372d; }

/* -------------------------------------------------------------- grids */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------- category card */
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-2); aspect-ratio: 4 / 4.4; display: flex; flex-direction: column;
  justify-content: flex-end; color: #fff;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: var(--shadow-sm);
}
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 17, 0.92) 4%, rgba(8, 12, 17, 0.45) 42%, rgba(8, 12, 17, 0.06) 78%);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .body { position: relative; z-index: 2; padding: 26px; }
.cat-card .idx {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 650;
}
.cat-card h3 { font-size: 20px; margin: 8px 0 6px; }
.cat-card p { font-size: 13.5px; color: #aebbca; margin: 0; }
.cat-card .go {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(6px); transition: all 0.35s ease;
}
.cat-card:hover .go { opacity: 1; transform: none; }

/* -------------------------------------------------------- product card */
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card:hover { border-color: #d9dee6; box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .thumb {
  aspect-ratio: 4 / 3.1; background: #f1f3f6; overflow: hidden; position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .tag {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  background: rgba(10, 14, 19, 0.78); color: #fff; backdrop-filter: blur(6px);
}
.product-card .body { padding: 20px 21px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .model {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.product-card h3 { font-size: 17px; margin: 7px 0 8px; letter-spacing: -0.02em; }
.product-card .desc {
  font-size: 13.5px; color: var(--muted); margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 15px; border-top: 1px solid var(--line);
}
.product-card .foot .cat { font-size: 12.5px; color: var(--muted); }

/* -------------------------------------------------------- feature card */
.feature {
  padding: 30px 26px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line);
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 18px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 9px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }
.section-ink .feature { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.section-ink .feature p { color: #93a1b0; }
.section-ink .feature h3 { color: #fff; }

/* --------------------------------------------------------- split block */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
.split-body h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.03em; margin-bottom: 18px; }
.split-body p { color: var(--text-2); }
.check-list { margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-2); }
.check-list li svg { flex: none; margin-top: 4px; color: var(--accent); }

/* --------------------------------------------------------- mini stats */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.mini-stats .item { padding-left: 18px; border-left: 2px solid var(--accent); }
.mini-stats .n { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; }
.mini-stats .n i { font-style: normal; color: var(--accent); font-size: 0.6em; }
.mini-stats .t { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ timeline */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2);
}
.timeline .row { position: relative; padding: 0 0 34px 40px; }
.timeline .row::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; border: 2px solid var(--accent);
}
.timeline .yr { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-dark); }
.timeline h4 { font-size: 16px; margin: 5px 0 5px; }
.timeline p { font-size: 14px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ services */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 74px 1fr 1.25fr; gap: 26px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.svc .no { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; padding-top: 4px; }
.svc h3 { font-size: 18px; }
.svc p { font-size: 14.5px; color: var(--muted); margin: 0; }
.svc .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.svc .chips span {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--text-2);
}

/* -------------------------------------------------------------- cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 28px; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: start; }
.info-item { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
}
.info-item .k { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.info-item .v { font-size: 15px; font-weight: 550; word-break: break-word; }

/* --------------------------------------------------------------- form */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #fff; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea { height: auto; min-height: 132px; padding: 12px 15px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: #a7b1bd; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7885' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.checkbox input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.form-error { color: var(--danger); font-size: 12.5px; margin-top: 6px; }

/* --------------------------------------------------------------- auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
  position: relative; background: var(--ink); color: #fff; padding: 60px 56px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 320px at 78% 18%, rgba(200, 135, 63, 0.22), transparent 68%),
    radial-gradient(520px 280px at 12% 86%, rgba(52, 92, 140, 0.24), transparent 70%);
}
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside h2 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.035em; margin-bottom: 16px; }
.auth-aside p { color: #9daab8; font-size: 15px; max-width: 400px; }
.auth-aside .ticks { display: grid; gap: 15px; margin-top: 34px; }
.auth-aside .ticks li { display: flex; gap: 11px; font-size: 14.5px; color: #c3ccd7; align-items: flex-start; }
.auth-aside .ticks svg { flex: none; margin-top: 4px; color: var(--accent-2); }
.auth-main { display: grid; place-items: center; padding: 56px 30px; background: var(--bg); }
.auth-card { width: 100%; max-width: 430px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 38px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 25px; letter-spacing: -0.03em; margin-bottom: 7px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.auth-foot a { color: var(--accent-dark); font-weight: 600; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; font-weight: 700; }

/* --------------------------------------------------------------- flash */
.flash-stack {
  position: fixed; top: calc(var(--header-h) + 14px); right: 22px; z-index: 120;
  display: grid; gap: 10px; width: min(370px, calc(100vw - 44px));
}
.flash {
  display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 14px; animation: flashIn 0.32s ease both;
}
.flash .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; }
.flash .ico { flex: none; margin-top: 2px; }
.flash.success { border-left: 3px solid var(--success); }
.flash.error { border-left: 3px solid var(--danger); }
.flash.warning { border-left: 3px solid var(--warn); }
.flash.success .ico { color: var(--success); }
.flash.error .ico { color: var(--danger); }
.flash.warning .ico { color: var(--warn); }
@keyframes flashIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------- page section */
.page { padding: 78px 0 96px; }
.page-body { background: var(--bg); min-height: 60vh; }

/* --------------------------------------------------------------- tabs */
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 36px; }
.chip {
  height: 38px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 550;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-box { position: relative; margin-left: auto; }
.search-box .input { height: 40px; width: 232px; padding-left: 38px; border-radius: 999px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ----------------------------------------------------------- product detail */
.pd { display: grid; grid-template-columns: 1.06fr 1fr; gap: 54px; align-items: start; }
.pd-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pd-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pd h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; margin: 12px 0 14px; }
.pd .lede { font-size: 15.5px; color: var(--muted); }
.pd-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.pd-meta div { background: #fff; padding: 15px 18px; }
.pd-meta .k { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.pd-meta .v { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table td { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 34%; }
.spec-table tr:last-child td { border-bottom: 0; }
.prose { color: var(--text-2); font-size: 15.5px; white-space: pre-line; }

/* ------------------------------------------------------------- cta band */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); color: #fff; padding: 62px 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 300px at 88% 20%, rgba(200, 135, 63, 0.26), transparent 70%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(23px, 2.8vw, 34px); letter-spacing: -0.03em; }
.cta-band p { color: #a2afbd; margin: 12px 0 0; max-width: 520px; }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #93a1b0; padding: 74px 0 0; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; letter-spacing: 0.02em; }
.site-footer a { color: #93a1b0; }
.site-footer a:hover { color: var(--accent-2); }
.footer-links { display: grid; gap: 11px; }
.footer-brand p { max-width: 320px; margin: 16px 0 0; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13px; color: #6d7a88;
}

/* -------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th {
  text-align: left; padding: 13px 16px; background: var(--bg); color: var(--text-2);
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafbfc; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.pager { display: flex; gap: 7px; justify-content: center; margin-top: 32px; align-items: center; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 11px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--line-2);
  font-size: 13.5px; background: #fff;
}
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .disabled { opacity: 0.45; }

/* ------------------------------------------------------------ dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
}
.stat .k { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; display: flex; align-items: center; gap: 7px; }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; margin-top: 9px; }
.stat .d { font-size: 12.5px; color: var(--muted); }

.dash { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; background: var(--bg); }
.dash-side { background: var(--ink); color: #fff; padding: 26px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-side .brand { margin: 0 8px 30px; }
.dash-nav { display: grid; gap: 3px; }
.dash-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 9px;
  font-size: 14px; color: #9aa8b6; font-weight: 520; transition: all 0.18s ease;
}
.dash-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.dash-nav a.active { background: var(--accent); color: #fff; }
.dash-nav .grp { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #5c6b7a; margin: 20px 13px 8px; }
.dash-main { padding: 30px 34px 60px; min-width: 0; }
.dash-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dash-head h1 { font-size: 25px; letter-spacing: -0.03em; }
.dash-head p { color: var(--muted); font-size: 14px; margin: 5px 0 0; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; }
.panel-body { padding: 22px; }
.panel-body.flush { padding: 0; }

.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty svg { color: #c3ccd6; margin-bottom: 14px; }

/* --------------------------------------------------------------- misc */
.notice {
  padding: 14px 17px; border-radius: var(--radius-sm); font-size: 14px;
  background: var(--accent-soft); border: 1px solid rgba(200, 135, 63, 0.22); color: #7d5520;
}
.divider { height: 1px; background: var(--line); margin: 30px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.flex { display: flex; } .between { justify-content: space-between; } .center-y { align-items: center; }
.gap-1 { gap: 10px; } .gap-2 { gap: 18px; } .wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.toast-note { position: fixed; bottom: 26px; left: 26px; z-index: 120; }

/* ------------------------------------------------------------ reveal */
/* Progressive enhancement: content is visible by default. Only when the
   inline head script has confirmed JS is available do we hide it and let
   the IntersectionObserver fade it in. Never leave a blank page behind. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav, .header-actions .hd-login { display: none; }
  .nav-toggle { display: flex; }
  .site-header .container { gap: 12px; }

  /* keep the brand from pushing the menu button off-screen */
  .brand { min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-text b { font-size: 17px; white-space: nowrap; }
  .brand-text span { display: none; }
  .header-actions { gap: 10px; }
  .header-actions .btn { height: 34px; padding: 0 14px; font-size: 13px; }

  /* the segmented control stays pinned top-right at every width so the
     language can be switched without opening the slide-down menu; the
     duplicate inside the menu would be redundant */
  .header-actions > .lang-switch { display: inline-flex; }
  .header-actions > .lang-switch a { min-width: 32px; height: 30px; padding: 0 8px; font-size: 12px; }
  .lang-switch-mobile { display: none; }

  .lang-switch a { min-width: 32px; height: 27px; }
  .lang-switch-dark { margin: 18px 13px 0; }

  .nav.open {
    display: flex; position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px 20px 24px; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    color: var(--text); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open a { padding: 13px 12px; border-radius: 10px; color: var(--text); }
  .nav.open a::after { display: none; }
  .nav.open a.active { color: var(--accent-dark); background: var(--accent-soft); }
  .nav.open .nav-mobile-cta { margin-top: 12px; display: flex; gap: 10px; }

  /* the hero photo is portrait-cropped on phones — darken it vertically so
     the headline stays legible over the product shot */
  .hero-bg img { object-position: center 34%; }
  .hero-bg::after {
    background: linear-gradient(180deg,
      rgba(10, 14, 19, 0.93) 0%,
      rgba(10, 14, 19, 0.8) 40%,
      rgba(10, 14, 19, 0.9) 72%,
      rgba(10, 14, 19, 0.97) 100%);
  }

  .split, .pd, .contact-grid, .auth-wrap { grid-template-columns: 1fr; }
  .split { gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .pd { gap: 30px; }
  .auth-aside { display: none; }
  .svc { grid-template-columns: 1fr; gap: 10px; }
  .svc .no { padding-top: 0; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; }
  .dash-nav { display: flex; flex-wrap: wrap; }
  .dash-nav .grp { width: 100%; }
  .dash-main { padding: 22px 18px 50px; }
  .hero { min-height: auto; padding: 130px 0 72px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .page-hero { padding: 132px 0 56px; }
  .cta-band { padding: 42px 30px; }
  .pd-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .site-header .container { padding: 0 14px; }
  /* on phones the header keeps only the brand, the language switch and the
     menu button — sign-in / sign-up live in the slide-down menu */
  .header-actions .btn { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box .input { width: 100%; }
  .flash-stack { right: 12px; left: 12px; width: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 30px 22px; }
}

/* very narrow phones — protect the brand mark and the language switch */
@media (max-width: 359px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand-text b { font-size: 16px; }
}

@media print {
  .site-header, .site-footer, .flash-stack { display: none; }
}
