/* =========================================================
   Office Automation Consultant Co., Ltd.
   ========================================================= */

:root {
  --ink:        #041b38;
  --ink-2:      #10243a;
  --ink-3:      #16304b;
  --body:       #40556c;
  --muted:      #6b8099;
  --line:       #e2e9f1;
  --line-dark:  rgba(255, 255, 255, 0.12);
  --bg:         #ffffff;
  --bg-soft:    #f5f8fb;
  --accent:     #005a9d;
  --accent-2:   #2f9bdc;
  --accent-dim: #e8f1f9;
  --radius:     16px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(10, 23, 39, 0.05), 0 6px 18px -12px rgba(10, 23, 39, 0.25);
  --shadow:     0 2px 4px rgba(10, 23, 39, 0.04), 0 24px 48px -28px rgba(10, 23, 39, 0.4);
  --maxw:       1160px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* --- cyber background patterns --- */
  --circuit-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none'%3E%3Cg stroke='%23005a9d' stroke-opacity='0.3' stroke-width='1.1' stroke-linecap='square'%3E%3Cpath d='M0 44h64l24-24h72'/%3E%3Cpath d='M0 152h40l28 28h68'/%3E%3Cpath d='M240 92h-52l-26 26v48'/%3E%3Cpath d='M144 0v30l-18 18H76'/%3E%3Cpath d='M240 196h-66l-20-20'/%3E%3Cpath d='M96 240v-34l16-16'/%3E%3C/g%3E%3Cg fill='%23005a9d' fill-opacity='0.5'%3E%3Ccircle cx='64' cy='44' r='2.8'/%3E%3Ccircle cx='160' cy='20' r='2.8'/%3E%3Ccircle cx='68' cy='180' r='2.8'/%3E%3Ccircle cx='162' cy='166' r='2.8'/%3E%3Ccircle cx='214' cy='92' r='2.8'/%3E%3Ccircle cx='112' cy='206' r='2.8'/%3E%3C/g%3E%3C/svg%3E");
  --circuit-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.24' stroke-width='1.1' stroke-linecap='square'%3E%3Cpath d='M0 44h64l24-24h72'/%3E%3Cpath d='M0 152h40l28 28h68'/%3E%3Cpath d='M240 92h-52l-26 26v48'/%3E%3Cpath d='M144 0v30l-18 18H76'/%3E%3Cpath d='M240 196h-66l-20-20'/%3E%3Cpath d='M96 240v-34l16-16'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.42'%3E%3Ccircle cx='64' cy='44' r='2.8'/%3E%3Ccircle cx='160' cy='20' r='2.8'/%3E%3Ccircle cx='68' cy='180' r='2.8'/%3E%3Ccircle cx='162' cy='166' r='2.8'/%3E%3Ccircle cx='214' cy='92' r='2.8'/%3E%3Ccircle cx='112' cy='206' r='2.8'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.14;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.05rem, 4.4vw, 3.5rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.012em; }
