
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #edf3ff;
  --text: #111827;
  --muted: #5d6879;
  --border: #dce4f1;
  --primary: #1769ff;
  --primary-2: #0649c9;
  --accent: #20a4ff;
  --header-bg: rgba(246, 248, 252, 0.9);
  --shadow: 0 18px 45px rgba(16, 40, 90, 0.1);
  --radius: 20px;
}

html[data-theme="dark"] {
  --bg: #061224;
  --surface: #0a1a30;
  --surface-2: #0c2342;
  --text: #f5f8ff;
  --muted: #a8b6cb;
  --border: #1c385f;
  --primary: #3b82ff;
  --primary-2: #1f64e5;
  --accent: #38bdf8;
  --header-bg: rgba(6, 18, 36, 0.9);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 90% 0%, rgba(23,105,255,.11), transparent 28%),
    radial-gradient(circle at 10% 30%, rgba(32,164,255,.07), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 20%);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.brand-copy strong {
  display: block;
  font-size: 1.22rem;
  letter-spacing: .06em;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: .69rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button, .lang-button {
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 11px;
}

.lang-button { font-weight: 750; }

.menu-button { display: none; }

.hero {
  padding: 92px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--primary);
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: -.055em;
  margin: 20px 0 24px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
h3 { font-size: 1.35rem; }

.hero p {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 680px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  padding: 13px 18px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 12px 30px rgba(23, 105, 255, .28);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.hero-panel {
  position: relative;
  background: linear-gradient(150deg, #051124, #0a1f3d);
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid #1d4475;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.hero-panel::before {
  width: 280px;
  height: 280px;
  background: rgba(23, 105, 255, .28);
  right: -80px;
  top: -70px;
}

.hero-panel::after {
  width: 220px;
  height: 220px;
  background: rgba(56, 189, 248, .18);
  left: -90px;
  bottom: -70px;
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo-wrap img {
  width: 210px;
  margin: 0 auto 24px;
  border-radius: 44px;
}

.hero-logo-wrap strong {
  display: block;
  color: white;
  font-size: 2.1rem;
  letter-spacing: .12em;
}

.hero-logo-wrap span {
  color: #b8cae8;
  font-size: .88rem;
}

.section { padding: 84px 0; }
.section-tight { padding: 54px 0; }

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.07rem;
}

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

.card {
  background: color-mix(in srgb, var(--surface), transparent 3%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: 0 8px 26px rgba(14, 36, 80, .05);
}

.card p, .card li { color: var(--muted); }
.card ul { padding-left: 20px; margin-bottom: 0; }

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(23, 105, 255, .08);
}

.service-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  color: var(--primary);
  border-radius: 12px;
  font-weight: 900;
  margin-bottom: 18px;
}

.band {
  background: linear-gradient(135deg, #0b2d62, #07192f);
  color: white;
  border-block: 1px solid #214a7b;
}

.band p { color: #c0d0e8; }

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2.15rem;
  color: var(--primary);
}

.process {
  counter-reset: step;
}
.process .card {
  position: relative;
  padding-left: 72px;
}
.process .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.cta {
  padding: 38px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(23,105,255,.95), rgba(5,53,143,.96)),
    var(--primary);
  color: white;
  box-shadow: var(--shadow);
}
.cta p { color: #dce8ff; max-width: 760px; }
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta .button-secondary {
  background: white;
  color: #0a2d64;
  border-color: transparent;
}

.page-hero {
  padding: 72px 0 44px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-bottom: 16px;
}
.page-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
}

.role-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.role-cloud span {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 700;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.field-full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: .9rem;
  font-weight: 800;
  margin-bottom: 7px;
}

input, textarea, select {
  width: 100%;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, .13);
}

textarea { min-height: 140px; resize: vertical; }

.form-note {
  color: var(--muted);
  font-size: .88rem;
  margin-top: 12px;
}

.contact-list {
  display: grid;
  gap: 14px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 15px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 900;
}

.footer {
  margin-top: 80px;
  padding: 50px 0 24px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface), transparent 12%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 34px;
}

