/* FAEM — Payment Flow System
   Brand palette from logo.png:
   blue ring #0057b8 · orange mark #f59a1e · black #0a0a0a · white #ffffff */

:root {
  --font: 'Vazirmatn', Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
  --spine-w: 3px;
  --radius: 14px;
  --radius-lg: 22px;
  --brand-blue: #0057b8;
  --brand-blue-dark: #003d82;
  --brand-orange: #f59a1e;
  --brand-orange-dark: #d97f08;
  --brand-black: #0a0a0a;
  --brand-white: #ffffff;
}

[data-theme="light"] {
  --void: #f4f7fc;
  --surface: var(--brand-white);
  --surface-2: #e8eef6;
  --ink: var(--brand-black);
  --ink-muted: #3d4554;
  --ink-soft: #6b7588;
  --signal: var(--brand-blue);
  --signal-glow: rgba(0, 87, 184, 0.28);
  --gold: var(--brand-orange);
  --gold-soft: rgba(245, 154, 30, 0.14);
  --line: rgba(10, 10, 10, 0.1);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(0, 87, 184, 0.1);
  --shadow: 0 24px 60px rgba(0, 57, 130, 0.1);
  --network-dot: rgba(0, 87, 184, 0.55);
  --spine-color: linear-gradient(180deg, transparent, var(--brand-blue), var(--brand-orange), transparent);
}

[data-theme="dark"] {
  --void: var(--brand-black);
  --surface: #141414;
  --surface-2: #1e1e1e;
  --ink: #f5f5f5;
  --ink-muted: #b8bcc6;
  --ink-soft: #7a8294;
  --signal: #4a9ef0;
  --signal-glow: rgba(74, 158, 240, 0.28);
  --gold: #ffb84a;
  --gold-soft: rgba(255, 184, 74, 0.14);
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(20, 20, 20, 0.88);
  --glass-border: rgba(74, 158, 240, 0.12);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  --network-dot: rgba(74, 158, 240, 0.7);
  --spine-color: linear-gradient(180deg, transparent, var(--signal), var(--gold), transparent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--void);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold); }
a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
ul { list-style: none; }

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--signal);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Flow spine — vertical network connector */
.flow-spine {
  position: fixed;
  top: var(--header-h);
  right: clamp(12px, 2vw, 28px);
  width: var(--spine-w);
  height: calc(100vh - var(--header-h));
  z-index: 5;
  pointer-events: none;
}
.flow-spine__line {
  width: 100%;
  height: 100%;
  background: var(--spine-color);
  opacity: 0.55;
  border-radius: 4px;
}
.flow-spine__pulse {
  position: absolute;
  top: 0;
  right: 50%;
  width: 10px;
  height: 10px;
  margin-right: -5px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--signal-glow);
  animation: spine-travel 8s linear infinite;
}
@keyframes spine-travel {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Header */
.flow-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
.flow-header.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.flow-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.flow-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  flex-shrink: 0;
}
.flow-logo__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}
.flow-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.1rem;
}
.flow-logo__line {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.flow-zones-nav,
.flow-main-nav {
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  margin-inline: auto;
}
.flow-zones-nav a,
.flow-main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.35rem 0;
  position: relative;
}
.flow-zones-nav a.is-active,
.flow-main-nav a[aria-current="page"] {
  color: var(--signal);
}
.flow-zones-nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
}

.flow-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-start: auto;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun { display: none; }

.btn-flow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--signal);
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-flow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--signal-glow);
  color: #fff;
}
.btn-flow--outline {
  background: transparent;
  border: 1px solid var(--signal);
  color: var(--signal);
}
.btn-flow--outline:hover { background: var(--signal); color: #fff; }
.btn-flow--sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-flow--gold {
  background: var(--brand-orange);
  color: var(--brand-black);
}
.btn-flow--gold:hover {
  background: var(--brand-orange-dark);
  color: #fff;
  box-shadow: 0 12px 32px rgba(245, 154, 30, 0.35);
}

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.btn-menu span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s;
}
.btn-menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.btn-menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--glass);
  backdrop-filter: blur(20px);
  padding: 2rem;
  overflow-y: auto;
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 1rem; }
.mobile-drawer a { font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.mobile-drawer hr { border: none; border-top: 1px solid var(--line); margin: 0.5rem 0; }

.flash {
  position: fixed;
  top: calc(var(--header-h) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  max-width: 90%;
}
.flash--success { background: var(--brand-blue); color: #fff; }
.flash--error { background: #b42318; color: #fff; }

/* Zones — shared */
.flow-zone {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 4rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
  min-height: min(100vh, 900px);
  overflow: hidden;
}
.flow-zone__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1rem;
}
.flow-zone__label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--signal);
}
.flow-zone__title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 23ch;
}
.flow-zone__desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--ink-muted);
  max-width: 70ch;
  margin-bottom: 2rem;
}