h4 { font-size: 0.98rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 620; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px; top: 16px; z-index: 100;
  background: #fff; padding: 10px 16px; border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(10, 23, 39, 0.8);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 12px 26px -14px rgba(0, 90, 157, 0.9);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(10, 23, 39, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-logo.small { width: 36px; height: 36px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-text strong {
  font-size: 0.95rem;
  font-weight: 660;
  letter-spacing: -0.018em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a:not(.btn) {
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav a:not(.btn):hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
  background:
    radial-gradient(ellipse 50% 58% at 84% 4%, rgba(47, 155, 220, 0.20), transparent 64%),
    radial-gradient(ellipse 55% 55% at 2% 96%, rgba(0, 90, 157, 0.13), transparent 66%),
    linear-gradient(180deg, #f6fbff 0%, #edf6fd 55%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(0, 90, 157, 0.22) 1px, transparent 1.5px),
    linear-gradient(to right, rgba(16, 36, 58, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 36, 58, 0.055) 1px, transparent 1px);
  background-size: 24px 24px, 72px 72px, 72px 72px;
  mask-image: radial-gradient(ellipse 88% 76% at 50% 4%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 88% 76% at 50% 4%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--circuit-blue);
  background-size: 240px 240px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 62% 78% at 88% 42%, #000 6%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 88% 42%, #000 6%, transparent 72%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -160px;
  right: -80px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(47, 155, 220, 0.20) 0%, rgba(47, 155, 220, 0) 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(47, 155, 220, 0.22);
}

.hero h1 { margin-bottom: 20px; }

.lead {
  font-size: 1.09rem;
  color: var(--body);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-points li {
  position: relative;
  padding-left: 20px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px; height: 5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

/* hero panel */

.hero-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow:
    0 2px 4px rgba(4, 27, 56, 0.04),
    0 24px 48px -28px rgba(4, 27, 56, 0.42),
    0 0 0 1px rgba(47, 155, 220, 0.10),
    0 0 64px -22px rgba(47, 155, 220, 0.55);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 4px 10px;
}
.pill-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.8); }
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 680;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
  margin: 2px 0 14px;
}
.metric-value small {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 54px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.bars i {
  flex: 1 1 0;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent-2), rgba(0, 90, 157, 0.42));
  opacity: .85;
}

.panel-rows { padding-top: 8px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.87rem;
  border-bottom: 1px dashed rgba(226, 233, 241, 0.9);
}
.row:last-child { border-bottom: 0; }
.row-key { color: var(--muted); }
.row-val { color: var(--ink); font-weight: 550; }
.row-val.ok { color: var(--accent); }
.row-val.ok::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-right: 7px;
  vertical-align: middle;
}

/* stack strip */

.stack-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line);
}
.stack-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stack-list li {
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #8296ad;
  transition: color .18s ease;
}
.stack-list li:hover { color: var(--ink); }

/* ---------------- sections ---------------- */

.section { padding: 92px 0; }

.section-alt {
  border-block: 1px solid var(--line);
  background-color: var(--bg-soft);
  background-image:
    radial-gradient(circle at center, rgba(0, 90, 157, 0.14) 1px, transparent 1.4px),
    linear-gradient(180deg, #f8fcff 0%, #eaf3fb 100%);
  background-size: 26px 26px, 100% 100%;
}

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}
.section-head h2 { margin-bottom: 14px; }
.section-sub { font-size: 1.03rem; color: var(--body); }

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 78% at 86% 0%, rgba(47, 155, 220, 0.24), transparent 62%),
    radial-gradient(ellipse 46% 62% at 0% 100%, rgba(0, 90, 157, 0.40), transparent 66%),
    linear-gradient(155deg, rgba(4, 27, 56, 0.94) 0%, rgba(7, 31, 63, 0.90) 58%, rgba(10, 44, 86, 0.92) 100%),
    url("assets/server-room.jpg") center / cover no-repeat,
    linear-gradient(155deg, var(--ink) 0%, #071f3f 58%, #0a2c56 100%);
  color: rgba(255, 255, 255, 0.72);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--circuit-light);
  background-size: 260px 260px;
  opacity: 0.75;
  mask-image: radial-gradient(ellipse 78% 88% at 78% 28%, #000 4%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 78% 88% at 78% 28%, #000 4%, transparent 80%);
  pointer-events: none;
}

.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 5px
  );
  opacity: 0.55;
  pointer-events: none;
}

