/* ==========================================================================
   AI Tech Forge — design tokens
   ========================================================================== */
:root {
  --bg-0:        #060606;
  --bg-1:        #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --line:        #232323;
  --line-soft:   #1c1c1c;
  --text:        #f3f3f3;
  --text-muted:  #9aa0a6;
  --text-dim:    #6b7280;
  --brand:       #ff7a18;
  --brand-2:     #ff5a00;
  --brand-3:     #ff9a3c;
  --brand-soft:  rgba(255, 122, 24, 0.15);
  --brand-line:  rgba(255, 122, 24, 0.35);
  --danger:      #ff4d4f;
  --success:     #22c55e;
  --radius-s:    6px;
  --radius-m:    10px;
  --radius-l:    16px;
  --shadow:      0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.35);
  --container:   1200px;
  --transition:  200ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-sans:   "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei",
                 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:   ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-3); }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-3); padding: 2px 6px; border-radius: 4px; }
::selection { background: var(--brand); color: #000; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.accent { color: var(--brand); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled { background: rgba(6, 6, 6, 0.96); border-bottom-color: var(--line); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.35);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-tagline { font-size: 11px; color: var(--text-muted); letter-spacing: .04em; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-list a:hover { color: var(--text); background: var(--bg-2); }
.nav-list a.is-active { color: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
}
.lang-trigger svg { transition: transform var(--transition); }
.lang-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 20;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  font-size: 14px;
  color: var(--text);
}
.lang-menu a:hover { background: var(--bg-3); color: var(--brand-3); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 122, 24, 0.45); color: #fff; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-s);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 122, 24, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 122, 24, 0.45); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--brand); color: var(--brand-3); }
.btn-arrow::after { content: "→"; transition: transform var(--transition); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
  background: radial-gradient(ellipse at 70% 0%, rgba(255, 122, 24, 0.18), transparent 60%),
              linear-gradient(180deg, #1a0c00 0%, var(--bg-0) 65%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 122, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 24, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
}
.hero-copy { z-index: 1; }
.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-line { display: block; }
.hero-line.accent {
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 122, 24, 0.08);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--brand-3);
}
.meta-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.25); }
}
.hero-art { display: flex; justify-content: center; }
.hero-art svg { max-width: 480px; filter: drop-shadow(0 20px 40px rgba(255, 122, 24, 0.25)); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--brand);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}
.hero-scroll::before {
  content: "";
  width: 4px;
  height: 8px;
  background: var(--brand);
  border-radius: 2px;
  margin-top: 6px;
  animation: scroll-bounce 1.6s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   Section helpers
   ========================================================================== */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 40px); }
.section-head p { color: var(--text-muted); font-size: 16px; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; text-align: left; max-width: none; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-l);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--brand-line));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--brand-line); box-shadow: 0 18px 40px rgba(255, 122, 24, 0.12); }
.service-card:hover::before { opacity: 1; }
.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 20px;
}
.card-icon svg { width: 32px; height: 32px; }
.card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.1);
  color: var(--brand-3);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-card h3 { font-size: 22px; }
.service-card p { color: var(--text-muted); font-size: 14px; }
.card-bullets { margin: 18px 0; }
.card-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid var(--brand);
  transform: rotate(45deg);
}
.card-link {
  display: inline-block;
  color: var(--brand-3);
  font-weight: 600;
  font-size: 14px;
}
.card-link:hover { color: var(--brand); }

/* ==========================================================================
   About (homepage)
   ========================================================================== */
.about { background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: clamp(28px, 3.5vw, 40px); }
.about-text p { color: var(--text-muted); font-size: 16px; }
.about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(255, 90, 0, 0.05));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card {
  width: 86%;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  position: relative;
  z-index: 1;
}
.about-card h4 { color: var(--brand-3); margin-bottom: 14px; }
.about-card ul { display: grid; gap: 10px; }
.about-card li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.check {
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 50%; font-weight: 700; font-size: 13px;
}
.card-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 60%);
  filter: blur(20px);
  z-index: 0;
}

/* ==========================================================================
   Advantages
   ========================================================================== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.adv-card {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition: border-color var(--transition), transform var(--transition);
}
.adv-card:hover { border-color: var(--brand-line); transform: translateY(-3px); }
.adv-card h3 { font-size: 18px; color: var(--brand-3); }
.adv-card p { color: var(--text-muted); font-size: 14px; }

/* ==========================================================================
   News
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.news-card:hover { transform: translateY(-3px); border-color: var(--brand-line); }
.news-thumb {
  display: block;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(0, 0, 0, 0.8));
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px; }
.news-date { font-size: 12px; color: var(--text-dim); }
.news-body h3 { font-size: 18px; margin: 8px 0 10px; line-height: 1.35; }
.news-body p { color: var(--text-muted); font-size: 14px; }
.news-body h3 a { color: var(--text); }
.news-body h3 a:hover { color: var(--brand-3); }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section { padding: 40px 0 100px; }
.cta-card {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(255, 90, 0, 0.05));
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-l);
  padding: 64px 32px;
  text-align: center;
}
.cta-card h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta-card p { color: var(--text-muted); margin-bottom: 28px; }

/* ==========================================================================
   Page Hero (sub pages)
   ========================================================================== */
