/* ============================================================
   Machitron — Industrial Automation Landing Page
   Design system: dark charcoal + amber accent, blueprint grid
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e14;
  --bg-alt: #0e131c;
  --surface: #121826;
  --surface-2: #161e2e;
  --border: #232e42;
  --border-soft: rgba(122, 144, 184, 0.16);

  --accent: #ffab2e;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 171, 46, 0.12);
  --accent-glow: rgba(255, 171, 46, 0.35);

  --text: #e7ebf2;
  --text-muted: #9aa3b2;
  --text-dim: #6b7688;
  --cyan: #38bdf8;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);

  --nav-h: 72px;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #14100a;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #14100a;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.accent {
  color: var(--accent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow-line {
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14100a;
  box-shadow: 0 8px 24px rgba(255, 171, 46, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 171, 46, 0.4);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* WhatsApp button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4);
}

.btn.btn-whatsapp svg {
  fill: currentColor;
  stroke: none;
  width: 18px;
  height: 18px;
}

.btn.btn-whatsapp:hover svg {
  transform: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-dot {
  color: var(--accent);
}

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

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Language switcher */
.nav-lang .lang-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-lang .lang-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(122, 144, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 144, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow-a {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: rgba(255, 171, 46, 0.09);
}

.hero-glow-b {
  width: 460px;
  height: 460px;
  bottom: -180px;
  left: -140px;
  background: rgba(56, 189, 248, 0.07);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 60px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-sub {
  margin-top: 22px;
  max-width: 540px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.gear-system {
  width: min(440px, 100%);
  height: auto;
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.gear-main {
  transform-origin: 230px 230px;
  animation: gear-spin 22s linear infinite;
}

.gear-small {
  transform-origin: 349px 349px;
  animation: gear-spin-rev 14.7s linear infinite;
}

.housing-ring {
  transform-origin: 230px 230px;
  animation: gear-spin-rev 45s linear infinite;
}

@keyframes gear-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gear-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

.conv-dots {
  animation: conv-move 0.8s linear infinite;
}

@keyframes conv-move {
  to {
    transform: translateX(-16px);
  }
}

.led {
  animation: blink 2.2s ease-in-out infinite;
}

.led-2 {
  animation-delay: 0.73s;
}

.led-3 {
  animation-delay: 1.46s;
}

.pulse-ring {
  animation: pulse 2.6s ease-out infinite;
  transform-origin: 230px 230px;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.bp-chip {
  animation: floaty 6s ease-in-out infinite;
}

.bp-chip + .bp-chip {
  animation-delay: -2s;
}

.bp-chip + .bp-chip + .bp-chip {
  animation-delay: -4s;
}

.hero-card {
  position: absolute;
  background: rgba(18, 24, 38, 0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: floaty 5.5s ease-in-out infinite;
}

.hero-card-1 {
  left: -6px;
  top: 26%;
}

.hero-card-2 {
  right: -10px;
  bottom: 20%;
  animation-delay: -2.8s;
}

.hero-card-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-card-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 16px 16px 0 0;
  margin-bottom: -1px;
}

.stat {
  padding: 34px 28px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.stat:first-child {
  border-left: none;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.stat:hover::before {
  transform: scaleX(1);
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.4rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Cards (services) ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 171, 46, 0.45);
  box-shadow: var(--shadow-lg);
}

.card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 171, 46, 0.28);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.card:hover .card-icon {
  background: rgba(255, 171, 46, 0.2);
  transform: rotate(-6deg) scale(1.06);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link span {
  transition: transform 0.25s var(--ease);
}

.card-link:hover span {
  transform: translateX(4px);
}

/* ---------- Technology section ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.tech-list {
  margin: 28px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tech-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tech-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.tech-list strong {
  color: var(--text);
  display: block;
  font-weight: 600;
}

/* IIoT panel */
.tech-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.tech-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 171, 46, 0.5), transparent 40%, transparent 60%, rgba(56, 189, 248, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

.panel-foot {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Fault code list */
.fault-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fault-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.fault-item:hover {
  border-color: rgba(255, 171, 46, 0.4);
  transform: translateX(3px);
}

.fault-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 171, 46, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.fault-cause {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.fault-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #34d399;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .fault-item {
    grid-template-columns: 92px 1fr;
  }

  .fault-status {
    display: none;
  }
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s var(--ease);
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 171, 46, 0.4);
  box-shadow: var(--shadow-md);
}

.process-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(255, 171, 46, 0.35);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 18px;
}

.process-step h3 {
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Testimonials ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s var(--ease);
}

.quote:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 171, 46, 0.4);
  box-shadow: var(--shadow-md);
}

.quote-mark {
  width: 30px;
  height: 30px;
  fill: var(--accent);
  opacity: 0.85;
}

.quote blockquote {
  font-size: 1rem;
  color: var(--text);
  flex-grow: 1;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14100a;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quote figcaption strong {
  display: block;
  font-size: 0.92rem;
}

.quote figcaption small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 90% at 50% 50%, rgba(255, 171, 46, 0.1), transparent 70%),
    var(--bg-alt);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(122, 144, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 144, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.cta-inner p {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-list li:hover {
  color: var(--text);
}

.contact-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 171, 46, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.contact-list a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact-list svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.contact-note {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-note svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #34d399;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-note strong {
  color: var(--text);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 171, 46, 0.15);
}

.field.invalid input,
.field.invalid textarea {
  border-color: #f87171;
}

.field-error {
  color: #f87171;
  font-size: 0.78rem;
  display: none;
}

.field.invalid .field-error {
  display: block;
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.success {
  color: #34d399;
}

.form-status.error {
  color: #f87171;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-made {
  font-family: var(--font-mono);
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.4s ease-out infinite;
  transition: transform 0.25s var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wa-tip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  box-shadow: var(--shadow-md);
}

.wa-float:hover .wa-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .gear-system {
    width: min(360px, 88%);
  }

  .tech-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: none;
  }

  /* Nav collapses to the burger menu on tablets (many links now) */
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 14, 20, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 26px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 15px 4px;
    font-size: 1rem;
  }

  .nav-cta-item {
    padding-top: 16px;
  }

  .nav-cta-item .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.86rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .grid-4,
  .grid-3,
  .process,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-card-1 {
    left: 0;
  }

  .hero-card-2 {
    right: 0;
  }

  .contact-form {
    padding: 26px;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stat:nth-child(odd),
  .stat:nth-child(3) {
    border-left: none;
  }

  .stat + .stat {
    border-top: 1px solid var(--border);
  }
}

/* ---------- Inner pages (faults / stories) ---------- */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 24px;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(122, 144, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 144, 184, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}

.page-head .container {
  position: relative;
}

.page-head h1 {
  max-width: 760px;
}

.page-head .section-sub {
  max-width: 680px;
}

.breadcrumb {
  padding-top: calc(var(--nav-h) + 22px);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Search + chips */
.search-wrap {
  margin-bottom: 18px;
}

.search-box {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box::placeholder {
  color: var(--text-dim);
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 171, 46, 0.15);
}

.group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--accent);
  border-color: rgba(255, 171, 46, 0.45);
}

.chip.is-active {
  color: #14100a;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 500;
}

.fault-count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.fault-grid .card.hidden {
  display: none;
}

.fault-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.fault-group-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}

