/* =========================================================
   MOXU — editorial site styles
   ========================================================= */

:root {
  --paper: #f7f6f2;
  --paper-2: #fdfcf9;
  --white: #ffffff;
  --ink: #16181d;
  --ink-soft: #4d5460;
  --muted: #8d929c;
  --line: #e6e4dd;
  --line-dark: #d5d2c8;
  --accent: #5b4bff;
  --accent-soft: #eeecff;
  --warm: #ff6b4a;
  --dark: #15171c;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(21, 23, 28, 0.08);
  --shadow-hover: 0 26px 70px rgba(21, 23, 28, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
::selection { background: var(--accent); color: #fff; }

/* ---------- progress + header ---------- */

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  z-index: 200; transition: width 0.1s linear;
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(247, 246, 242, 0.94); }
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--dark); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -0.04em;
  transform: rotate(-4deg); transition: transform 0.3s;
}
.brand:hover .brand-mark { transform: rotate(0deg); }
.brand-name { font-weight: 750; font-size: 19px; letter-spacing: -0.03em; }
.brand-name i { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(0, 0, 0, 0.045); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink); place-items: center;
}

/* ---------- language switcher ---------- */
.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.72); color: var(--ink);
  font-size: 12px; font-weight: 750; white-space: nowrap; transition: border-color 0.2s, background 0.2s;
}
.lang-current:hover { border-color: var(--accent); background: #fff; }
.lang-chevron { font-size: 11px; color: var(--muted); transition: transform 0.2s; }
.lang-current[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; width: 214px;
  max-height: 360px; overflow-y: auto; padding: 6px; display: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover);
}
.lang-menu.open { display: grid; }
.lang-option {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  width: 100%; padding: 9px 11px; border: 0; border-radius: 9px; background: transparent;
  color: var(--ink); text-align: left; transition: background 0.18s, color 0.18s;
}
.lang-option:hover { background: #f5f3ff; }
.lang-option.active { background: var(--accent-soft); color: var(--accent); }
.lang-native { font-size: 13px; font-weight: 750; }
.lang-option small { font-size: 10px; color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-size: 14px; font-weight: 650;
  border: 1px solid transparent; transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform 0.25s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { box-shadow: 0 12px 30px rgba(21, 23, 28, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-dark); }
.btn-ghost:hover { background: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-dark); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); }
.btn-sm { padding: 10px 17px; font-size: 13px; }
.btn.full { width: 100%; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
  font-size: 13px; font-weight: 700;
}
.text-link svg { transition: transform 0.25s; }
.text-link:hover svg { transform: translateX(4px); }
.text-link.big { font-size: 15px; }

/* ---------- shared bits ---------- */

.kicker {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.kicker.light { color: rgba(255, 255, 255, 0.72); }
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .about-copy h2, .cta-band h2, .process-intro-grid h2, .form-card h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.28; margin: 0 0 16px;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 16px; }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.split-head .section-head { margin-bottom: 40px; }
.split-head .btn { margin-bottom: 48px; }
.media {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e9e7ff 0%, #f3e9e2 55%, #e4efe9 100%);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.media.is-fallback img { opacity: 0; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; transition-delay: var(--delay, 0ms); }

/* ---------- hero ---------- */

.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -30% -10% auto -10%; height: 900px; pointer-events: none;
  background: radial-gradient(ellipse 46% 55% at 18% 35%, rgba(91, 75, 255, 0.11), transparent 70%),
              radial-gradient(ellipse 40% 48% at 85% 18%, rgba(255, 107, 74, 0.10), transparent 72%);
  filter: blur(12px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr 0.96fr; align-items: center; gap: 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.6);
  font-size: 12px; font-weight: 650; color: var(--ink-soft); margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #35c98b; box-shadow: 0 0 0 4px rgba(53,201,139,0.16); }
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.18; letter-spacing: -0.04em; margin: 0 0 24px;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 520px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 54px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.hero-visual { position: relative; padding: 20px 0 30px; }
.hero-frame {
  position: relative; height: 540px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-hover); transform: rotate(1.5deg);
}
.hero-image { height: 100%; }
.hero-frame:hover img { transform: scale(1.04); }
.frame-label {
  position: absolute; left: 22px; bottom: 20px; z-index: 2; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8); border-radius: 16px;
  padding: 14px 18px; box-shadow: 0 16px 40px rgba(21,23,28,0.14);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 15px; line-height: 1.2; }
