:root {
  --bg: #071014;
  --bg-2: #0c1b23;
  --panel: rgba(15, 30, 38, 0.9);
  --panel-2: rgba(21, 43, 54, 0.78);
  --text: #f4f7f8;
  --muted: #b4c2c8;
  --muted-2: #8fa0a8;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #ff8a26;
  --accent-2: #35d0c7;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #05090b 0%, var(--bg) 46%, var(--bg-2) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.24;
}

.bg-orb-one {
  top: -110px;
  left: -80px;
  background: var(--accent-2);
}

.bg-orb-two {
  right: -100px;
  top: 80px;
  background: var(--accent);
}

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(35deg, transparent 47%, rgba(255,255,255,.2) 48%, transparent 49%);
  background-size: 54px 54px, 54px 54px, 96px 96px;
}

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

.section-space {
  padding: 92px 0;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.header.is-scrolled {
  background: rgba(5, 10, 13, .88);
  border-color: var(--line);
  box-shadow: 0 18px 60px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 84px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #071014;
  background: linear-gradient(135deg, var(--accent), #ffd08d);
  box-shadow: 0 10px 34px rgba(255,138,38,.28);
}

.brand-name {
  font-size: 1rem;
}

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

.menu a {
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.menu .menu-contact {
  color: #071014;
  background: var(--accent);
}

.menu .menu-contact:hover,
.menu .menu-contact.active {
  color: #071014;
  background: #ffb15e;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 99px;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-button.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
  opacity: 0;
}

.menu-button.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 128px 0 70px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(760px, calc(100% - 50px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.9rem);
  letter-spacing: -.06em;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.04em;
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #081015;
  background: linear-gradient(135deg, var(--accent), #ffc177);
  box-shadow: 0 18px 40px rgba(255,138,38,.22);
}

.btn-primary:hover {
  box-shadow: 0 22px 52px rgba(255,138,38,.32);
}

.btn-outline {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.06);
}

.btn-outline:hover {
  border-color: rgba(53,208,199,.55);
  background: rgba(53,208,199,.08);
}

.btn-full {
  width: 100%;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span,
.panel-tags span {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  font-size: .92rem;
}

.hero-panel {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, rgba(255,255,255,.12), transparent 28%),
    linear-gradient(160deg, rgba(18,38,49,.95), rgba(6,15,20,.9));
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 24px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 80% 20%, rgba(255,138,38,.22), transparent 36%), radial-gradient(circle at 20% 80%, rgba(53,208,199,.2), transparent 40%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image: repeating-linear-gradient(120deg, transparent 0 18px, rgba(255,255,255,.45) 18px 19px);
  pointer-events: none;
}

.panel-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .12em;
}

.status-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 24px var(--accent-2);
}

.hydraulic-visual {
  position: relative;
  z-index: 2;
  height: 360px;
  display: grid;
  place-items: center;
}

.gauge {
  position: relative;
  width: min(260px, 65vw);
  height: min(260px, 65vw);
  border: 12px solid rgba(255,255,255,.12);
  border-top-color: rgba(255,138,38,.85);
  border-right-color: rgba(53,208,199,.75);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: inset 0 0 34px rgba(0,0,0,.34), 0 24px 70px rgba(0,0,0,.28);
}

.gauge-line {
  position: absolute;
  width: 4px;
  height: 34px;
  left: 50%;
  top: 18px;
  transform-origin: 50% 111px;
  background: rgba(255,255,255,.42);
  border-radius: 99px;
}

.line-a { transform: translateX(-50%) rotate(-45deg); }
.line-b { transform: translateX(-50%) rotate(0deg); }
.line-c { transform: translateX(-50%) rotate(45deg); }

.needle {
  position: absolute;
  width: 9px;
  height: 94px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -92%) rotate(38deg);
  transform-origin: 50% 92%;
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 99px;
  animation: needleMove 3.8s ease-in-out infinite alternate;
}

.needle-center {
  position: absolute;
  width: 34px;
  height: 34px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 30px rgba(255,255,255,.28);
}

@keyframes needleMove {
  from { transform: translate(-50%, -92%) rotate(24deg); }
  to { transform: translate(-50%, -92%) rotate(58deg); }
}