.page-hero {
  padding: 120px 0 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 24, 0.18), transparent 60%),
              var(--bg-0);
  text-align: center;
}
.page-hero-sm { padding: 100px 0 30px; text-align: left; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); }
.page-hero-sub { font-size: 17px; color: var(--text-muted); max-width: 720px; margin: 0 auto; }

/* ==========================================================================
   Two-column blocks (about page)
   ========================================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse .col-visual { order: 1; }
.two-col.reverse .col-text { order: 2; }
.col-text h2 { font-size: 30px; margin-bottom: 16px; }
.col-text p { color: var(--text-muted); }
.col-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.visual-tile {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tile-1 { background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%231a1a1a"/><circle cx="100" cy="150" r="40" fill="%23ff7a18" fill-opacity="0.4"/><circle cx="200" cy="150" r="60" fill="%23ff7a18" fill-opacity="0.3"/><circle cx="300" cy="150" r="40" fill="%23ff7a18" fill-opacity="0.4"/></svg>'); }
.tile-2 { background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%231a1a1a"/><polygon points="200,40 240,140 340,140 260,200 290,290 200,230 110,290 140,200 60,140 160,140" fill="%23ff7a18" fill-opacity="0.3"/></svg>'); }
.tile-3 { background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%231a1a1a"/><rect x="80" y="100" width="80" height="80" fill="%23ff7a18" fill-opacity="0.4"/><rect x="180" y="60" width="80" height="120" fill="%23ff7a18" fill-opacity="0.5"/><rect x="280" y="100" width="80" height="80" fill="%23ff7a18" fill-opacity="0.4"/></svg>'); }
.tile-4 { background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%231a1a1a"/><path d="M50 200 L150 100 L200 150 L350 50" stroke="%23ff7a18" stroke-width="3" fill="none"/><circle cx="350" cy="50" r="10" fill="%23ff7a18"/></svg>'); }
.tile-web { background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%231a1a1a"/><rect x="60" y="60" width="280" height="180" rx="6" fill="none" stroke="%23ff7a18" stroke-width="2"/><line x1="60" y1="100" x2="340" y2="100" stroke="%23ff7a18" stroke-width="1"/><circle cx="80" cy="80" r="3" fill="%23ff7a18"/><circle cx="92" cy="80" r="3" fill="%23ff7a18"/></svg>'); }
.tile-software { background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%231a1a1a"/><polyline points="100,100 60,150 100,200" stroke="%23ff7a18" stroke-width="3" fill="none"/><polyline points="300,100 340,150 300,200" stroke="%23ff7a18" stroke-width="3" fill="none"/></svg>'); }
.tile-consulting { background: linear-gradient(135deg, rgba(255, 122, 24, 0.25), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%231a1a1a"/><circle cx="200" cy="150" r="80" fill="none" stroke="%23ff7a18" stroke-width="2"/><circle cx="200" cy="150" r="40" fill="none" stroke="%23ff7a18" stroke-width="2"/></svg>'); }

/* ==========================================================================
   Service detail
   ========================================================================== */
.service-detail {
  margin-bottom: 60px;
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.detail-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 40px;
  align-items: center;
}
.detail-visual { aspect-ratio: 4/3; border-radius: var(--radius-l); overflow: hidden; }
.detail-text h2 { font-size: 28px; }
.detail-text p { color: var(--text-muted); }
.detail-text .btn { margin-top: 16px; }

/* Banner-driven page hero (configurable from /admin/banners) */
.page-hero.has-bg {
  background-color: #15131c;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}
.page-hero.has-bg .page-hero-sub { color: rgba(255, 255, 255, 0.82); }
.page-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.86));
}
.page-hero.has-bg .container { position: relative; z-index: 1; }
.page-hero-btn { margin-top: 28px; display: inline-block; }

