/* ==========================================================================
   NetroStack Global Tech — Design System
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #0A2342;
  --navy-2: #0F2E56;
  --navy-deep: #061529;
  --red: #C8102E;
  --white: #FFFFFF;
  --black: #0B0B0C;

  --gray-50: #F7F8FA;
  --gray-100: #EEF0F3;
  --gray-200: #E2E5EA;
  --gray-300: #CBD1D9;
  --gray-500: #7C8797;
  --gray-600: #5B6472;
  --gray-800: #262B33;

  /* Semantic (light mode default) */
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --surface: var(--white);
  --surface-border: var(--gray-200);
  --text: var(--navy-deep);
  --text-muted: var(--gray-600);
  --text-on-dark: rgba(255,255,255,0.92);
  --text-on-dark-muted: rgba(255,255,255,0.66);
  --accent: var(--red);
  --focus-ring: rgba(10,35,66,0.35);

  --shadow-sm: 0 1px 2px rgba(10,20,40,0.06), 0 1px 1px rgba(10,20,40,0.04);
  --shadow-md: 0 8px 24px rgba(10,20,40,0.08);
  --shadow-lg: 0 24px 60px rgba(10,20,40,0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .6s;

  --font-body: 'Inter', 'IBM Plex Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body-ja: 'IBM Plex Sans JP', 'Inter', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --container: 1240px;
  --header-h: 76px;
}

:root[data-theme="dark"] {
  --bg: #0A0F1A;
  --bg-alt: #0D1420;
  --surface: #131D30;
  --surface-border: rgba(255,255,255,0.11);
  --text: rgba(255,255,255,0.95);
  --text-muted: rgba(255,255,255,0.68);
  --focus-ring: rgba(255,255,255,0.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
html[lang="ja"] body { font-family: var(--font-body-ja); }
html[lang="ja"] .hero-title { letter-spacing: 0; line-height: 1.25; font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0; }

/* ---------- Japanese line breaking ----------
   - line-break: strict = proper kinsoku (no leading 。、ー etc.)
   - word-break: auto-phrase = phrase-based wrapping (Chrome/Edge; other
     browsers fall back to standard JA behavior, which is acceptable)
   - text-wrap: balance/pretty = no single-word orphan lines
   - Big headlines use keep-all + manual <wbr> hints for full control */
html[lang="ja"] body { line-break: strict; word-break: auto-phrase; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { text-wrap: balance; }
html[lang="ja"] p { text-wrap: pretty; }
html[lang="ja"] .hero-title,
html[lang="ja"] .final-cta-inner h2,
html[lang="ja"] .section-head h2 { word-break: keep-all; overflow-wrap: anywhere; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,p { margin: 0; }

.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 800px; }

.i { flex-shrink: 0; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  z-index: 1100; transition: width .1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header.is-scrolled { border-color: var(--surface-border); box-shadow: var(--shadow-sm); height: 64px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 2px solid #fff;
}
.brand-mark::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px;
  background: var(--red); border-radius: 50%; transform: translate(-50%,-50%);
}
.brand-text { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; color: var(--text); line-height: 1.1; display: flex; flex-direction: column; }
.brand-sub { font-weight: 500; font-size: .62rem; letter-spacing: .16em; color: var(--text-muted); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: .92rem; font-weight: 500; color: var(--text-muted); position: relative; padding: 6px 0; transition: color .2s; white-space: nowrap; }
 html[lang="ja"] .main-nav { gap: 20px; }
 html[lang="ja"] .main-nav a { font-size: .86rem; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--surface-border); border-radius: 999px;
  overflow: hidden; background: var(--surface);
}
.lang-toggle button {
  padding: 8px 13px; border: none; background: transparent; color: var(--text-muted);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; transition: background .2s, color .2s;
  font-family: var(--font-body-ja); white-space: nowrap;
}
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button.is-active { background: var(--navy); color: #fff; }
[data-theme="dark"] .lang-toggle button.is-active { background: #fff; color: var(--navy-deep); }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--surface-border);
  background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.theme-toggle:hover { transform: rotate(15deg); }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--surface-border);
  background: var(--surface); color: var(--text); align-items: center; justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--surface-border); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); background: rgba(255,255,255,0.08); }
[data-theme="dark"] .btn-primary { background: #fff; color: var(--navy-deep); }
[data-theme="dark"] .btn-primary:hover { background: var(--gray-100); }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--bg); padding: 24px 28px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { padding: 14px 4px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--surface-border); }
.mobile-nav .btn { margin-top: 18px; }