.footer h3 { margin-bottom: 12px; }
.footer p, .footer a { color: var(--muted); }
.footer-links { display: grid; gap: 8px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

.notice {
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
  padding: 16px 18px;
  border-radius: 0 14px 14px 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .menu-button { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .brand-copy span { display: none; }
  .brand { min-width: 0; }
  .navbar { gap: 10px; }
  .nav-actions { gap: 5px; }
  .hero { padding-top: 62px; }
  .hero-panel { min-height: 320px; }
  .hero-logo-wrap img { width: 160px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .field-full { grid-column: auto; }
  .cta-row, .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .section { padding: 66px 0; }
  h1 { font-size: clamp(2.35rem, 13vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* v1.2: preserve readable card colors inside dark band sections in light mode */
.band .card {
  color: var(--text);
  background: var(--surface);
}

.band .card h2,
.band .card h3,
.band .card strong {
  color: var(--text);
}

.band .card p,
.band .card li {
  color: var(--muted);
}

/* =========================================================
   TDMTEK Website v1.3 — Brand presence and visual refinement
   Existing content and page structure are preserved.
   ========================================================= */

:root {
  --header-height: 96px;
  --header-height-compact: 72px;
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
}

/* Stronger, calmer header */
.site-header {
  transition:
    background-color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(11, 35, 77, .09);
  background: color-mix(in srgb, var(--header-bg), var(--surface) 15%);
}

.navbar {
  min-height: var(--header-height);
  transition: min-height .38s var(--ease-premium);
}

.site-header.is-scrolled .navbar {
  min-height: var(--header-height-compact);
}

.brand {
  gap: 15px;
  min-width: 270px;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 9px 22px rgba(20, 88, 214, .17);
  transition:
    width .38s var(--ease-premium),
    height .38s var(--ease-premium),
    border-radius .38s var(--ease-premium),
    box-shadow .3s ease,
    transform .3s var(--ease-premium);
}

.brand:hover img {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 88, 214, .22);
}

.brand-copy strong {
  font-size: 1.48rem;
  line-height: 1;
  letter-spacing: .075em;
  transition: font-size .38s var(--ease-premium);
}

.brand-copy span {
  margin-top: 7px;
  font-size: .72rem;
  letter-spacing: .018em;
  transition: font-size .38s var(--ease-premium), margin .38s var(--ease-premium);
}

.site-header.is-scrolled .brand img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.site-header.is-scrolled .brand-copy strong {
  font-size: 1.25rem;
}

.site-header.is-scrolled .brand-copy span {
  margin-top: 4px;
  font-size: .66rem;
}

.nav-links {
  gap: 3px;
}

.nav-links a {
  position: relative;
  padding: 10px 11px;
  font-size: .91rem;
  background: transparent;
  transition: color .22s ease, background-color .22s ease, transform .22s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s var(--ease-premium);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: color-mix(in srgb, var(--surface-2), transparent 35%);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.icon-button,
.lang-button {
  transition:
    transform .22s var(--ease-premium),
    border-color .22s ease,
    background-color .22s ease,
    box-shadow .22s ease;
}

.icon-button:hover,
.lang-button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary), var(--border) 55%);
  box-shadow: 0 8px 20px rgba(23, 105, 255, .10);
}

/* Hero: dimensional but restrained */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 112px 0 96px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.hero::before {
  width: 650px;
  height: 650px;
  top: -330px;
  right: -200px;
  background: radial-gradient(circle, rgba(23,105,255,.18), rgba(23,105,255,0) 68%);
  animation: hero-orbit 18s ease-in-out infinite alternate;
}

.hero::after {
  width: 520px;
  height: 520px;
  left: -250px;
  bottom: -330px;
  background: radial-gradient(circle, rgba(56,189,248,.14), rgba(56,189,248,0) 68%);
  animation: hero-orbit 22s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: relative;
}

.hero-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45px -10vw;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border), transparent 76%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border), transparent 76%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
}

.hero h1 {
  max-width: 790px;
  text-wrap: balance;
}

.hero p {
  line-height: 1.72;
}

.hero-actions .button {
  min-height: 50px;
}

.button {
  position: relative;
  overflow: hidden;
  transition:
    transform .24s var(--ease-premium),
    box-shadow .24s ease,
    border-color .24s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.23) 45%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .65s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover::after {
  transform: translateX(130%);
}

.button-primary:hover {
  box-shadow: 0 17px 38px rgba(23, 105, 255, .36);
}

.button-secondary:hover {
  border-color: color-mix(in srgb, var(--primary), var(--border) 52%);
  box-shadow: 0 12px 28px rgba(16, 40, 90, .09);
}

