/* ==========================================================================
   Techcounters — Design tokens
   ========================================================================== */
:root {
  --navy-950: #060d1c;
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #16294a;
  --navy-600: #22385f;

  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;

  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;

  --amber-400: #fbbf24;

  --slate-50: #f7f9fc;
  --slate-100: #eef2f8;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  --white: #ffffff;

  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  --container-w: 1160px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 10px 30px -12px rgba(10, 22, 40, 0.18);
  --shadow-card: 0 4px 18px -6px rgba(10, 22, 40, 0.12);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); margin: 0; line-height: 1.4; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 16px 32px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 18px 38px; font-size: 1.02rem; }
.btn-sm { padding: 11px 22px; font-size: 0.88rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  color: var(--white);
  box-shadow: 0 12px 26px -10px rgba(59, 130, 246, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(59, 130, 246, 0.65); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: inherit;
}
.section-light .btn-outline, .contact-card, .btn-outline.on-light {
  border-color: var(--slate-300, #cbd5e1);
  color: var(--navy-900);
}
.btn-outline:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.section-light .btn-outline:hover { background: var(--slate-100); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: inherit;
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow .3s var(--ease);
}
/* blur lives on a pseudo-element so .site-header itself gains no filter/backdrop-filter —
   either would make it the containing block for the fixed-position mobile nav overlay below. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 13, 28, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background 0.3s var(--ease);
}
.site-header.is-scrolled::before {
  background: rgba(6, 13, 28, 0.92);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
  font-size: 1rem;
}
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-400), var(--teal-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--white); }

.header-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.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); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  background: radial-gradient(ellipse at 20% -10%, #132846 0%, var(--navy-950) 55%);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 85%);
}
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
}
.glow-a { background: var(--blue-500); top: -120px; left: -80px; }
.glow-b { background: var(--teal-500); bottom: -160px; right: -100px; opacity: 0.28; }

.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-300);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.01em;
}
.accent-text {
  background: linear-gradient(90deg, var(--blue-400), var(--teal-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 26px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero-actions .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-trust li {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}
.hero-trust strong { color: var(--white); font-family: var(--font-head); margin-right: 4px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--teal-300);
  border-radius: 50%;
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 24px; }
  100% { opacity: 0; top: 24px; }
}

/* ==========================================================================
   Sections — generic
   ========================================================================== */
.section { padding: 108px 0; position: relative; }
.section-light { background: var(--white); }
.section-dark { background: var(--navy-900); color: rgba(255,255,255,0.78); }
.section-dark .section-title, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-navy { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: rgba(255,255,255,0.78); }
.section-navy .section-title, .section-navy h3, .section-navy h4 { color: var(--white); }

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.section-dark .section-eyebrow, .section-navy .section-eyebrow { color: var(--teal-300); }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 900;
  max-width: 780px;
}
.section-title-sm {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
}
.section-lead {
  margin-top: 20px;
  font-size: 1.02rem;
  max-width: 680px;
  color: var(--slate-600);
}
.section-dark .section-lead, .section-navy .section-lead { color: rgba(255,255,255,0.68); }
.section-lead-sm { margin-top: 18px; font-size: 0.98rem; color: var(--slate-600); max-width: 520px; }

.lp-break { display: block; }
@media (max-width: 640px) { .lp-break { display: inline; } }

/* ==========================================================================
   Pain points
   ========================================================================== */
.pain-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--slate-200); }
.pain-icon { width: 36px; height: 36px; color: var(--blue-500); }
.pain-card p { color: var(--slate-700); font-weight: 500; font-size: 0.98rem; }
.pain-card-cta {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  justify-content: center;
  align-items: flex-start;
}
.pain-card-cta p { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Services
   ========================================================================== */
.flagship-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.flagship-card {
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.flagship-blue { background: linear-gradient(150deg, #1d3f75, #0f2a52 60%, #0a1e3e); }
.flagship-teal { background: linear-gradient(150deg, #0f5f57, #0b463f 60%, #083530); }
.flagship-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.flagship-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 16px; }
.flagship-card > p { color: rgba(255,255,255,0.78); font-size: 0.96rem; margin-bottom: 22px; }
.flagship-card .link-arrow { margin-top: 26px; color: var(--white); }

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--teal-300);
  border-bottom: 2px solid var(--teal-300);
  transform: rotate(-45deg);
}
.section-light .check-list li { color: var(--slate-700); }
.section-light .check-list li::before { background: var(--slate-100); }
.section-light .check-list li::after { border-color: var(--teal-500); }

.sub-service-head { margin-top: 84px; text-align: center; }
.sub-service-head h3 { font-size: 1.4rem; margin-bottom: 12px; }
.sub-service-head p { color: rgba(255,255,255,0.6); }

.service-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.4); background: rgba(255,255,255,0.06); }
.service-icon { width: 34px; height: 34px; color: var(--teal-300); margin-bottom: 18px; }
.service-card h4 { font-size: 1.02rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.62); }

/* ==========================================================================
   Reform detail
   ========================================================================== */