.fault-grid .card h3 {
  margin-bottom: 10px;
}

.fault-grid .card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.fault-grid .card .card-link {
  margin-top: 14px;
}

.cta-box {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}

.cta-box h3 {
  font-size: 1.3rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 520px;
  font-size: 0.95rem;
}

/* Detail page */
.detail {
  padding-top: 40px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: start;
}

.detail-hero {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-md);
}

.detail-code-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.detail-code {
  font-size: 1.35rem;
  padding: 14px 20px;
  border-radius: 12px;
}

.detail-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
}

.detail-hero .eyebrow {
  margin-bottom: 8px;
}

.detail-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.detail-section {
  margin-bottom: 34px;
}

.detail-section h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.detail-section > p {
  color: var(--text-muted);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 171, 46, 0.5);
}

.check-list.remedy li::before {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.5);
}

.check-list li::after {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 3px;
  font-size: 0.62rem;
  color: var(--accent);
}

.check-list.remedy li::after {
  color: #34d399;
}

.detail-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.detail-side .cta-box {
  margin-top: 0;
  padding: 24px;
}

.related-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.related-box h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.related-box ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-box a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.related-box a:hover {
  color: var(--accent);
}

/* Story cards */
.story-card .story-summary {
  font-size: 0.9rem;
}

.story-work,
.story-outcome {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.story-work h4,
.story-outcome h4 {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 11px;
}

@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 560px) {
  .detail-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ---------- Featured service card (core service) ---------- */
.card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow-md);
  overflow: visible;
}

.card-featured:hover,
.card.card-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow-lg);
}

.card-tag {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14100a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(255, 171, 46, 0.35);
}

/* ---------- Why component-level (comparison) ---------- */
.cmp-section .section-head {
  margin-bottom: 3rem;
}

.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cmp-card {
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cmp-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.cmp-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  flex-grow: 1;
}

.cmp-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cmp-x,
.cmp-check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 2px;
}

.cmp-x {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.cmp-check {
  background: var(--accent-soft);
  color: var(--accent);
}

.cmp-other {
  background: var(--surface-2);
  border: 1px solid var(--border);
  opacity: 0.9;
}

.cmp-ours {
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow-md);
}

.cmp-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cmp-other .cmp-tag {
  background: var(--border-soft);
  color: var(--text-muted);
}

.cmp-ours .cmp-tag {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14100a;
}

.cmp-ours .btn {
  align-self: flex-start;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .cmp-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