/* Payment Signal */
#zone-signal {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  background-color: var(--void);
  background-image: url('../images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
#zone-signal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to inline-start,
    rgba(244, 247, 252, 0.94) 0%,
    rgba(244, 247, 252, 0.72) 38%,
    rgba(244, 247, 252, 0.2) 62%,
    transparent 78%
  );
}
[data-theme="dark"] #zone-signal {
  background-image: url('../images/background-dark.png');
}
[data-theme="dark"] #zone-signal::before {
  background: linear-gradient(
    to inline-start,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.7) 38%,
    rgba(10, 10, 10, 0.25) 62%,
    transparent 78%
  );
}
.signal-stage {
  width: 100%;
  max-width: min(920px, 100%);
  margin-inline: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}
.signal-content .flow-zone__title { max-width: none; }
.signal-content .flow-zone__desc {
  max-width: 58ch;
  text-align: justify;
  text-justify: inter-word;
}

.signal-metric {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 2rem 0;
}
.signal-metric div strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.signal-metric div span { font-size: 0.8rem; color: var(--ink-soft); }
.signal-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Device Layer */
#zone-device {
  background: var(--surface);
}
.device-band {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.device-strip {
  display: flex;
  gap: 0;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.device-tab {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.device-tab.is-active {
  background: var(--surface);
  color: var(--signal);
  border-bottom-color: var(--signal);
}
.device-panels { position: relative; min-height: 320px; margin-top: 0; }
.device-panel {
  display: none;
  grid-template-columns: minmax(220px, 1fr) 1.4fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  animation: panel-in 0.5s var(--ease);
}
.device-panel.is-active { display: grid; }
.device-panel__body h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.device-panel__meta {
  font-size: 0.88rem;
  color: var(--signal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.device-panel__body > p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.device-panel__visual {
  position: relative;
  min-height: 260px;
  background:
    linear-gradient(135deg, var(--surface-2) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, var(--signal-glow), transparent 55%);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.device-panel__img {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.device-specs-toggle {
  margin: 0.75rem 0 1rem;
}
.device-specs {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.device-specs[hidden] {
  display: none;
}
.device-specs-close {
  justify-self: start;
  margin-top: 0.25rem;
}
.device-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.device-spec-group h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--signal);
  margin-bottom: 0.4rem;
}
.pos-mock {
  width: 140px;
  height: 200px;
  background: linear-gradient(160deg, #2a3142, #151922);
  border-radius: 16px 16px 8px 8px;
  box-shadow: var(--shadow);
  position: relative;
}
.pos-mock::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 10%;
  right: 10%;
  height: 35%;
  background: rgba(245, 154, 30, 0.18);
  border-radius: 6px;
  border: 1px solid rgba(245, 154, 30, 0.35);
}
.pos-mock--wide { width: 200px; height: 120px; border-radius: 12px; }
.pos-mock--tower { width: 100px; height: 240px; }

.device-panel ul { margin: 1rem 0; }
.device-panel li {
  padding: 0.4rem 0;
  padding-right: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.device-panel li::before {
  content: '◆';
  position: absolute;
  right: 0;
  color: var(--signal);
  font-size: 0.5rem;
  top: 0.65rem;
}

.floating-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.float-block {
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transform: translateY(var(--float-y, 0));
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}
.float-block:nth-child(1) { --float-y: 12px; }
.float-block:nth-child(2) { --float-y: -8px; }
.float-block:nth-child(3) { --float-y: 20px; }
.float-block:hover { transform: translateY(0); }
.float-block strong { display: block; font-size: 0.95rem; margin-bottom: 0.35rem; }
.float-block p { font-size: 0.88rem; color: var(--ink-muted); }

/* Terminal Layer */
#zone-terminal {
  background:
    linear-gradient(165deg, var(--void) 0%, var(--surface-2) 55%),
    var(--void);
}
.terminal-band {
  max-width: 1320px;
  margin: 0 auto;
}
.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Business Layer */
#zone-business {
  background:
    linear-gradient(165deg, var(--surface-2) 0%, var(--void) 45%),
    var(--void);
}
.business-flow {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}
.timeline-rail {
  position: relative;
  margin-top: 0rem;
  padding: 0rem 0;
}
.timeline-rail::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--signal), var(--gold), var(--signal));
  opacity: 0.35;
}
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.timeline-step {
  text-align: center;
  padding: 1.5rem 0.75rem 0;
}
.timeline-step__dot {
  width: 16px;
  height: 16px;
  margin: 0 auto 1rem;
  background: var(--surface);
  border: 3px solid var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--signal-glow);
}
.timeline-step h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.timeline-step p { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }

.business-aside {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}
.depth-panel {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}
.depth-panel--back {
  transform: translate(24px, 24px);
  opacity: 0.5;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.depth-stack { position: relative; min-height: 280px; }
.depth-stack .depth-panel { position: relative; z-index: 1; }

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.service-chip {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

/* Support Layer */
#zone-support {
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, var(--gold-soft), transparent),
    var(--void);
}
.support-split {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.support-map {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}
.support-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.support-map__node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
  animation: map-blink 3s ease-in-out infinite;
}
@keyframes map-blink {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.support-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.support-card {
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  flex: 1;
}
.support-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.support-card p { font-size: 0.88rem; color: var(--ink-muted); }

/* Contact Layer */
#zone-contact {
  min-height: auto;
  padding-bottom: 4rem;
}
.contact-terminal {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-terminal__info {
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
}
.contact-terminal__info h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-terminal__info a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact-terminal__info ul { margin-top: 1.5rem; }
.contact-terminal__info li { margin-bottom: 0.75rem; font-size: 0.95rem; opacity: 0.95; }
.contact-terminal__cta {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

/* Footer */
.flow-footer {
  position: relative;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.25rem, 5vw, 4rem) 1.5rem;
  padding-right: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.flow-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/footer.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
[data-theme="dark"] .flow-footer::before {
  background-image: url('../images/footer-dark.png');
}
.flow-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 54% 74% at 82% 90%,
    var(--surface) 0%,
    color-mix(in srgb, var(--surface) 72%, transparent) 42%,
    transparent 72%
  );
  opacity: 0.96;
  -webkit-mask-image: radial-gradient(
    ellipse 54% 74% at 82% 90%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 54% 74% at 82% 90%,
    #000 0%,
    transparent 78%
  );
}
.flow-footer > * {
  position: relative;
  z-index: 1;
}
.flow-footer__grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(150px, 0.72fr) minmax(165px, 0.78fr) minmax(340px, 1.35fr);
  column-gap: 2.25rem;
  row-gap: 2.5rem;
  align-items: start;
}
.flow-footer h3 { font-size: 0.85rem; margin-bottom: 1rem; color: var(--signal); }
.flow-footer a { color: var(--ink-muted); font-size: 0.88rem; }
.flow-footer a:hover { color: var(--signal); }
.flow-footer li { margin-bottom: 0.5rem; }
.flow-footer__nav li {
  position: relative;
  padding-right: 1.15rem;
}
.flow-footer__nav li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--signal) 22%, transparent);
}
.flow-footer__contact-lead {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: -0.35rem 0 1rem;
}
.flow-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.flow-footer__contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--surface);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent);
}
.flow-footer__contact-icon svg {
  width: 18px;
  height: 18px;
}
.flow-footer__contact-icon.fa-icon {
  font-size: 1rem;
}
.flow-footer__contact-text {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.flow-footer__contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.flow-footer__contact-text a,
.flow-footer__contact-value {
  color: var(--signal);
  font-weight: 600;
}
.flow-footer__contact-value {
  display: block;
  white-space: nowrap;
}
@media (min-width: 1101px) {
  .flow-footer__contact-item--address {
    display: none;
  }
}
.flow-footer__brand-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.flow-footer__logo {
  display: flex;
  flex-shrink: 0;
}
.flow-footer__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}
.flow-footer__brand p { font-size: 0.88rem; color: var(--ink-muted); text-align: justify; margin-top: 0.75rem; max-width: 36ch; }
.flow-footer__enamad { margin-top: 1rem; }
.flow-footer__bar {
  max-width: 1320px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.flow-footer__version {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.flow-footer__credits {
  max-width: 1320px;
  margin: 0.75rem auto 0;
  padding: 0 0 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.flow-footer__credits a {
  color: var(--signal);
  font-weight: 600;
}
.flow-footer__credits a:hover { color: var(--gold); }

/* Inner pages */
.page-inner main { padding-top: var(--header-h); }

.inner-hero {
  padding: clamp(4rem, 10vh, 6rem) clamp(1.25rem, 5vw, 4rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.inner-hero--slant {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  background:
    linear-gradient(120deg, var(--surface) 40%, var(--void)),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.inner-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  max-width: 20ch;
}
.inner-hero p { color: var(--ink-muted); max-width: 50ch; margin-top: 1rem; }
.breadcrumb { font-size: 0.82rem; margin-top: 1.5rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb span { margin: 0 0.5rem; }

.inner-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 5vw, 4rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
}

/* Products page — horizontal bands */
.filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  padding: 0.5rem 1.15rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: var(--signal-glow);
}

.product-band {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.35s, transform 0.35s;
}
.product-band.is-hidden { display: none; }
.product-band__index {
  font-size: 2rem;
  font-weight: 800;
  color: var(--line);
  font-variant-numeric: tabular-nums;
}
.product-band__body h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.product-band__body p { font-size: 0.88rem; color: var(--ink-muted); }
.product-band__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.product-band__tags span {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
}

/* Services — vertical flow */
.service-pipeline {
  position: relative;
  padding-right: 2rem;
}
.service-pipeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--signal), var(--gold));
  opacity: 0.4;
}
.pipeline-item {
  position: relative;
  padding: 2rem 0 2rem 0;
  padding-right: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.pipeline-item::before {
  content: '';
  position: absolute;
  right: -5px;
  top: 2.25rem;
  width: 12px;
  height: 12px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--void);
}
.pipeline-item h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.pipeline-item p { color: var(--ink-muted); font-size: 0.95rem; max-width: 65ch; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.values-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.value-cell {
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.value-cell strong { display: block; color: var(--signal); margin-bottom: 0.25rem; }

.official-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.official-table th,
.official-table td {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.official-table th { color: var(--ink-soft); font-weight: 500; width: 35%; }

/* Forms */
.form-flow {
  max-width: 560px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-glow);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select { border-color: #b42318; }
.field-error { font-size: 0.78rem; color: #b42318; margin-top: 0.35rem; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.map-placeholder {
  min-height: 280px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.hours-block {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hours-block h3 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.hours-block li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  color: var(--ink-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .support-split,
  .contact-terminal,
  .business-aside,
  .device-panel,
  .about-grid,
  .form-layout { grid-template-columns: 1fr; }
  .timeline-steps { grid-template-columns: repeat(3, 1fr); }
  .floating-blocks { grid-template-columns: 1fr; }
  .flow-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .depth-panel--back { display: none; }
}

@media (max-width: 768px) {
  .flow-zones-nav,
  .flow-main-nav { display: none; }
  .btn-menu { display: flex; }
  .btn-flow--sm:not(.btn-menu) { display: none; }
  .flow-spine { opacity: 0.3; }
  .device-strip { flex-direction: column; }
  .device-tab { border-bottom: none; border-right: 3px solid transparent; text-align: right; }
  .device-tab.is-active { border-right-color: var(--signal); border-bottom: none; }
  .device-panel { grid-template-columns: 1fr; }
  .timeline-steps { grid-template-columns: 1fr; }
  .timeline-rail::before { display: none; }
  .values-matrix { grid-template-columns: 1fr 1fr; }
  .product-band { grid-template-columns: 1fr; gap: 0.75rem; }
  .flow-footer__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.75rem;
    row-gap: 2rem;
  }
  .flow-footer__brand,
  .flow-footer__grid > div:last-child {
    grid-column: 1 / -1;
  }
  .flow-footer__contact-value {
    white-space: normal;
  }
  .flow-footer__bar {
    flex-direction: column;
    font-size: 0.68rem;
    gap: 0.75rem;
  }
  .flow-footer__version {
    align-self: center;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .flow-spine__pulse { display: none; }
}