/* Service detail — visual column becomes an "included" checklist */
.service-detail .detail-visual {
  aspect-ratio: auto;
  padding: 32px;
  background: linear-gradient(160deg, rgba(255, 122, 24, 0.10), var(--bg-2));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.svc-icon { width: 54px; height: 54px; color: var(--brand); margin-bottom: 18px; }
.svc-icon svg { width: 100%; height: 100%; }
.svc-visual-title { font-size: 16px; margin-bottom: 14px; color: var(--brand-3); }
.svc-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.svc-checklist li { position: relative; padding-left: 26px; color: var(--text); font-size: 14px; line-height: 1.5; }
.svc-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

/* Stats band */
.stats { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  display: block; font-size: clamp(32px, 4vw, 46px); font-weight: 800;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 14px; }

/* Pillars (about -> services preview) */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--transition), border-color var(--transition);
}
.pillar-card:hover { transform: translateY(-4px); border-color: var(--brand-line); }
.pillar-card h3 { font-size: 20px; }
.pillar-card p { color: var(--text-muted); font-size: 14px; flex: 1; }

/* Capabilities / Why / Values cards */
.cap-grid, .why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cap-card, .why-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px;
}
.cap-card h3, .why-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--brand-3); }
.cap-card p, .why-card p { color: var(--text-muted); font-size: 14px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: linear-gradient(160deg, rgba(255, 122, 24, 0.08), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px;
}
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 14px; }

/* Process steps (shared by services & about) */
.process { background: var(--bg-0); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 24px; }
.step-no { display: inline-block; font-size: 28px; font-weight: 800; color: var(--brand); margin-bottom: 14px; }
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 14px; }

@media (max-width: 900px) {
  .process-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid, .values-grid { grid-template-columns: 1fr; }
  .cap-grid, .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .process-grid, .stats-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Solutions
   ========================================================================== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solution-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.solution-card:hover { transform: translateY(-4px); border-color: var(--brand-line); }
.solution-thumb {
  aspect-ratio: 16/8;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.2), rgba(0, 0, 0, 0.8));
  display: flex; align-items: center; justify-content: center;
}
.solution-thumb img { width: 100%; height: 100%; object-fit: cover; }
.solution-body { padding: 28px; }
.solution-body h3 { font-size: 22px; }
.solution-body p { color: var(--text-muted); font-size: 14px; }

/* ==========================================================================
   News list / detail
   ========================================================================== */
.article-wrap { max-width: 760px; margin: 0 auto; }
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.back-link:hover { color: var(--brand-3); }
.article { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 40px; }
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-m); margin-bottom: 28px; }
.prose h2 { font-size: 24px; margin-top: 32px; }
.prose p { color: var(--text-muted); }
.prose p + p { margin-top: 16px; }

.article-lead {
  font-size: 18px;
  color: var(--text);
  border-left: 3px solid var(--brand);
  padding-left: 16px;
}
.legal-updated {
  color: var(--brand);
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 28px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { padding-top: 60px; }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 40px;
}
.contact-info {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
}
.contact-info h3 { color: var(--brand-3); }
.contact-list { display: grid; gap: 20px; margin-top: 16px; }
.contact-list li { display: grid; gap: 4px; }
.ci-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--brand-3); }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
}
.contact-form h3 { color: var(--brand-3); margin-bottom: 20px; }
.contact-prompt { margin: 0 0 22px; color: var(--text-muted); line-height: 1.7; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-muted); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-row textarea { resize: vertical; }
.form-feedback { margin-top: 12px; font-size: 14px; }
.form-feedback.ok { color: var(--success); }
.form-feedback.err { color: var(--danger); }

/* ==========================================================================
   Inquiry form (front-end only — no backend, nothing is transmitted)
   ========================================================================== */
.inquiry { background: var(--bg-1); scroll-margin-top: 96px; }
.inquiry-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.inquiry-form .inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.inquiry-form .form-row label .req { color: var(--brand); margin-left: 2px; }
.inquiry-form .field-hint { color: var(--text-dim); font-size: 12px; margin-left: 4px; }
.inquiry-form select {
  width: 100%;
  padding: 12px 44px 12px 14px;
  background-color: var(--bg-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.75 6 6.5 11 1.75' fill='none' stroke='%239aa0a6' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  font: inherit;
  line-height: 1.65; /* matches .form-row inputs (body line-height) for equal box heights */
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition),
              background-color var(--transition);
}
.inquiry-form select:hover { border-color: #333333; }
.inquiry-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.inquiry-form select.is-placeholder { color: var(--text-dim); }
.inquiry-form select option { background: var(--bg-1); color: var(--text); }
.inquiry-form select option[value=""] { color: var(--text-dim); }

.inquiry-form .inquiry-submit { margin-top: 8px; min-width: 170px; }
.inquiry-form .inquiry-submit:disabled { opacity: .65; cursor: progress; }

/* breathing room between the button and the privacy line */
.inquiry-note { margin: 26px 0 0; font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.contact-alt { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); }
.contact-alt a { color: var(--brand-3); }

/* ---- success modal (centered, impossible to miss) ------------------------ */
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.inquiry-modal[hidden] { display: none; }
.inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: inquiry-fade 180ms ease both;
}
.inquiry-modal__card {
  position: relative;
  width: min(430px, 100%);
  padding: 38px 34px 30px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  animation: inquiry-pop 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.inquiry-modal__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M7 14.5l4.6 4.6L21 9.8' fill='none' stroke='%2322c55e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.inquiry-modal__card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text);
}
.inquiry-modal__text {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}
.inquiry-modal__ok { min-width: 130px; }
body.modal-open { overflow: hidden; }