.float-card small { font-size: 11px; color: var(--muted); }
.float-top { top: 34px; left: -46px; }
.float-bottom { bottom: 64px; right: -38px; animation-delay: -3s; }
.float-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #fff4d8; color: #d9911f; }
.float-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
.shape-a { width: 130px; height: 130px; border: 1px solid rgba(91,75,255,0.35); top: -36px; right: 40px; }
.shape-b { width: 90px; height: 90px; background: rgba(255,107,74,0.12); bottom: -20px; left: 30px; }

/* ---------- ticker ---------- */

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); padding: 18px 0; }
.ticker-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: ticker 34s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: 20px; color: var(--ink-soft); white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--accent); font-size: 13px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- services ---------- */

.section-services { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative; display: block; padding: 30px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  min-height: 278px;
}
.service-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at 100% 0%, rgba(91,75,255,0.07), transparent 60%); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d9d5ff; }
.service-card:hover::after { opacity: 1; }
.service-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; }
.service-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.service-icon.large { width: 66px; height: 66px; border-radius: 19px; margin-bottom: 26px; }
.service-num { font-family: var(--serif); font-size: 20px; color: var(--line-dark); }
.service-category { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.service-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.service-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.7; }
.service-card .text-link { position: relative; z-index: 1; }

/* ---------- categories ---------- */

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.category-card { position: relative; display: block; height: 340px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.category-card .media { height: 100%; }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,0.05) 20%, rgba(10,12,16,0.78) 100%); }
.category-card:hover img { transform: scale(1.06); }
.category-overlay { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 30px 34px; color: #fff; }
.category-index { font-size: 11px; letter-spacing: 0.14em; opacity: 0.75; }
.category-overlay h3 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 6px 0 2px; }
.category-overlay p { margin: 0; font-size: 14px; opacity: 0.85; }
.category-arrow { position: absolute; right: 32px; bottom: 34px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); display: grid; place-items: center; transition: background 0.25s, transform 0.25s; }
.category-card:hover .category-arrow { background: #fff; color: var(--ink); transform: rotate(45deg); }

/* ---------- products ---------- */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.product-card { min-width: 0; }
.product-card-link { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.product-card .media { aspect-ratio: 4 / 4.4; border-radius: var(--radius); }
.product-card:hover .media img { transform: scale(1.06); }
.card-corner {
  position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9); display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s;
}
.product-card:hover .card-corner { opacity: 1; transform: none; }
.product-card-body { padding: 16px 4px 0; }
.card-meta { display: flex; gap: 8px; margin-bottom: 8px; }
.card-meta span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.card-meta span:first-child { color: var(--accent); }
.product-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; line-height: 1.45; }
.product-card h3 a:hover { color: var(--accent); }
.product-card-body p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- about ---------- */

.section-about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: center; }
.about-visual { position: relative; height: 550px; border-radius: var(--radius-lg); overflow: visible; }
.about-visual .media { height: 100%; border-radius: var(--radius-lg); }
.about-badge {
  position: absolute; right: -30px; bottom: -24px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.6;
  transform: rotate(-12deg); box-shadow: 0 18px 40px rgba(91,75,255,0.3);
}
.about-badge strong { display: block; font-family: var(--serif); font-size: 25px; letter-spacing: 0; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy > p { color: var(--ink-soft); margin: 0 0 16px; }
.check-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.check-list svg { color: var(--accent); flex-shrink: 0; }

/* ---------- testimonials ---------- */

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial {
  margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); display: flex; flex-direction: column; gap: 16px;
}
.stars { display: flex; gap: 3px; color: #e9a23b; }
.stars svg { fill: currentColor; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.8; color: var(--ink); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar-wrap { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); flex-shrink: 0; }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.testimonial figcaption strong { display: block; font-size: 13px; }
.testimonial figcaption small { font-size: 11px; color: var(--muted); }

/* ---------- posts ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.post-card { min-width: 0; }
.post-cover { display: block; border-radius: var(--radius); overflow: hidden; }
.post-cover .media { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.post-card:hover .media img { transform: scale(1.05); }
.post-card-body { padding: 20px 4px 0; }
.post-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.post-meta span:first-child { color: var(--accent); }
.post-card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.45; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.post-card h3 a:hover { color: var(--accent); }
.post-card-body > p { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---------- CTA ---------- */

.cta-band { background: var(--dark); color: #fff; padding: 86px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -120px; top: -260px;
  background: radial-gradient(circle, rgba(91,75,255,0.45), transparent 65%);
}
.cta-band.slim { padding: 58px 0; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.68); margin: 0; }

/* ---------- page hero + filters ---------- */

