:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --ink: #121a2a;
  --muted: #5f6f86;
  --line: #dde5ef;
  --brand: #1a5fd4;
  --brand-deep: #0d3f96;
  --seal: #d62828;
  --navy: #0e1a30;
  --shadow: 0 16px 40px rgba(18, 34, 60, 0.08);
  --radius: 14px;
  --font: "Sora", "Noto Sans SC", sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-mark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #3a4b64;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.is-active { color: var(--brand); }
.nav-link.is-active {
  box-shadow: inset 0 -2px 0 var(--brand);
}

.header-phone {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--seal);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

.text-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 8px;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.text-link:hover { text-decoration: underline; }

.view { display: none; }
.view.is-active { display: block; }

/* Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(26, 95, 212, 0.12), transparent 55%),
    linear-gradient(165deg, #e8eef8 0%, #f5f8fc 45%, #ffffff 100%);
}
.home-hero { padding: 88px 0 72px; min-height: calc(100vh - var(--header-h) - 80px); display: flex; align-items: center; }
.home-hero .page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 46px,
      rgba(26, 95, 212, 0.035) 46px 47px
    ),
    radial-gradient(circle at 78% 42%, rgba(214, 40, 40, 0.08), transparent 28%),
    linear-gradient(120deg, transparent 40%, rgba(14, 26, 48, 0.04) 100%);
  pointer-events: none;
}
.page-hero.fams {
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(214, 40, 40, 0.1), transparent 50%),
    linear-gradient(165deg, #fff1ee 0%, #faf7f6 50%, #ffffff 100%);
}
.page-hero.wms {
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(26, 95, 212, 0.14), transparent 50%),
    linear-gradient(165deg, #eaf2ff 0%, #f5f8fc 50%, #ffffff 100%);
}
.page-hero.about-hero,
.page-hero.news-hero,
.page-hero.contact {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(14, 26, 48, 0.08), transparent 55%),
    linear-gradient(165deg, #eef1f6 0%, #f7f8fa 55%, #ffffff 100%);
}
.page-hero-inner { max-width: 760px; position: relative; z-index: 1; }
.brand-signal {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.1;
}
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.home-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 40em;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: #b8c6da; }
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-ghost-light {
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  background: transparent;
}

/* Capability strip */
.capability-strip {
  background: var(--navy);
  color: #fff;
  padding: 28px 0;
}
.capability-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.capability-item {
  display: grid;
  gap: 4px;
  padding: 8px 12px;
  border-left: 2px solid rgba(255,255,255,0.25);
}
.capability-item strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}
.capability-item span {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

/* Sections */
.section { padding: 80px 0; background: #fff; }
.soft-bg { background: var(--bg); }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head h2,
.prose h2,
.about-story h2,
.contact-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
}
.section-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pillar {
  padding: 28px 28px 24px;
  border-top: 3px solid var(--brand);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 60%);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar:nth-child(2) { border-top-color: var(--seal); }
.pillar-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand);
}
.pillar:nth-child(2) .pillar-kicker { color: var(--seal); }
.pillar h3 { margin: 0 0 12px; font-size: 24px; }
.pillar > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.pillar ul {
  margin: 16px 0 18px;
  padding-left: 18px;
  color: #334860;
  line-height: 1.85;
}