.section-dark > .wrap { position: relative; z-index: 1; }
.section-dark h2,
.section-dark h3,
.section-dark strong { color: #fff; }
.section-dark .eyebrow { color: var(--accent-2); }

/* cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #c9dcee;
  box-shadow: var(--shadow);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity .22s ease;
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 23px; height: 23px; }

.card h3 { margin-bottom: 8px; }
.card > p {
  font-size: 0.94rem;
  color: var(--body);
  margin-bottom: 18px;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.865rem;
  color: var(--muted);
}
.ticks li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 9px; height: 5px;
  border-left: 1.7px solid var(--accent);
  border-bottom: 1.7px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks-light { color: rgba(255, 255, 255, 0.66); margin-top: 22px; }
.ticks-light li::before { border-color: var(--accent-2); }

/* split layouts */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split-copy h2 { margin-bottom: 16px; }
.split-copy p { font-size: 0.99rem; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.mini {
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.mini h4 { font-size: 0.9rem; }
.mini p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* diagram */

.diagram {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.node {
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdfe, #f4f8fb);
}
.node-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 5px;
  padding: 3px 7px;
  margin-bottom: 8px;
}
.node strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.012em;
  margin-bottom: 3px;
}
.node-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}
.node-cloud { background: linear-gradient(180deg, #fbfcfd, #eef4f9); }

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.link-line {
  flex: 1 1 auto;
  height: 1px;
  background: repeating-linear-gradient(90deg, #b9cbdb 0 6px, transparent 6px 11px);
}
.link-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.diagram-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.diagram-foot span { display: inline-flex; align-items: center; gap: 7px; }
.bulb {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(47, 155, 220, 0.2);
}

/* steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  position: relative;
  padding: 30px 26px 30px 0;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 2px;
  background: var(--accent);
}
.step-num {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.06rem; margin-bottom: 6px; }
.steps p { font-size: 0.9rem; color: var(--muted); margin: 0; max-width: 34ch; }

/* stats */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: rgba(255, 255, 255, 0.035);
  padding: 27px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat strong {
  font-size: 1.9rem;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent-2);
}
.stat span {
  font-size: 0.855rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

/* contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.contact-copy h2 { margin-bottom: 14px; }
.contact-copy p { font-size: 1.02rem; margin-bottom: 26px; max-width: 48ch; }

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 30px;
}
.contact-list { margin: 0; padding: 0; }
.contact-list > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.contact-list dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 520;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.contact-list a { color: var(--ink); border-bottom: 1px solid rgba(0, 90, 157, 0.35); }
.contact-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* contact: faint tech glow */
#contact {
  background-image:
    radial-gradient(ellipse 55% 70% at 82% 50%, rgba(47, 155, 220, 0.09), transparent 70%),
    radial-gradient(circle at center, rgba(0, 90, 157, 0.10) 1px, transparent 1.4px);
  background-size: 100% 100%, 28px 28px;
  background-position: 0 0, 0 0;
}

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 44px 0 34px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.footer-brand .brand-logo { margin-top: 2px; }
.footer-brand p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.footer-brand strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 2px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--body);
}
.footer-nav a:hover { color: var(--accent); }

.copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  color: var(--muted);
}

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

/* Large tablets and small laptops */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a:not(.btn) { font-size: 0.88rem; }
  .hero-inner { gap: 40px; }
  .split { gap: 46px; }
}

/* Tablets (portrait): stack the major layouts */
@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
  .hero-copy { max-width: 660px; }
  .hero-panel { max-width: 540px; width: 100%; }
  .split, .contact { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-copy { order: 1; }
  .split-copy { max-width: 720px; }
  .split-visual { max-width: 560px; width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 38px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .steps li { padding: 26px 24px 26px 0; }
}

/* Mobile navigation (tablets portrait and phones) */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 44px -32px rgba(4, 27, 56, 0.7);
    display: none;
    max-height: 76vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a.btn { margin-top: 14px; min-height: 50px; }
  .nav a:not(.btn):hover { border-bottom-color: var(--line); }
  .site-header .header-inner { position: relative; }
  .brand { padding: 4px 0; }
}

