/* ==========================================================================
   Beyond Horizons — company site
   Paleta: grafit / stalowa szarość + odcienie niebieskiego
   ========================================================================== */

:root {
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --bg: #070b12;
  --bg-soft: #0a111d;
  --surface: #0c1422;
  --surface-2: #0f1a2b;
  --glass: rgba(10, 17, 29, .72);
  --text: #e9eff9;
  --muted: #97a8bf;
  --muted-2: #6d809a;
  --line: rgba(148, 163, 184, .15);
  --line-strong: rgba(148, 163, 184, .28);
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --cyan: #22d3ee;
  --steel: #94a3b8;
  --grad: linear-gradient(135deg, #60a5fa 0%, #3b82f6 48%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(96, 165, 250, .18), rgba(34, 211, 238, .10));
  --shadow-lg: 0 30px 80px -32px rgba(2, 8, 20, .95);
  --shadow-glow: 0 0 0 1px rgba(96, 165, 250, .22), 0 22px 60px -24px rgba(59, 130, 246, .55);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --header-h: 78px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f2f6fc;
  --bg-soft: #e9f0f9;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --glass: rgba(244, 248, 253, .82);
  --text: #0d1a2b;
  --muted: #4a5c73;
  --muted-2: #5f7086;
  --line: rgba(15, 23, 42, .10);
  --line-strong: rgba(15, 23, 42, .20);
  --steel: #64748b;
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(34, 211, 238, .08));
  --grad: linear-gradient(135deg, #2563eb 0%, #1d4ed8 48%, #0891b2 100%);
  --shadow-lg: 0 30px 80px -40px rgba(15, 42, 80, .30);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, .22), 0 22px 50px -26px rgba(59, 130, 246, .38);

  color-scheme: light;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, .12), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(34, 211, 238, .06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
address { font-style: normal; }

::selection { background: rgba(59, 130, 246, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2c3d55, #1a2637);
  border: 3px solid var(--bg);
  border-radius: 99px;
}
[data-theme="light"] ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #b9c8dc, #9fb2c9); border-color: var(--bg); }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------- Scroll progress ---------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(59, 130, 246, .8);
}

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #dbeafe;
  background: linear-gradient(135deg, rgba(59, 130, 246, .28), rgba(34, 211, 238, .12));
  border: 1px solid rgba(96, 165, 250, .40);
}
[data-theme="light"] .brand-tile { color: #1d4ed8; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 9px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(148, 163, 184, .09); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

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

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, .06);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(148, 163, 184, .12); }
.icon-btn:active { transform: scale(.96); }
.icon { width: 19px; height: 19px; }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.burger { display: none; position: relative; }
.burger span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 1.8px;
  margin: 0;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.burger span:nth-child(2) { transform: translate(-50%, -50%); }
.burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* -------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb 55%, #0ea5e9);
  box-shadow: 0 16px 34px -16px rgba(37, 99, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(37, 99, 235, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn-ghost {
  color: var(--text);
  background: rgba(148, 163, 184, .07);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(148, 163, 184, .13);
  border-color: rgba(96, 165, 250, .45);
}
[data-theme="light"] .btn-ghost { background: #fff; border-color: rgba(15, 23, 42, .14); }
[data-theme="light"] .btn-ghost:hover { border-color: rgba(37, 99, 235, .45); }

.btn-sm { height: 40px; padding: 0 17px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ------------------------------ Typography ------------------------------ */
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 1.03;
  margin: 22px 0 24px;
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  max-width: 22ch;
}

h3 { font-size: 1.16rem; line-height: 1.3; }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 160% 160%;
  animation: gradientShift 9s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
[data-theme="light"] .eyebrow { color: #2563eb; }
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 0 12px rgba(34, 211, 238, .8);
  flex: 0 0 auto;
}

.section-lead {
  margin-top: 18px;
  font-size: clamp(1rem, 1.25vw, 1.09rem);
  color: var(--muted);
  max-width: 60ch;
}
.section-lead-sm { max-width: 46ch; margin-top: 0; }

/* -------------------------------- Layout -------------------------------- */
.section { padding: clamp(72px, 9.5vw, 122px) 0; position: relative; }
.section-tight { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }

.section-head { margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 { margin-top: 16px; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(48px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
}
.hero-glow-1 {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -80px;
  background: radial-gradient(circle, rgba(59, 130, 246, .55), transparent 68%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, .32), transparent 68%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
[data-theme="light"] .hero-glow { opacity: .32; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 26px, 0) scale(1.08); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 78%);
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .06) 1px, transparent 1px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy { animation: riseIn .8s cubic-bezier(.22, .8, .3, 1) both; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 36px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: center; gap: 9px; }

.check {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .38);
}
.check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3.5px;
  width: 4px;
  height: 7px;
  border: solid var(--cyan);
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(42deg);
}

/* ------------------------------ Hero visual ----------------------------- */
.hero-visual {
  --orbit-r: clamp(104px, 16vw, 166px);
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 500px);
  margin-inline: auto;
  animation: riseIn .9s .12s cubic-bezier(.22, .8, .3, 1) both;
}

.orbit { position: absolute; inset: 8%; }

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
}
.orbit-ring-1 { width: 100%; height: 100%; border-style: dashed; opacity: .75; animation: spin 70s linear infinite; }
.orbit-ring-2 { width: 74%; height: 74%; opacity: .85; animation: spin 46s linear infinite reverse; }
.orbit-ring-3 { width: 47%; height: 47%; border-color: rgba(96, 165, 250, .28); box-shadow: inset 0 0 60px rgba(59, 130, 246, .12); }

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(76px, 9vw, 104px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(96, 165, 250, .40), rgba(10, 17, 29, .94) 68%);
  border: 1px solid rgba(96, 165, 250, .45);
  box-shadow: 0 0 60px rgba(59, 130, 246, .35), inset 0 0 30px rgba(59, 130, 246, .22);
  z-index: 3;
}
[data-theme="light"] .orbit-core {
  background: radial-gradient(circle at 32% 26%, #ffffff, #e6f0ff 72%);
  border-color: rgba(37, 99, 235, .38);
  box-shadow: 0 18px 50px -18px rgba(37, 99, 235, .40);
}
.orbit-core-text {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: .1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.orbit-core-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, .35);
  animation: pulse 3.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.88); opacity: .8; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.orbit-spin {
  position: absolute;
  inset: 0;
  animation: spin 34s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  --r: var(--orbit-r);
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.orbit-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #dbeafe;
  background: rgba(12, 22, 38, .92);
  border: 1px solid rgba(96, 165, 250, .32);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .9);
  white-space: nowrap;
  animation: spinReverse 34s linear infinite;
}
.orbit-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  opacity: .9;
}
[data-theme="light"] .orbit-chip { color: #1e40af; background: rgba(255, 255, 255, .95); }
@keyframes spinReverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Floating cards */
.float-card {
  position: absolute;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  z-index: 4;
}
.float-card-code {
  top: -8%;
  right: -4%;
  width: 216px;
  padding: 12px 14px 13px;
  animation: float 7s ease-in-out infinite;
}
.float-card-head { display: flex; align-items: center; gap: 5px; margin-bottom: 9px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-amber { background: #fbbf24; }
.dot-green { background: #34d399; }
.float-card-title {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--muted-2);
}
.float-card pre { margin: 0; }
.float-card code {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
  display: block;
  white-space: pre;
}
.c-key { color: #93c5fd; }
.c-ok { color: #34d399; }
.c-dim { color: var(--muted-2); }
[data-theme="light"] .float-card code { color: #334155; }
[data-theme="light"] .c-key { color: #1d4ed8; }
[data-theme="light"] .c-ok { color: #047857; }
[data-theme="light"] .c-dim { color: #64748b; }

.float-card-signal {
  bottom: -7%;
  left: -8%;
  width: 196px;
  padding: 13px 14px;
  animation: float 8s .8s ease-in-out infinite;
}
.signal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.signal-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.signal-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: #34d399;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .16);
  animation: blink 1.8s ease-in-out infinite;
}
[data-theme="light"] .signal-live { color: #047857; }
[data-theme="light"] .live-dot { background: #059669; }
@keyframes blink { 50% { opacity: .3; } }
.signal-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.signal-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(to top, rgba(59, 130, 246, .30), #60a5fa);
}
.signal-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero footer strip */
.hero-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(44px, 6vw, 74px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-foot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.hero-foot-item svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--blue-soft); }
.hero-foot-item strong { color: var(--text); font-weight: 600; }

/* ------------------------------- Services ------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Nieparzysta liczba usług: ostatnia karta wyśrodkowana, bez „dziury” w siatce */
@media (min-width: 721px) {
  .service-grid > .service-card:last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }
}

.service-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(148, 163, 184, .055), rgba(148, 163, 184, .012)),
    var(--surface);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22, .8, .3, 1), border-color .35s ease, box-shadow .35s ease;
}
[data-theme="light"] .service-card {
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 18px 40px -34px rgba(15, 42, 80, .35);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--accent) 65%, transparent);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  margin-bottom: 22px;
}
.service-icon svg { width: 25px; height: 25px; }

.service-card h3 { margin-bottom: 10px; font-size: 1.22rem; }
.service-card p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.tag-list li {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(148, 163, 184, .08);
  border: 1px solid var(--line);
  border-radius: 99px;
}
[data-theme="light"] .tag-list li { background: rgba(59, 130, 246, .06); }

.service-index {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted-2);
  opacity: .6;
}

/* -------------------------------- Marquee ------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
}
.marquee-group li {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease;
}
.marquee-group li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .6;
  vertical-align: middle;
}
.marquee-group li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------- Process ------------------------------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(to right, rgba(59, 130, 246, .55), rgba(34, 211, 238, .28), transparent);
  z-index: 0;
}
.process-step { position: relative; padding-top: 0; z-index: 1; }
.process-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--blue-soft);
  background: var(--bg);
  border: 1px solid rgba(96, 165, 250, .32);
  box-shadow: 0 0 0 6px var(--bg), 0 0 28px rgba(59, 130, 246, .16);
}
[data-theme="light"] .process-num { color: #1d4ed8; }
.process-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { font-size: 13.8px; color: var(--muted); max-width: 34ch; }

/* --------------------------------- About -------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-copy h2 { margin: 16px 0 22px; max-width: 18ch; }
.about-copy p { color: var(--muted); margin-bottom: 16px; max-width: 58ch; }

.about-values {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}
.about-values li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--text);
}
.about-values .check { width: 18px; height: 18px; }

.about-panel {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(59, 130, 246, .12), transparent 70%),
    linear-gradient(180deg, rgba(148, 163, 184, .06), rgba(148, 163, 184, .015)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}
[data-theme="light"] .about-panel { background: linear-gradient(180deg, #fff, #f7fbff); }
.panel-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 10px;
}
[data-theme="light"] .panel-kicker { color: #2563eb; }
.about-panel-head h3 { font-size: 1.35rem; }

.capability-list { margin-top: 24px; display: grid; gap: 4px; }
.capability-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: 13px;
  transition: background .2s ease;
}
.capability-list li:hover { background: rgba(148, 163, 184, .07); }
.capability-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.capability-icon svg { width: 20px; height: 20px; }
.capability-list strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.capability-list small { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; line-height: 1.45; }

.about-panel-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .13);
  animation: blink 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}

/* -------------------------------- Contact ------------------------------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(59, 130, 246, .16), transparent 68%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.contact-copy h2 { margin: 16px 0 20px; max-width: 16ch; }

.contact-list {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 14px;
  border-radius: 14px;
  transition: background .2s ease;
}
.contact-list li:hover { background: rgba(148, 163, 184, .06); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--blue-soft);
  background: rgba(59, 130, 246, .10);
  border: 1px solid rgba(96, 165, 250, .24);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-body a,
.contact-body .multiline {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s ease;
  overflow-wrap: anywhere;
}
.contact-body a:hover { color: var(--blue-soft); }
.multiline { white-space: pre-line; }

.nip-line { display: inline-flex; align-items: center; gap: 10px; }
.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, .07);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.copy-btn:hover { color: var(--blue-soft); border-color: rgba(96, 165, 250, .4); background: rgba(59, 130, 246, .12); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn .icon-check { display: none; color: #34d399; }
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-check { display: block; }

.contact-card {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96, 165, 250, .24);
  background:
    radial-gradient(520px 300px at 100% 0%, rgba(59, 130, 246, .18), transparent 68%),
    linear-gradient(180deg, rgba(148, 163, 184, .07), rgba(148, 163, 184, .015)),
    var(--surface);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
[data-theme="light"] .contact-card {
  background: linear-gradient(180deg, #fff, #f6faff);
  border-color: rgba(37, 99, 235, .22);
}
.contact-card-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .30), transparent 66%);
  filter: blur(36px);
  pointer-events: none;
}
.contact-card h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin-bottom: 12px; max-width: 16ch; }
.contact-card > p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }

.contact-card-actions {
  display: grid;
  gap: 11px;
  margin: 26px 0;
}

.company-facts {
  display: grid;
  gap: 1px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.company-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
}
[data-theme="light"] .company-facts > div { background: #fff; }
.company-facts dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}
.company-facts dd { font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.company-facts dd a:hover { color: var(--blue-soft); }

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}
.contact-note .status-dot { margin-top: 7px; }

/* --------------------------------- Footer ------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, .05));
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 46px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-tagline { font-size: 13.5px; color: var(--muted); max-width: 34ch; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col li, .footer-col a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--blue-soft); }
.footer-address { display: grid; gap: 9px; font-size: 13.5px; color: var(--muted); }
.footer-address a:hover { color: var(--blue-soft); }
.footer-nip { color: var(--muted-2); font-size: 12.5px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

/* --------------------------------- Toast -------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------- Config alert ----------------------------- */
.config-alert {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 250;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(calc(100% - 32px), 620px);
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 13px;
  color: #fde68a;
  background: rgba(41, 32, 12, .94);
  border: 1px solid rgba(251, 191, 36, .40);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.config-alert[hidden] { display: none; }
.config-alert-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #1c1503;
  background: #fbbf24;
}
.config-alert button {
  margin-left: auto;
  padding: 2px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.config-alert button:hover { background: rgba(251, 191, 36, .16); }

/* ------------------------------- Reveal --------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .8, .3, 1), transform .7s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1080px) {
  .float-card-code { right: -2%; }
  .float-card-signal { left: -2%; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-address { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 15px; }
  .nav-links a.is-active::after { display: none; }
  .nav-links a.is-active { background: rgba(59, 130, 246, .12); color: var(--text); }
  .burger { display: inline-grid; }
  .header-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { margin-inline: auto; max-width: 18ch; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 440px; }
  .hero-foot { grid-template-columns: 1fr; gap: 12px; }

  .about, .contact-inner { grid-template-columns: 1fr; }
  .about-panel { max-width: 560px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .process::before { display: none; }
  .section-head-row { align-items: flex-start; }
  .section-lead-sm { margin-top: 4px; }
}

@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-address { grid-template-columns: 1fr; }
  .hero-visual { --orbit-r: clamp(104px, 30vw, 148px); width: 100%; max-width: 380px; }
  .float-card { display: none; }
  .brand-sub { display: none; }
  .contact-list li { padding-inline: 4px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 32px, var(--container)); }
  h1 { font-size: clamp(2.15rem, 11vw, 2.9rem); }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { gap: 10px 18px; font-size: 12.5px; }
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process-step { display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; align-items: start; }
  .process-num { grid-row: span 2; margin-bottom: 0; }
  .process-step h3 { margin-top: 4px; }
  .company-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .company-facts dt { padding-top: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .config-alert { bottom: 12px; font-size: 12px; }
}

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

/* -------------------------------- Print --------------------------------- */
@media print {
  .site-header, .scroll-progress, .hero-visual, .toast, .config-alert, .marquee { display: none !important; }
  body { background: #fff; color: #111; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