/* Pain / tech */
.pain-grid,
.tech-grid,
.about-pillars,
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pain,
.tech,
.about-pillars article,
.matrix {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.soft-bg .pain,
.soft-bg .about-pillars article,
.soft-bg .matrix {
  background: #fff;
}
.section:not(.soft-bg) .tech {
  background: var(--bg);
  border-color: transparent;
}
.pain h3,
.tech h3,
.about-pillars h3,
.matrix h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.pain p,
.tech p,
.about-pillars p,
.matrix p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.home-products { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
}
.soft-bg .product-card { background: #fff; }
.product-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
}
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Feature list */
.prose > p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
  max-width: 46em;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature-list > div {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  gap: 6px;
}
.feature-list strong { font-size: 16px; }
.feature-list span { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-col {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.compare-col h3 { margin: 0 0 14px; font-size: 18px; }
.compare-col ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}
.accent-col {
  border-color: rgba(26, 95, 212, 0.35);
  background: linear-gradient(180deg, #f3f8ff, #ffffff);
}
.accent-col h3 { color: var(--brand); }
.accent-col ul { color: #2d4058; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  flex: 0 0 40px;
  font-weight: 800;
  font-size: 18px;
  color: var(--brand);
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.step-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 1px;
}
.step-text strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}
.step-text span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* About */
.about-intro {
  padding-top: 56px;
  padding-bottom: 48px;
}
.about-main {
  max-width: 920px;
}
.about-main h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.about-lead {
  margin: 0 0 28px;
  max-width: 40em;
  color: #2c3a50;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
}
.about-blocks {
  display: grid;
  gap: 14px;
}
.about-block {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.about-block.accent {
  border-left-color: var(--seal);
  background: linear-gradient(180deg, #fff8f7 0%, #ffffff 70%);
}
.about-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.about-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.value-band {
  background:
    linear-gradient(120deg, rgba(26, 95, 212, 0.28), transparent 45%),
    var(--navy);
  color: #fff;
  padding: 64px 0;
}
.value-band-inner {
  display: grid;
  gap: 36px;
}
.value-band-head {
  max-width: 560px;
}
.value-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.value-band-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.value-band-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.75;
}
.value-band-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.value-band-list li {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.value-index {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}
.value-band-list strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}
.value-band-list p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}
.about-pillars {
  grid-template-columns: repeat(3, 1fr);
}
.about-pillars.about-adv {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.about-adv-card {
  position: relative;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(18, 34, 60, 0.04);
}
.about-adv-card .adv-index {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand);
}
.about-adv-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
}
.about-adv-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.timeline {
  margin: 8px 0 0;
  padding: 8px 0 0 8px;
  list-style: none;
  display: grid;
  gap: 0;
  border-left: 2px solid #c9d6e8;
}
.timeline li {
  position: relative;
  padding: 0 0 32px 32px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(26, 95, 212, 0.14);
}
.timeline-step {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.timeline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}
.timeline li > span:last-child {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 52em;
}

/* News */
.news-layout {
  max-width: 820px;
}
.news-article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}
.news-meta {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.news-article h2 {
  margin: 0 0 22px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
}
.news-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.news-body p:last-child { margin-bottom: 0; }
.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
.contact-copy p {
  color: var(--muted);
  line-height: 1.8;
}
.contact-points {
  margin: 20px 0 0;
  padding-left: 18px;
  color: #334860;
  line-height: 1.9;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.contact-name {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}
.contact-phone {
  display: inline-block;
  margin: 10px 0 12px;
  color: var(--seal);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.contact-tip {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* CTA */
.cta-band {
  background:
    linear-gradient(120deg, #0e1a30 0%, #173056 55%, #1a4a8c 100%);
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.8vw, 30px);
}
.cta-inner p {
  margin: 0;
  color: rgba(255,255,255,0.7);
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: #0a1222;
  color: rgba(255,255,255,0.65);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.footer-brand strong {
  display: block;
  color: #fff;
}
.footer-brand span,
.footer-meta { font-size: 13px; }
.footer-meta { text-align: right; line-height: 1.7; }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav, .header-phone { display: none; }
  .header-inner.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 4px;
    z-index: 40;
  }
  .header-inner.nav-open .header-phone {
    display: block;
    position: absolute;
    top: calc(var(--header-h) + 10px);
    right: 20px;
    z-index: 41;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .home-hero { min-height: auto; padding: 56px 0 48px; }
  .capability-row,
  .pillar-grid,
  .pain-grid,
  .tech-grid,
  .product-grid,
  .home-products,
  .feature-list,
  .compare-grid,
  .about-pillars,
  .about-pillars.about-adv,
  .value-band-list,
  .matrix-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .value-band { padding: 48px 0; }
  .about-lead { font-size: 16px; }
  .news-article { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