.page-hero { padding: 92px 0 66px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; right: -100px; top: -180px; width: 620px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,75,255,0.12), transparent 65%); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(44px, 6vw, 76px); line-height: 1.18; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 20px; }
.page-hero p { color: var(--ink-soft); font-size: 17px; max-width: 620px; margin: 0; }
.notice-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 9px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 650; }
.section-list { padding-top: 60px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter-btn {
  border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 650; transition: all 0.2s;
}
.filter-btn span { font-size: 11px; opacity: 0.55; margin-left: 4px; }
.filter-btn:hover { background: rgba(0,0,0,0.045); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; }
.blog-search {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; width: min(520px, 100%);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; color: var(--muted);
}
.blog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.blog-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); min-width: 0; }
.blog-search kbd { font-family: var(--sans); font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; color: var(--muted); }

/* ---------- product detail ---------- */

.detail-section { padding: 42px 0 90px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 42px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb em { font-style: normal; color: var(--ink); }
.product-detail-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 76px; align-items: start; }
.detail-media .media { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
.detail-info h1 { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 48px); line-height: 1.24; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 12px; }
.detail-tagline { font-size: 18px; font-weight: 650; color: var(--accent); margin: 0 0 20px; }
.detail-desc { color: var(--ink-soft); margin: 0 0 24px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 5px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 11px; font-weight: 650; color: var(--ink-soft); }
.spec-list { margin: 30px 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; }
.detail-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.story-box { margin-top: 70px; padding: 40px 48px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line); }
.story-box p { font-family: var(--serif); font-size: 24px; line-height: 1.7; margin: 0; max-width: 760px; }

/* ---------- service detail ---------- */