.hero-panel {
  min-height: 500px;
  isolation: isolate;
  background:
    radial-gradient(circle at 68% 24%, rgba(45, 132, 255, .30), transparent 28%),
    radial-gradient(circle at 26% 78%, rgba(56, 189, 248, .20), transparent 25%),
    linear-gradient(145deg, #041026 0%, #09254b 56%, #06172e 100%);
  border: 1px solid rgba(119, 174, 244, .35);
  box-shadow:
    0 30px 75px rgba(5, 27, 61, .30),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.hero-panel::before {
  width: 320px;
  height: 320px;
  filter: blur(18px);
  animation: panel-glow 10s ease-in-out infinite alternate;
}

.hero-panel::after {
  width: 250px;
  height: 250px;
  filter: blur(20px);
  animation: panel-glow 13s ease-in-out infinite alternate-reverse;
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .72;
}

.hero-network svg {
  width: 100%;
  height: 100%;
}

.hero-network .network-line {
  fill: none;
  stroke: rgba(134, 190, 255, .24);
  stroke-width: 1.2;
  stroke-dasharray: 5 8;
  animation: network-dash 22s linear infinite;
}

.hero-network .network-ring {
  fill: none;
  stroke: rgba(104, 173, 255, .17);
  stroke-width: 1;
}

.hero-network .network-node {
  fill: #6ecbff;
  filter: drop-shadow(0 0 6px rgba(84, 181, 255, .8));
  animation: node-pulse 4.6s ease-in-out infinite;
}

.hero-network .network-node:nth-of-type(2n) { animation-delay: -1.4s; }
.hero-network .network-node:nth-of-type(3n) { animation-delay: -2.6s; }

.hero-logo-wrap {
  z-index: 2;
  padding: 34px;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  border: 1px solid rgba(139, 196, 255, .22);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(108, 176, 255, .045),
    0 0 0 84px rgba(108, 176, 255, .025);
  animation: logo-breathe 8s ease-in-out infinite;
}

.hero-logo-wrap img {
  width: 220px;
  box-shadow: 0 24px 65px rgba(0, 18, 48, .45);
  transition: transform .55s var(--ease-premium);
}

.hero-panel:hover .hero-logo-wrap img {
  transform: translateY(-5px) scale(1.015);
}

.hero-logo-wrap strong {
  margin-top: 4px;
  text-shadow: 0 4px 20px rgba(0,0,0,.32);
}

/* Page heroes receive a visual signature without changing content */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 68px;
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 35%);
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 84% 32%, rgba(23,105,255,.15), transparent 27%),
    linear-gradient(120deg, color-mix(in srgb, var(--surface-2), transparent 40%), transparent 62%);
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: max(3vw, calc((100vw - 1160px) / 2));
  top: 50%;
  width: 180px;
  height: 180px;
  border: 1px solid color-mix(in srgb, var(--primary), transparent 72%);
  border-radius: 38% 62% 62% 38% / 48% 42% 58% 52%;
  transform: translateY(-50%) rotate(18deg);
  box-shadow:
    0 0 0 28px color-mix(in srgb, var(--primary), transparent 96%),
    0 0 0 56px color-mix(in srgb, var(--accent), transparent 97%);
  animation: page-shape 15s ease-in-out infinite alternate;
}

.page-hero h1 {
  max-width: 850px;
  text-wrap: balance;
}

/* More human visual rhythm across cards */
.card {
  transition:
    transform .34s var(--ease-premium),
    box-shadow .34s ease,
    border-color .34s ease,
    background-color .34s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary), var(--border) 68%);
  box-shadow: 0 20px 48px rgba(13, 45, 102, .11);
}

.grid-3 > .card:nth-child(2),
.grid-4 > .card:nth-child(2) { transition-delay: .035s; }
.grid-3 > .card:nth-child(3),
.grid-4 > .card:nth-child(3) { transition-delay: .07s; }
.grid-4 > .card:nth-child(4) { transition-delay: .105s; }

/* Service identity */
.service-card,
.services-detail-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.service-card::before,
.services-detail-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 210px;
  right: -112px;
  top: -118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,105,255,.15), rgba(23,105,255,0) 70%);
  transition: transform .55s var(--ease-premium), opacity .4s ease;
}

.service-card:hover::before,
.services-detail-card:hover::before {
  transform: scale(1.25) translate(-8px, 8px);
}

.service-card::after {
  width: 120px;
  height: 120px;
  border: 1px solid color-mix(in srgb, var(--primary), transparent 82%);
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary), transparent 94%) 0 5px,
      transparent 5px 12px
    );
}

.service-card-head,
.services-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.service-card-head .service-number,
.services-detail-head .service-number {
  margin-bottom: 0;
}

.service-icon {
  width: 49px;
  height: 49px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--primary);
  background:
    linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--primary), var(--border) 72%);
  border-radius: 15px;
  box-shadow: 0 9px 24px rgba(23,105,255,.10);
  transition: transform .4s var(--ease-premium), box-shadow .3s ease;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon,
