/* ===========================
   PIPE.AZ — Heartland Industries
   =========================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --surface: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --text-muted: #6b6b6b;
  --blue: #0e87cc;
  --blue-2: #1aa3ee;
  --orange: #ff5c00;
  --orange-2: #ff7a26;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-2); }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.header.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo img { height: 56px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--blue);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 0; cursor: pointer;
  padding: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(14, 135, 204, 0.18), transparent 60%),
    radial-gradient(700px 400px at 10% 80%, rgba(255, 92, 0, 0.10), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0e0e10 100%);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: flex-start;
  max-width: 980px;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 8px 14px;
  border: 1px solid rgba(14, 135, 204, 0.3);
  border-radius: 999px;
  background: rgba(14, 135, 204, 0.08);
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 0 36px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 30px -10px rgba(14, 135, 204, 0.6);
}
.btn--primary:hover {
  background: var(--blue-2);
  color: #fff;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 110px 0;
  position: relative;
}
.section--dark {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head { margin-bottom: 56px; max-width: 760px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.03em;
  margin: 0;
}
.section__sub {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 17px;
}

/* ===========================
   ABOUT
   =========================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.about__lead {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}
.about__text {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0;
}
.about__text p { margin: 0 0 14px; }
.about__text p:last-child { margin-bottom: 0; }
.about__lead strong, .about__text strong { color: var(--text); font-weight: 700; }

/* ===========================
   MISSION + WHY
   =========================== */
.mission__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.mission__text {
  font-size: 18px;
  color: var(--text-dim);
  margin-top: 16px;
}
.why { display: flex; flex-direction: column; gap: 18px; }
.why__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.why__item:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 135, 204, 0.5);
  background: rgba(14, 135, 204, 0.04);
}
.why__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.05em;
  padding-top: 4px;
}
.why__item h3 {
  font-size: 17px;
  margin-bottom: 4px;
  font-weight: 700;
}
.why__item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===========================
   PRODUCTS
   =========================== */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.product:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); }
.product__media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.product:hover .product__media img { transform: scale(1.05); }
.product__media--blue {
  background: #0a1820;
}
.product__media--orange {
  background: #1a0d05;
}
.product__body { padding: 32px; }
.product__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.product__title {
  font-size: 26px;
  margin-bottom: 14px;
}
.product__desc {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 0 24px;
}
.spec { margin-bottom: 18px; }
.spec:last-child { margin-bottom: 0; }
.spec__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.spec__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spec__chips span {
  font-size: 13px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ===========================
   APPLICATIONS
   =========================== */
.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.app {
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.app:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 0, 0.4);
  background: linear-gradient(180deg, rgba(255,92,0,0.04), transparent);
}
.app__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(14, 135, 204, 0.12);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.app__icon svg { width: 22px; height: 22px; }
.app:hover .app__icon { background: rgba(255, 92, 0, 0.15); color: var(--orange); }
.app h3 { font-size: 16px; margin-bottom: 6px; font-weight: 700; }
.app p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ===========================
   CERTIFICATES
   =========================== */
.certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cert {
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.cert:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 135, 204, 0.5);
  color: inherit;
}
.cert__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease);
}
.cert:hover .cert__media img { transform: scale(1.04); }
.cert__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cert__code {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(14, 135, 204, 0.1);
  border: 1px solid rgba(14, 135, 204, 0.25);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  align-self: flex-start;
  font-variant-numeric: tabular-nums;
}
.cert__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cert__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex: 1;
}
.cert__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.cert:hover .cert__link { color: var(--blue-2); }

/* ===========================
   CTA STRIP
   =========================== */
.cta-strip {
  background: linear-gradient(135deg, #0a4f7a 0%, #0e87cc 50%, #1aa3ee 100%);
  padding: 60px 0;
}
.cta-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  color: #fff; margin: 0;
  max-width: 700px;
}
.cta-strip .btn--primary {
  background: #0a0a0a; color: #fff;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.5);
}
.cta-strip .btn--primary:hover { background: #fff; color: #0a0a0a; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #060606;
  padding: 70px 0 0;
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__logo { height: 42px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: 14px; color: var(--text-muted); margin: 0; max-width: 280px; }
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.footer__col p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.footer__col a { color: var(--text-dim); }
.footer__col a:hover { color: var(--text); }
.footer__nav li { margin-bottom: 8px; }
.footer__nav a { font-size: 14px; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap; gap: 12px;
}

/* ===========================
   MOBILE CALL FAB
   =========================== */
.call-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c4a 100%);
  color: #fff;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0,0,0,0.35);
  z-index: 60;
  text-decoration: none;
  animation: fabWobble 1.6s ease-in-out infinite;
  transform-origin: center;
}
.call-fab:hover, .call-fab:active { color: #fff; }
.call-fab__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-fab__icon svg { width: 26px; height: 26px; }
.call-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: fabPulse 1.8s ease-out infinite;
  z-index: -1;
}

@keyframes fabWobble {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  45% { transform: rotate(-8deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab { animation: none; }
  .call-fab__pulse { animation: none; opacity: 0; }
}

/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s var(--ease);
    z-index: 49;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a { font-size: 17px; width: 100%; }
  .burger { display: flex; }

  .about__grid,
  .mission__split,
  .products { grid-template-columns: 1fr; gap: 36px; }

  .apps { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .call-fab { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 80px 0; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .apps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; }
  .product__body { padding: 24px; }
  .cta-strip__inner { text-align: center; justify-content: center; }
  .cta-strip h2 { width: 100%; }
}