/* ---------- Layout helpers ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.02em; margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Reveal animation ----------
   Gated on html.js: if JavaScript ever fails to run, content is
   simply visible instead of stuck at opacity 0. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding-top: var(--header-h); overflow: hidden; background: var(--bg);
  isolation: isolate;
}
.hero-map { position: absolute; inset: 0; z-index: -1; opacity: .65; }
.hero-map::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 62% 55% at 50% 46%, var(--bg) 0%, transparent 100%);
}
.map-svg { width: 100%; height: 100%; color: var(--gray-300); }
.map-dots { opacity: .5; }
.map-node .node-core { fill: var(--navy); }
.map-node .node-pulse { fill: none; stroke: var(--navy); stroke-width: 1.4; opacity: .5; animation: pulseRing 2.6s ease-out infinite; transform-origin: center; }
.map-node .node-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-anchor: middle; fill: var(--gray-500); font-family: var(--font-body); }
.flight-path { fill: none; stroke: url(#pathFade); stroke-width: 2; stroke-dasharray: 6 8; opacity: .8; }
.flight-dot { fill: var(--red); filter: drop-shadow(0 0 6px rgba(200,16,46,.7)); }
[data-theme="dark"] .map-svg { color: rgba(255,255,255,0.12); }
[data-theme="dark"] .node-label { fill: rgba(255,255,255,0.4); }
[data-theme="dark"] .node-core, [data-theme="dark"] .node-pulse { stroke: #fff; fill: #fff; }

@keyframes pulseRing {
  0% { transform: scale(.5); opacity: .7; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-inner { text-align: center; max-width: 880px; margin: 0 auto; padding-top: 40px; padding-bottom: 40px; }
.hero-title { font-size: clamp(2.2rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 26px; color: var(--text); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-muted); line-height: 1.7; max-width: 700px; margin: 0 auto 42px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }
.scroll-cue span {
  display: block; width: 26px; height: 42px; border: 2px solid var(--gray-300); border-radius: 20px; position: relative;
}
.scroll-cue span::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--accent);
  border-radius: 2px; transform: translateX(-50%); animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

/* ================= TRUST STRIP ================= */
.trust-strip { padding: 40px 0; border-bottom: 1px solid var(--surface-border); border-top: 1px solid var(--surface-border); }
.trust-grid { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 600; color: var(--text); }
.trust-item .i { color: var(--accent); }

/* ================= WHY CARDS ================= */
.why-grid { grid-template-columns: repeat(5, 1fr); }
.why-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-md);
  padding: 30px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.why-card .i { color: var(--navy); margin-bottom: 18px; }
[data-theme="dark"] .why-card .i { color: #fff; }
.why-card h3 { font-size: 1.02rem; margin-bottom: 10px; letter-spacing: -.01em; }
.why-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ================= SERVICES ================= */
.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg);
  padding: 34px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-wide { grid-column: span 3; }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
[data-theme="dark"] .service-icon { background: #fff; color: var(--navy); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 16px; letter-spacing: -.01em; }
.service-plain { color: var(--text-muted); line-height: 1.6; font-size: .95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-list li {
  font-size: .82rem; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: var(--gray-100); color: var(--text-muted);
}
[data-theme="dark"] .tag-list li { background: rgba(255,255,255,0.06); }

/* ================= ENGAGEMENT ================= */
.engagement-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.engagement-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg);
  padding: 32px 26px; position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.engagement-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.engagement-featured { border-color: var(--navy); box-shadow: var(--shadow-md); }
[data-theme="dark"] .engagement-featured { border-color: rgba(255,255,255,0.4); }
.engagement-badge {
  position: absolute; top: -13px; left: 26px; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.engagement-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.engagement-for { color: var(--text-muted); font-size: .87rem; margin-bottom: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; margin-bottom: 11px; color: var(--text); line-height: 1.4; }
.check-list .i { color: var(--accent); margin-top: 2px; }

/* ================= TIMELINE (process) ================= */
.timeline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative;
}
.timeline-item {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-md);
  padding: 28px 24px; position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.timeline-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.timeline-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gray-100); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