@keyframes inquiry-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes inquiry-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inquiry-modal__backdrop,
  .inquiry-modal__card { animation: none; }
}
@media (max-width: 480px) {
  .inquiry-modal__card { padding: 30px 22px 24px; }
  .inquiry-modal__ok { width: 100%; }
}

/* ---- validation panel (inline, next to the field it refers to) ----------- */
@keyframes inquiry-fb-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.inquiry-form .form-feedback { margin-top: 20px; font-size: 14px; }
.inquiry-form .form-feedback.ok,
.inquiry-form .form-feedback.err {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--radius-m);
  font-size: 15px;
  line-height: 1.6;
  animation: inquiry-fb-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.inquiry-form .form-feedback.ok {
  color: #d6f5e3;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.inquiry-form .form-feedback.err {
  color: #ffdada;
  background: rgba(255, 77, 79, 0.10);
  border: 1px solid rgba(255, 77, 79, 0.35);
}
.inquiry-form .form-feedback.ok::before,
.inquiry-form .form-feedback.err::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.inquiry-form .form-feedback.ok::before {
  background-color: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.7' fill='none' stroke='%23052e14' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.inquiry-form .form-feedback.err::before {
  background-color: var(--danger);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 2.6v4.2' fill='none' stroke='%23330b0b' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='9.4' r='1' fill='%23330b0b'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line-soft);
}
.footer-cta {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent, rgba(255, 122, 24, 0.08));
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.footer-cta h2 { font-size: 26px; margin-bottom: 8px; }
.footer-cta p { color: var(--text-muted); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  padding: 64px 24px 40px;
}
.footer-col .brand { margin-bottom: 16px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text); font-size: 14px; }
.footer-col ul li a:hover { color: var(--brand-3); }
.contact-list span { color: var(--text-dim); font-size: 12px; display: block; margin-bottom: 2px; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 20px 0;
}
.footer-bottom p { color: var(--text-dim); font-size: 13px; margin: 0; text-align: center; }

/* ==========================================================================
   Back-to-top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(255, 122, 24, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-2); }

/* ==========================================================================
   News: category filter, tags, meta
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filter-chip:hover {
  border-color: var(--brand-line);
  color: var(--text);
}
.filter-chip.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-3);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-s);
  background: var(--brand-soft);
  color: var(--brand-3);
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
}
a.tag:hover { background: rgba(255, 122, 24, 0.28); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.news-dot { opacity: 0.5; }

.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.news-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-dim);
}

/* ==========================================================================
   Article body: lists and prev / next navigation
   ========================================================================== */
.prose h2 { color: var(--text); }
.prose h2 + p { margin-top: 12px; }
.prose ul {
  margin: 18px 0;
  padding-left: 0;
  list-style: none;
}
.prose li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.article-nav-item:hover {
  border-color: var(--brand-line);
  background: var(--bg-3);
}
.article-nav-item.is-next { text-align: right; }
.article-nav-item.is-placeholder { border: none; background: none; }
.article-nav-label { font-size: 12px; color: var(--brand-3); }
.article-nav-title { font-size: 15px; line-height: 1.5; color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .service-grid,
  .news-grid,
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-main {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    z-index: 99;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-main.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-right { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; }

  .hero { padding: 60px 0 80px; }
  .section { padding: 56px 0; }
  .section-head.row { flex-direction: column; align-items: start; gap: 16px; }

  .service-grid,
  .news-grid,
  .solution-grid,
  .advantage-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse .col-visual { order: 0; }
  .two-col.reverse .col-text { order: 1; }

  .detail-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .inquiry-card { padding: 26px 20px; }
  .inquiry-form .inquiry-grid { grid-template-columns: 1fr; gap: 0; }
  .inquiry-form .inquiry-submit { width: 100%; }
  .article { padding: 24px; }
  .service-detail { padding: 24px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item.is-next { text-align: left; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-wrap { height: 64px; gap: 12px; }
  .brand-tagline { display: none; }
  .nav-main { top: 64px; }
  .hero-title { font-size: 32px; }
  .btn { padding: 11px 22px; font-size: 14px; }
  .cta-card { padding: 40px 20px; }
}