.service-hero { padding: 42px 0 20px; }
.service-hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 70px; align-items: center; }
.service-hero-copy h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 64px); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 18px; }
.service-hero-copy > p { color: var(--ink-soft); font-size: 17px; margin: 0 0 30px; }
.service-hero-media .media { height: 470px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.service-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.highlight-list { display: grid; gap: 14px; }
.highlight-list > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-size: 14px; font-weight: 600; }
.highlight-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.timeline { border-left: 1px solid var(--line); padding-left: 28px; display: grid; gap: 30px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline-num { font-family: var(--serif); font-size: 13px; color: var(--accent); }
.timeline-item h3 { font-size: 17px; margin: 4px 0 5px; }
.timeline-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.faq-block { margin-top: 90px; max-width: 800px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; background: none; border: 0; text-align: left; font-size: 16px; font-weight: 650; color: var(--ink); }
.faq-question i { font-style: normal; font-size: 22px; color: var(--accent); transition: transform 0.25s; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { margin: 0 0 22px; color: var(--ink-soft); font-size: 14px; }
.process-intro-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.process-steps { display: grid; gap: 16px; }
.process-step { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.process-step > span { font-family: var(--serif); font-size: 28px; color: var(--accent); }
.process-step h3 { margin: 0 0 4px; font-size: 17px; }
.process-step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- article ---------- */

.is-article .scroll-progress { display: none; }
.article-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.article-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.article-head { padding-top: 44px; max-width: 860px; text-align: center; }
.article-head .breadcrumb { justify-content: center; }
.article-head h1 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 68px); line-height: 1.22; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 18px; }
.article-excerpt { font-size: 17px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 26px; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; font-size: 12px; color: var(--muted); margin-bottom: 40px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-cover .media { height: 460px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: 70px; justify-content: center; padding: 64px 0 30px; }
.article-body { font-size: 16px; color: #2b3038; line-height: 1.95; }
.article-body h2 { font-family: var(--serif); font-size: 28px; margin: 44px 0 16px; letter-spacing: -0.01em; }
.article-body h3 { font-size: 20px; margin: 32px 0 12px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 30px 0; padding: 18px 26px; border-left: 3px solid var(--accent);
  background: var(--paper-2); border-radius: 0 14px 14px 0; font-family: var(--serif); font-size: 18px; color: var(--ink);
}
.article-body code { background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 5px; font-size: 0.9em; }
.article-body pre { background: var(--dark); color: #e8e8f5; padding: 22px; border-radius: 14px; overflow: auto; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.article-aside { position: sticky; top: 110px; align-self: start; display: grid; gap: 18px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--white); }
.aside-box .kicker { margin-bottom: 12px; }
.aside-cta h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 8px; }
.aside-cta p { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: border-color 0.25s, transform 0.25s; }
.contact-card:hover { border-color: #d9d5ff; transform: translateX(4px); }
.contact-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.contact-card small { display: block; font-size: 11px; color: var(--muted); }
.contact-card strong { font-size: 15px; }
.social-block { margin-top: 54px; }
.social-block h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }
.social-block > p { font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; }
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.social-card { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); font-size: 14px; transition: transform 0.25s, box-shadow 0.25s; }
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.social-card > svg:last-child { justify-self: end; color: var(--muted); }
.social-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--dark); color: #fff; }
.form-card { padding: 42px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 32px; }
.form-card > p { color: var(--ink-soft); font-size: 14px; margin: 0 0 26px; }
.form-card label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 18px; }
.form-card input, .form-card select, .form-card textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--paper-2); color: var(--ink); font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-card textarea { resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-hint { font-size: 12px; color: var(--muted); text-align: center; margin: 16px 0 0 !important; }

/* ---------- footer ---------- */

.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 76px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.brand-light .brand-mark { background: #fff; color: var(--dark); }
.brand-light .brand-name { color: #fff; }
.footer-brand p { max-width: 280px; font-size: 14px; margin: 20px 0 22px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.16); display: grid; place-items: center; transition: background 0.25s, color 0.25s; }
.footer-socials a:hover { background: #fff; color: var(--dark); }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 4px 0 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.4); }
.back-to-top { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid, .about-grid, .service-hero-grid, .contact-grid { gap: 46px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .float-top { left: -18px; }
  .float-bottom { right: -12px; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 40px, 1200px); }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 20px 24px; background: var(--paper-2); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .menu-toggle { display: grid; }
  .nav-cta { display: none; }
  .hero { padding-top: 54px; }
  .hero-grid, .about-grid, .service-hero-grid, .contact-grid, .service-content-grid, .process-intro-grid, .product-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > * { min-width: 0; }
  .hero-copy { order: 1; }
  .hero-sub { max-width: 100%; overflow-wrap: anywhere; }
  .eyebrow { flex-wrap: wrap; }
  .hero-visual { order: 2; }
  .hero-frame { height: 420px; }
  .about-visual { height: 400px; max-width: 560px; }
  .about-badge { right: 12px; bottom: -20px; }
  .service-hero-media .media { height: 360px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .post-grid, .footer-top { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .split-head { flex-direction: column; align-items: flex-start; }
  .split-head .btn { margin-bottom: 32px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { height: 280px; }
  .footer-top { gap: 36px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 42px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-frame { height: 330px; }
  .float-card { padding: 10px 13px; }
  .float-top { top: 12px; left: -8px; }
  .float-bottom { bottom: 20px; right: -6px; }
  .hero-sub { font-size: 15px; }
  .service-grid, .product-grid, .testimonial-grid, .post-grid, .footer-top, .social-cards, .article-aside { grid-template-columns: 1fr; }
  .section-head h2, .about-copy h2, .cta-band h2 { font-size: 30px; }
  .page-hero { padding: 62px 0 44px; }
  .page-hero h1 { font-size: 40px; }
  .article-cover .media { height: 260px; }
  .form-card { padding: 26px; }
  .story-box { padding: 26px; }
  .story-box p { font-size: 19px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .ticker-track span { font-size: 17px; }
}

/* ---------- RTL: Arabic & Hebrew ---------- */
[dir="rtl"] .hero-copy, [dir="rtl"] .article-body, [dir="rtl"] .about-copy { text-align: right; }
[dir="rtl"] .hero h1 span { text-align: right; }
[dir="rtl"] .float-top { left: auto; right: -46px; }
[dir="rtl"] .float-bottom { right: auto; left: -38px; }
[dir="rtl"] .card-corner { right: auto; left: 14px; }
[dir="rtl"] .category-arrow { right: auto; left: 32px; }
[dir="rtl"] .category-overlay { text-align: right; }
[dir="rtl"] .about-badge { right: auto; left: -30px; transform: rotate(12deg); }
[dir="rtl"] .check-list li { flex-direction: row-reverse; }
[dir="rtl"] .contact-card:hover { transform: translateX(-4px); }
[dir="rtl"] .timeline { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-right: 28px; }
[dir="rtl"] .timeline-item::before { left: auto; right: -34px; }
[dir="rtl"] .article-body blockquote { border-left: 0; border-right: 3px solid var(--accent); border-radius: 14px 0 0 14px; }
[dir="rtl"] .article-body ul, [dir="rtl"] .article-body ol { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-option { text-align: right; }
[dir="rtl"] .footer-socials, [dir="rtl"] .hero-actions, [dir="rtl"] .post-meta { direction: rtl; }
[dir="rtl"] .section-head.center { text-align: center; }
@media (max-width: 1080px) { [dir="rtl"] .float-top { right: -18px; } [dir="rtl"] .float-bottom { left: -12px; } }
@media (max-width: 560px) { [dir="rtl"] .float-top { right: -8px; } [dir="rtl"] .float-bottom { left: -6px; } [dir="rtl"] .about-badge { left: 12px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- accessibility + command palette + article navigation ---------- */

.skip-link {
  position: fixed; top: -70px; left: 16px; z-index: 300;
  padding: 11px 17px; border-radius: 11px; background: var(--dark); color: #fff;
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow-hover); transition: top 0.2s;
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.search-trigger {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.72);
  color: var(--ink-soft); transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.search-trigger:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.search-trigger kbd {
  padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--paper-2); color: var(--muted); font: 600 10px/1.4 var(--sans);
}
body.cmd-open { overflow: hidden; }

.cmd-overlay {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: start center;
  padding: 11vh 20px 20px; background: rgba(18, 20, 26, 0.46);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.cmd-panel {
  width: min(680px, 100%); max-height: 78vh; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2);
  box-shadow: 0 30px 100px rgba(13, 15, 20, 0.28);
}
.cmd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.cmd-head h2 { font-family: var(--serif); font-size: 19px; margin: 0; }
.cmd-close {
  width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted);
}
.cmd-close:hover { background: var(--accent-soft); color: var(--accent); }
.cmd-input-wrap {
  display: flex; align-items: center; gap: 12px; margin: 0 20px 12px; padding: 0 14px;
  border: 1px solid var(--line-dark); border-radius: 13px; background: var(--white); color: var(--muted);
}
.cmd-input-wrap input {
  flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: none;
  background: transparent; color: var(--ink); font-size: 15px;
}
.cmd-input-wrap kbd {
  padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px;
  font: 600 10px/1.4 var(--sans);
}
.cmd-results { flex: 1; overflow-y: auto; padding: 0 10px 10px; }
.cmd-result {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 12px; row-gap: 2px;
  padding: 11px 12px; border-radius: 12px; color: var(--ink);
}
.cmd-result.selected, .cmd-result:hover { background: var(--accent-soft); }
.cmd-kind {
  grid-row: 1 / span 2; align-self: start; margin-top: 2px; padding: 3px 7px;
  border-radius: 6px; background: var(--white); color: var(--accent);
  font-size: 10px; font-weight: 750; text-align: center;
}
.cmd-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-desc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-result mark { padding: 0 2px; border-radius: 3px; background: #ffe9a8; color: inherit; }
.cmd-empty { padding: 42px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.cmd-foot {
  display: flex; justify-content: space-between; gap: 16px; padding: 11px 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 11px;
}

.toc-box { padding: 19px 20px; }
.toc-list { display: grid; gap: 7px; max-height: 290px; overflow-y: auto; }
.toc-link {
  padding-left: 11px; border-left: 2px solid var(--line); color: var(--ink-soft);
  font-size: 12px; line-height: 1.55; transition: color 0.2s, border-color 0.2s;
}
.toc-link.toc-level-3 { padding-left: 21px; }
.toc-link:hover, .toc-link.active { border-left-color: var(--accent); color: var(--accent); }
[dir="rtl"] .toc-link { padding-left: 0; padding-right: 11px; border-left: 0; border-right: 2px solid var(--line); }
[dir="rtl"] .toc-link.toc-level-3 { padding-right: 21px; }
[dir="rtl"] .toc-link:hover, [dir="rtl"] .toc-link.active { border-right-color: var(--accent); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 36px; }
.post-nav-item {
  display: grid; gap: 6px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); transition: transform 0.25s, border-color 0.25s;
}
.post-nav-item:empty { border-color: transparent; background: transparent; }
a.post-nav-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.post-nav-item small { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.post-nav-item strong { font-size: 14px; line-height: 1.5; }
.post-nav-item.next { text-align: right; }

.page-hero-404 { min-height: 58vh; display: grid; align-items: center; }
.page-hero-404 h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 64px); }
#notFoundSearch { border: 1px solid var(--line-dark); }

@media (max-width: 860px) {
  .search-trigger { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .search-trigger kbd { display: none; }
}

@media (max-width: 560px) {
  .cmd-overlay { padding: 8vh 12px 12px; }
  .cmd-panel { max-height: 84vh; border-radius: 16px; }
  .cmd-result { grid-template-columns: 1fr; gap: 2px; }
  .cmd-kind { grid-row: auto; justify-self: start; }
  .cmd-foot span:last-child { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; }
}