.reform-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.reform-points { margin-top: 36px; display: flex; flex-direction: column; gap: 26px; }
.reform-points li { display: flex; gap: 18px; }
.step-num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--blue-500);
  width: 42px; height: 42px;
  border: 1.5px solid var(--blue-300);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.reform-points h4 { font-size: 1.02rem; margin-bottom: 6px; }
.reform-points p { font-size: 0.92rem; color: var(--slate-600); }

.reform-visual-card {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 48px 34px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.rv-row { display: flex; align-items: center; gap: 12px; font-weight: 700; padding: 14px 0; }
.rv-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.rv-dot-old { background: var(--slate-400); }
.rv-dot-new { background: var(--teal-400); box-shadow: 0 0 0 4px rgba(45,212,191,0.2); }
.rv-arrow { padding: 6px 0 6px 24px; color: var(--blue-300); font-size: 0.88rem; font-weight: 700; }

/* ==========================================================================
   Maintenance / SLA
   ========================================================================== */
.sla-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sla-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px 22px;
}
.sla-icon { width: 32px; height: 32px; color: var(--teal-300); margin-bottom: 16px; }
.sla-card h4 { font-size: 0.98rem; margin-bottom: 8px; }
.sla-card p { font-size: 0.86rem; color: rgba(255,255,255,0.6); }

.plan-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card h4 { font-size: 1.15rem; margin-bottom: 12px; }
.plan-desc { font-size: 0.88rem; color: rgba(255,255,255,0.62); margin-bottom: 22px; }
.plan-card .check-list { margin-bottom: 26px; flex-grow: 1; }
.plan-card .btn { align-self: flex-start; }
.plan-card-featured {
  background: linear-gradient(160deg, rgba(59,130,246,0.16), rgba(20,184,166,0.12));
  border-color: rgba(45,212,191,0.4);
  transform: scale(1.03);
}
.plan-badge {
  position: absolute;
  top: -13px; left: 28px;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan-note { margin-top: 28px; font-size: 0.84rem; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Why us
   ========================================================================== */
.reason-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.reason-card {
  padding: 34px 32px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.reason-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.reason-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.reason-card h4 { font-size: 1.08rem; margin-bottom: 12px; }
.reason-card p { font-size: 0.93rem; color: var(--slate-600); }

/* ==========================================================================
   Flow
   ========================================================================== */
.flow-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  counter-reset: flow;
}
.flow-list li {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid rgba(255,255,255,0.14);
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.flow-list h4 { font-size: 0.96rem; margin-bottom: 8px; }
.flow-list p { font-size: 0.84rem; color: rgba(255,255,255,0.58); }

/* ==========================================================================
   CEO message
   ========================================================================== */
.message-layout {
  max-width: 760px;
}
.message-copy p { margin-top: 18px; font-size: 0.98rem; color: var(--slate-600); }
.message-copy p:first-of-type { margin-top: 26px; }
.message-sign {
  margin-top: 30px !important;
  font-weight: 700;
  color: var(--navy-900) !important;
  font-family: var(--font-head);
}

/* ==========================================================================
   Company overview
   ========================================================================== */
.about-layout { margin-top: 48px; }
.about-table { border-top: 1px solid rgba(255,255,255,0.14); }
.about-table > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.about-table dt { font-weight: 700; color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.about-table dd { font-size: 0.96rem; color: rgba(255,255,255,0.88); }
.about-table dd a:hover { color: var(--teal-300); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-inner { text-align: center; }
.contact-inner .section-eyebrow, .contact-inner .section-title, .contact-inner .section-lead {
  margin-left: auto; margin-right: auto;
}
.contact-actions {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 46px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  min-width: 260px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--teal-400); }
.contact-card svg { width: 32px; height: 32px; color: var(--blue-500); margin-bottom: 6px; }
.contact-label { font-size: 0.84rem; color: var(--slate-500); }
.contact-value { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); font-family: var(--font-head); }
.contact-hours { margin-top: 30px; font-size: 0.88rem; color: var(--slate-500); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.6); padding: 64px 0 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand-name { color: var(--white); font-weight: 700; font-family: var(--font-head); }
.footer-brand-mail { font-size: 0.86rem; margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 20px; font-size: 0.86rem; }
.footer-legal a:hover { color: var(--white); }
.footer-copyright { text-align: center; font-size: 0.8rem; padding: 22px 0; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 90;
  box-shadow: var(--shadow-soft);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .flow-list { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .sla-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: block;
    position: fixed;
    top: 64px; left: 0; right: 0;
    bottom: 0;
    background: rgba(6, 13, 28, 0.98);
    padding: 20px 24px 40px;
    overflow-y: auto;
  }
  .main-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav.is-open a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }

  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .flagship-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .reform-layout { grid-template-columns: 1fr; }
  .reform-visual { order: -1; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .plan-card-featured { transform: none; }
  .reason-grid { grid-template-columns: 1fr; }
  .about-table > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .hero { padding: 130px 0 90px; }
  .pain-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .sla-grid { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .contact-card { width: 100%; padding: 28px; }
  .header-cta .btn-sm { display: none; }
  .footer-inner { flex-direction: column; }
}