[data-theme="dark"] .timeline-icon { background: rgba(255,255,255,0.07); color: #fff; }
.timeline-num { position: absolute; top: 26px; right: 24px; font-size: .78rem; font-weight: 800; color: var(--gray-300); letter-spacing: .05em; }
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline-item p { color: var(--text-muted); font-size: .9rem; line-height: 1.55; }

/* ================= TECHNOLOGIES ================= */
.tech-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.tech-tab {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--surface-border); background: var(--surface);
  color: var(--text-muted); font-weight: 600; font-size: .88rem; transition: all .25s var(--ease);
}
.tech-tab:hover { color: var(--text); }
.tech-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .tech-tab.is-active { background: #fff; color: var(--navy); border-color: #fff; }
.tech-panels { min-height: 90px; }
.tech-panel { display: none; flex-wrap: wrap; gap: 12px; justify-content: center; animation: fadeIn .4s var(--ease); }
.tech-panel.is-active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.pill {
  padding: 11px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--surface-border);
  font-weight: 600; font-size: .92rem; color: var(--text);
}

/* ================= COMPANY PROFILE ================= */
.profile-card {
  max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
}
.profile-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 34px auto 8px;
}
[data-theme="dark"] .profile-icon { background: #fff; color: var(--navy); }
.profile-table { margin: 26px 0 0; }
.profile-row { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--surface-border); }
.profile-row dt {
  padding: 18px 28px; background: var(--bg-alt); font-weight: 700; font-size: .9rem; color: var(--text);
  display: flex; align-items: center;
}
.profile-row dd { margin: 0; padding: 18px 28px; font-size: .96rem; line-height: 1.6; color: var(--text); }
.profile-link { color: var(--accent); font-weight: 600; }
.profile-link:hover { text-decoration: underline; }

/* ================= FAQ ================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--surface-border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 24px; font-size: 1rem; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-chevron { transition: transform .3s var(--ease); color: var(--text-muted); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--text-muted); line-height: 1.65; font-size: .95rem; }

/* ================= FINAL CTA ================= */
.final-cta { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.final-cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.final-cta-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.02em; margin-bottom: 20px; }
.final-cta-inner p { color: rgba(255,255,255,0.72); font-size: 1.08rem; line-height: 1.65; margin-bottom: 38px; }

/* ================= CONTACT ================= */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: flex-start; }
.contact-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-list .i { color: var(--accent); }
.contact-form {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--text-muted); }
.contact-form input, .contact-form textarea {
  font-family: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--surface-border);
  background: var(--bg); color: var(--text); font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--focus-ring); }
.contact-form textarea { resize: vertical; }
.form-note { font-size: .88rem; color: var(--accent); font-weight: 600; min-height: 1.2em; }

/* ================= MODAL ================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(6,12,24,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); padding: 40px; max-width: 460px; width: 100%;
  position: relative; box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.98); transition: transform .35s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--surface-border);
  background: transparent; color: var(--text-muted); display: flex; align-items: center; justify-content: center;
}
.modal h3 { font-size: 1.3rem; margin: 6px 0 12px; letter-spacing: -.01em; }
.modal-desc { color: var(--text-muted); font-size: .93rem; line-height: 1.6; margin-bottom: 24px; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.modal input {
  font-family: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--surface-border);
  background: var(--bg); color: var(--text); font-size: .95rem;
}
.modal input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--focus-ring); }

/* ================= FOOTER ================= */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.85); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { margin: 16px 0 20px; color: rgba(255,255,255,0.55); font-size: .92rem; line-height: 1.6; max-width: 300px; }
.footer-brand .brand-text, .footer-brand .brand-sub { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.5); }
.footer-social {
  display: inline-flex; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  align-items: center; justify-content: center; transition: background .2s;
}
.footer-social:hover { background: rgba(255,255,255,0.1); }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; color: rgba(255,255,255,0.5); }
.footer-col a { display: block; padding: 7px 0; color: rgba(255,255,255,0.75); font-size: .92rem; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: .85rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: #fff; }

/* ================= BACK TO TOP ================= */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 900; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
[data-theme="dark"] .back-to-top { background: #fff; color: var(--navy); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .why-grid, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .service-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
  .grid-4, .engagement-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}

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

@media (max-width: 860px) {
  .header-actions .btn-sm { display: none; }
  :root { --header-h: 68px; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .why-grid, .grid-5, .service-grid, .grid-3, .grid-4, .engagement-grid, .timeline {
    grid-template-columns: 1fr;
  }
  .service-card-wide { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta, .trust-grid { flex-direction: column; align-items: center; }
  .container { padding: 0 20px; }
  .profile-row { grid-template-columns: 1fr; }
  .profile-row dt { padding: 12px 22px 4px; background: transparent; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
  .profile-row dd { padding: 0 22px 14px; }
}

@media (max-width: 480px) {
  .header-actions { gap: 8px; }
  .lang-toggle button { padding: 6px 8px; font-size: .74rem; }
  .theme-toggle { width: 34px; height: 34px; }
  .nav-toggle { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text { font-size: .98rem; }
}