.services-detail-card:hover .service-icon {
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 0 13px 28px rgba(23,105,255,.17);
}

.services-detail-card {
  padding: 30px;
}

.services-detail-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.services-detail-card h3 {
  margin-top: 24px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .065em;
  color: var(--primary);
}

.services-detail-card ul {
  display: grid;
  gap: 8px;
}

.services-detail-card li::marker {
  color: var(--primary);
}

/* Gentle details on supporting components */
.stat {
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto 20% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .3s ease, transform .4s var(--ease-premium);
}

.stat:hover::after {
  opacity: .75;
  transform: scaleX(1);
}

.role-cloud span {
  transition:
    transform .22s var(--ease-premium),
    border-color .22s ease,
    background-color .22s ease;
}

.role-cloud span:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary), var(--border) 55%);
  background: color-mix(in srgb, var(--surface-2), var(--surface) 25%);
}

.contact-item {
  transition: transform .28s var(--ease-premium), box-shadow .28s ease, border-color .28s ease;
}

.contact-item:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--primary), var(--border) 62%);
  box-shadow: 0 12px 28px rgba(16, 40, 90, .08);
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  right: -115px;
  top: -180px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255,255,255,.035), 0 0 0 88px rgba(255,255,255,.02);
}

[data-reveal] {
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s var(--ease-premium);
}

/* Motion is deliberately slow and low-amplitude */
@keyframes hero-orbit {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-28px, 18px, 0) scale(1.06); }
}

@keyframes panel-glow {
  from { transform: translate3d(0, 0, 0) scale(.96); opacity: .75; }
  to { transform: translate3d(-14px, 10px, 0) scale(1.08); opacity: 1; }
}

@keyframes network-dash {
  to { stroke-dashoffset: -180; }
}

@keyframes node-pulse {
  0%, 100% { opacity: .45; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes logo-breathe {
  0%, 100% { transform: translate(-50%, -54%) scale(.98); opacity: .68; }
  50% { transform: translate(-50%, -54%) scale(1.035); opacity: 1; }
}

@keyframes page-shape {
  from { transform: translateY(-50%) rotate(14deg) scale(.96); }
  to { transform: translateY(-50%) rotate(25deg) scale(1.06); }
}

/* Responsive header and visual restraint */
@media (max-width: 1120px) {
  .brand { min-width: 235px; }
  .brand img { width: 58px; height: 58px; }
  .brand-copy strong { font-size: 1.34rem; }
  .brand-copy span { font-size: .65rem; }
  .nav-links a { padding-inline: 8px; font-size: .87rem; }
}

@media (max-width: 980px) {
  :root { --header-height: 84px; }
  .brand { min-width: 0; }
  .nav-links {
    inset: var(--header-height) 16px auto 16px;
    transition: inset .38s var(--ease-premium);
  }
  .site-header.is-scrolled .nav-links {
    inset: var(--header-height-compact) 16px auto 16px;
  }
  .hero { padding-top: 86px; }
  .hero-panel { min-height: 440px; }
  .page-hero::after { right: -55px; opacity: .65; }
}

@media (max-width: 720px) {
  :root {
    --header-height: 76px;
    --header-height-compact: 68px;
  }
  .brand { gap: 10px; }
  .brand img {
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }
  .brand-copy strong { font-size: 1.2rem; }
  .site-header.is-scrolled .brand img { width: 44px; height: 44px; }
  .site-header.is-scrolled .brand-copy strong { font-size: 1.12rem; }
  .hero {
    padding-top: 70px;
    padding-bottom: 72px;
  }
  .hero-panel { min-height: 360px; }
  .hero-logo-wrap img { width: 165px; }
  .hero-logo-wrap::before {
    width: 245px;
    height: 245px;
    box-shadow:
      0 0 0 28px rgba(108, 176, 255, .04),
      0 0 0 56px rgba(108, 176, 255, .02);
  }
  .page-hero {
    padding: 68px 0 48px;
  }
  .page-hero::after {
    width: 125px;
    height: 125px;
  }
  .services-detail-card { padding: 24px; }
}

@media (max-width: 440px) {
  .brand-copy strong { font-size: 1.08rem; }
  .brand img { width: 46px; height: 46px; }
  .lang-button,
  .icon-button { min-height: 38px; padding: 7px 9px; }
  .hero-panel { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-panel::before,
  .hero-panel::after,
  .hero-logo-wrap::before,
  .page-hero::after,
  .hero-network * {
    animation: none !important;
  }
}