.piston {
  position: absolute;
  right: 0;
  bottom: 44px;
  width: 70%;
  max-width: 340px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 25px rgba(255,255,255,.06);
}

.piston span:first-child {
  position: absolute;
  left: -80px;
  top: 19px;
  width: 120px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), rgba(255,255,255,.45));
}

.piston span:last-child {
  position: absolute;
  right: 20px;
  top: 13px;
  width: 70px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
}

.panel-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.intro-card,
.contact-card {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 38px;
  align-items: center;
  padding: 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-card p:last-child,
.section-heading p,
.contact-card p {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p:last-child {
  margin-top: 14px;
  font-size: 1.05rem;
}

.section-left {
  text-align: left;
  margin: 0;
}

.services-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.work-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel), rgba(7,16,20,.78));
  box-shadow: 0 18px 54px rgba(0,0,0,.2);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-card::before,
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,138,38,.2), transparent 34%), radial-gradient(circle at 10% 90%, rgba(53,208,199,.16), transparent 42%);
  transition: opacity .25s ease;
}

.service-card:hover,
.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(53,208,199,.36);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.service-card:hover::before,
.work-card:hover::before {
  opacity: 1;
}

.card-index {
  position: absolute;
  top: 22px;
  right: 22px;
  color: rgba(255,255,255,.16);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.icon-box {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}

.icon-box svg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.service-card p,
.work-card h3,
.work-card p,
.work-line {
  position: relative;
  z-index: 2;
}

.service-card p,
.work-card p {
  color: var(--muted);
  margin-top: 14px;
}

.sectors {
  position: relative;
}

.sectors::before {
  content: "";
  position: absolute;
  inset: 40px 0;
  background: linear-gradient(90deg, rgba(255,138,38,.08), rgba(53,208,199,.08));
  border-block: 1px solid var(--line);
  transform: skewY(-2deg);
  z-index: -1;
}

.sectors-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.sector-list {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(4,10,13,.45);
  backdrop-filter: blur(12px);
}

.sector-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255,255,255,.05);
}

.sector-item span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255,138,38,.7);
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  min-height: 260px;
}

.work-line {
  display: block;
  width: 76px;
  height: 5px;
  border-radius: 999px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.contact-section {
  padding-top: 40px;
}

.contact-card {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,138,38,.18), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,.22);
  border: 1px solid var(--line);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.contact-row span {
  color: var(--muted-2);
  font-size: .9rem;
}

.contact-row a,
.contact-row strong {
  color: var(--text);
  font-size: 1.1rem;
}

.floating-call {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061015;
  background: linear-gradient(135deg, var(--accent), #ffc177);
  box-shadow: 0 20px 42px rgba(255,138,38,.34);
  font-size: 1.5rem;
  font-weight: 900;
  transition: transform .2s ease;
}

.floating-call:hover {
  transform: translateY(-4px) scale(1.03);
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.22);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-grid strong {
  color: var(--text);
  letter-spacing: .08em;
}

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

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

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

@media (max-width: 1080px) {
  .hero-grid,
  .intro-card,
  .sectors-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .hero-panel {
    min-height: 470px;
  }
}

@media (max-width: 760px) {
  .container,
  .nav {
    width: min(100% - 28px, var(--max));
  }

  .section-space {
    padding: 70px 0;
  }

  .nav {
    min-height: 74px;
  }

  .menu-button {
    display: block;
  }

  .menu {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(5, 10, 13, .96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

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

  .menu a {
    text-align: center;
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 4.1rem);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    min-height: 400px;
    padding: 18px;
  }

  .hydraulic-visual {
    height: 270px;
  }

  .gauge {
    width: 205px;
    height: 205px;
  }

  .gauge-line {
    transform-origin: 50% 84px;
  }

  .piston {
    width: 78%;
    height: 44px;
  }

  .piston span:first-child {
    left: -45px;
    width: 90px;
    top: 15px;
  }

  .piston span:last-child {
    height: 22px;
    top: 10px;
  }

  .intro-card,
  .contact-card {
    padding: 24px;
    border-radius: 26px;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .work-card {
    min-height: auto;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-call {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}