/* Phones */
@media (max-width: 620px) {
  body { font-size: 16px; line-height: 1.62; }
  .wrap { padding: 0 18px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-text strong { font-size: 0.85rem; white-space: normal; line-height: 1.2; }
  .brand-text small { font-size: 0.64rem; letter-spacing: 0.12em; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-logo.small { width: 30px; height: 30px; }

  .hero { padding-top: 40px; }
  .hero-inner { gap: 30px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(1.8rem, 7.3vw, 2.4rem); margin-bottom: 16px; }
  .lead { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { gap: 10px; margin-bottom: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { gap: 6px 16px; font-size: 0.83rem; }
  .hero-panel { padding: 18px; border-radius: 18px; }
  .metric-value { font-size: 2rem; }
  .bars { height: 46px; gap: 4px; }
  .stack-strip { padding: 16px 18px 22px; gap: 10px 18px; }
  .stack-list { gap: 8px 18px; }
  .stack-list li { font-size: 0.88rem; }

  .section { padding: 54px 0; }
  .section-head { margin-bottom: 30px; }
  .section-sub { font-size: 0.98rem; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.13em; }

  .cards { gap: 14px; }
  .card { padding: 24px 20px; }

  .diagram { padding: 18px; border-radius: 18px; }
  .node { padding: 15px 16px; }
  .link-label { font-size: 0.68rem; }
  .diagram-foot { gap: 6px 16px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; border-top: 1px solid var(--line); }
  .steps li { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .steps li::before { width: 34px; }
  .steps p { max-width: none; }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 22px 20px; }

  .contact-card { padding: 4px 18px; border-radius: 18px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .contact-list dt { padding-top: 0; }
  .contact-list dd { font-size: 0.92rem; }
  .contact-copy p { margin-bottom: 22px; }

  .site-footer { padding: 34px 0 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-nav { justify-content: flex-start; gap: 10px 18px; }
}

/* Small phones */
@media (max-width: 400px) {
  .wrap { padding: 0 15px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-text strong { font-size: 0.8rem; }
  .brand-text small { font-size: 0.6rem; }
  .hero h1 { font-size: 1.68rem; }
  .hero-panel { padding: 15px; }
  .row { font-size: 0.82rem; }
  .section { padding: 46px 0; }
  .mini-grid { gap: 12px; }
  .footer-nav { gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================
   Service detail pages
   ========================================================= */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
  background:
    radial-gradient(ellipse 52% 78% at 88% 0%, rgba(47, 155, 220, 0.20), transparent 62%),
    radial-gradient(ellipse 46% 60% at 0% 100%, rgba(0, 90, 157, 0.10), transparent 66%),
    linear-gradient(180deg, #f6fbff 0%, #edf6fd 58%, #f8fcff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(0, 90, 157, 0.20) 1px, transparent 1.5px),
    linear-gradient(to right, rgba(16, 36, 58, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 36, 58, 0.05) 1px, transparent 1px);
  background-size: 24px 24px, 72px 72px, 72px 72px;
  mask-image: radial-gradient(ellipse 92% 86% at 50% 0%, #000 18%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 92% 86% at 50% 0%, #000 18%, transparent 80%);
  pointer-events: none;
}

.page-hero > .wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 550; }
.crumbs span[aria-hidden] { opacity: 0.5; }

.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(1.8rem, 3.7vw, 2.85rem);
  margin-bottom: 16px;
  max-width: 20ch;
}
.page-hero .lead { max-width: 62ch; margin-bottom: 28px; }
.page-hero .hero-actions { margin-bottom: 0; }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 46px;
  align-items: center;
}

.page-hero-media {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -34px rgba(4, 27, 56, 0.6),
    0 0 0 1px rgba(47, 155, 220, 0.16);
}
.page-hero-media img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(0, 90, 157, 0.22), rgba(47, 155, 220, 0.06) 55%, transparent);
  pointer-events: none;
}

/* two-column article + aside */

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: 56px;
  align-items: start;
}

.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.72rem);
  margin: 0 0 14px;
}
.prose > * + h2 { margin-top: 46px; }
.prose h3 { margin: 28px 0 8px; font-size: 1.05rem; }
.prose p { font-size: 1rem; color: var(--body); margin-bottom: 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 22px; }
.prose li { margin-bottom: 7px; font-size: 0.98rem; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose strong { color: var(--ink); }

.feature-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 15px;
  margin: 26px 0;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px 19px;
}
.feature h4 { margin-bottom: 5px; }
.feature p { margin: 0; font-size: 0.885rem; color: var(--muted); line-height: 1.55; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 12px 12px 0;
  padding: 17px 21px;
  margin: 26px 0;
}
.callout p { margin: 0; font-size: 0.945rem; color: #0e3559; }

/* aside */

.service-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.aside-card > h4 {
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.aside-card .ticks { font-size: 0.85rem; gap: 9px; }

.aside-nav { display: grid; }
.aside-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.87rem;
  color: var(--body);
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
.aside-nav a:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-nav a::after {
  content: "→";
  color: var(--accent);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity .16s ease, transform .16s ease;
}
.aside-nav a:hover { color: var(--ink); }
.aside-nav a:hover::after { opacity: 1; transform: translateX(0); }
.aside-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.aside-nav a[aria-current="page"]::after { opacity: 1; transform: none; }

.aside-cta {
  background: linear-gradient(160deg, #0a2240 0%, #0a2c56 100%);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.74);
}
.aside-cta > h4 { color: var(--accent-2); }
.aside-cta p { font-size: 0.875rem; margin-bottom: 16px; line-height: 1.55; }
.aside-cta .btn {
  width: 100%;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.aside-cta .btn:hover { background: var(--accent-2); color: var(--ink); }

/* faq */

.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p {
  margin: 0;
  padding: 0 0 16px;
  font-size: 0.93rem;
  color: var(--body);
}

/* closing band */

.cta-band {
  padding: 56px 0;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(ellipse 50% 90% at 88% 10%, rgba(47, 155, 220, 0.22), transparent 62%),
    linear-gradient(150deg, var(--ink) 0%, #0a2c56 100%);
}
.cta-band > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  margin: 0 0 6px;
  max-width: 26ch;
}
.cta-band p { margin: 0; font-size: 0.95rem; max-width: 46ch; }
.cta-band .btn { background: #fff; color: var(--ink); box-shadow: none; flex: 0 0 auto; }
.cta-band .btn:hover { background: var(--accent-2); color: var(--ink); }

/* homepage card link */

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link svg { width: 14px; height: 14px; }
.card-link:hover { color: var(--ink); }
.card-link:hover svg { transform: translateX(3px); }
.card-link svg { transition: transform .16s ease; }

/* ---- service page responsive ---- */

@media (max-width: 960px) {
  .service-layout { grid-template-columns: 1fr; gap: 34px; }
  .service-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .service-aside .aside-cta { grid-column: 1 / -1; }
  .prose { max-width: none; }
  .page-hero h1 { max-width: none; }
}

@media (max-width: 620px) {
  .page-hero { padding: 34px 0 38px; }
  .page-hero .lead { font-size: 1rem; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .page-hero .hero-actions .btn { flex: 1 1 100%; }
  .crumbs { font-size: 0.74rem; margin-bottom: 22px; }
  .prose > * + h2 { margin-top: 36px; }
  .prose h2 { font-size: 1.28rem; }
  .feature-pair { grid-template-columns: 1fr; }
  .service-aside { grid-template-columns: 1fr; }
  .aside-card { padding: 19px; }
  .cta-band { padding: 44px 0; }
  .cta-band .btn { width: 100%; }
  .faq summary { font-size: 0.92rem; padding: 14px 0; }
}


/* ---- hero photos on service pages ---- */
@media (max-width: 960px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero-media { max-width: 560px; }
  .page-hero-media img { height: 250px; }
}
@media (max-width: 620px) {
  .page-hero-media { max-width: 100%; border-radius: 14px; }
  .page-hero-media img { height: 185px; border-radius: 14px; }
  .page-hero-media::after { border-radius: 14px; }
}
