/* Shared base styles across all pages of the GTM Pipes marketing site. */

:root {
  --ink: #0B0F1A;
  --deep-navy: #0D2847;
  --flow-teal: #00D4AA;
  --current-blue: #3B82F6;
  --warning: #F59E0B;
  --mist: #E0FFF5;
  --mist-80: rgba(224, 255, 245, 0.80);
  --mist-60: rgba(224, 255, 245, 0.60);
  --mist-40: rgba(224, 255, 245, 0.40);
  --mist-24: rgba(224, 255, 245, 0.24);
  --mist-16: rgba(224, 255, 245, 0.16);
  --mist-08: rgba(224, 255, 245, 0.08);
  --mist-04: rgba(224, 255, 245, 0.04);
  --grad: linear-gradient(135deg, var(--flow-teal) 0%, var(--current-blue) 100%);
  --grad-90: linear-gradient(90deg, var(--flow-teal) 0%, var(--current-blue) 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  background: var(--ink);
  color: var(--mist);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flow-teal);
  margin-bottom: 20px;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mist);
}
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 24px; line-height: 1.3; font-weight: 600; }
h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-60);
  margin-bottom: 10px;
}

p { font-size: 17px; line-height: 1.65; color: var(--mist-80); max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms var(--ease);
  border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--flow-teal); color: var(--ink); }
.btn-primary:hover {
  background: #1ee0ba;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--mist-24);
}
.btn-secondary:hover {
  border-color: var(--mist-60);
  background: var(--mist-04);
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--flow-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: gap 200ms var(--ease);
}
.btn-arrow:hover { gap: 12px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) {
  .container { padding: 0 20px; }
}
section { position: relative; }

/* Visual placeholder used in a couple of sections */
.placeholder {
  background: var(--mist-04);
  border: 1.5px dashed var(--mist-24);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: var(--mist-60);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  height: 100%;
}
.placeholder svg { color: var(--mist-40); margin-bottom: 12px; }
.placeholder-label { font-weight: 500; color: var(--mist-80); margin-bottom: 6px; font-size: 13px; }
.placeholder-dim { font-size: 11px; color: var(--mist-40); line-height: 1.5; max-width: 36ch; text-transform: none; letter-spacing: 0.02em; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(11, 15, 26, 0.7);
  border-bottom: 1px solid var(--mist-08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo-mark { width: 32px; height: 32px; }
.logo-text-gtm { color: var(--mist); }
.logo-text-pipes {
  background: var(--grad-90);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--mist-80);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--mist); }
.nav-links a.active { color: var(--mist); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--mist-16);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.nav-hamburger:hover { border-color: var(--mist-40); background: var(--mist-04); }
.nav-hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--mist);
  border-radius: 1px;
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--mist-08);
  background: rgba(11, 15, 26, 0.96);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); }
.mobile-menu[hidden] { display: none; }
.mobile-menu-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mobile-menu-links a {
  display: block;
  padding: 14px 4px;
  color: var(--mist-80);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--mist-08);
  transition: color 200ms var(--ease);
}
.mobile-menu-links li:last-child a { border-bottom: 0; }
.mobile-menu-links a:hover,
.mobile-menu-links a.active { color: var(--mist); }
.mobile-menu-cta {
  margin-top: 18px;
  justify-content: center;
  width: 100%;
}
body.mobile-menu-open { overflow: hidden; }

@media (max-width: 800px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-hamburger { display: inline-flex; }
}
@media (min-width: 801px) {
  .mobile-menu { display: none !important; }
}

/* HERO (shared baseline — pages can override) */
.hero { position: relative; overflow: hidden; padding: 100px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; opacity: 0.4; }
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(0, 212, 170, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(59, 130, 246, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--mist-04) 1px, transparent 1px),
    linear-gradient(90deg, var(--mist-04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--mist-60);
}
.breadcrumb a { color: var(--mist-60); text-decoration: none; transition: color 200ms var(--ease); }
.breadcrumb a:hover { color: var(--mist); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--flow-teal); }
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--mist-80);
  max-width: 60ch;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* FINAL CTA — shared */
.final {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--mist-08);
}
.final-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 50% 100%, rgba(0, 212, 170, 0.12), transparent 70%),
    radial-gradient(ellipse 30% 50% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.final h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--mist) 0%, rgba(224, 255, 245, 0.65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.final p { font-size: 18px; margin: 0 auto 36px; color: var(--mist-80); }
.final-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER — shared */
footer {
  border-top: 1px solid var(--mist-08);
  padding: 48px 0;
  color: var(--mist-60);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-mark { display: flex; align-items: center; opacity: 0.7; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--mist-60); text-decoration: none; transition: color 200ms var(--ease); }
.footer-links a:hover { color: var(--mist-80); }

/* Shared animations */
@media (prefers-reduced-motion: no-preference) {
  .flow-curve { animation: drift 8s ease-in-out infinite alternate; }
  .flow-curve-2 { animation-delay: -2s; }
  .flow-curve-3 { animation-delay: -4s; }
}
@keyframes drift {
  from { transform: translateX(-20px); }
  to { transform: translateX(20px); }
}

.particle-path {
  stroke-dasharray: 4 200;
  animation: flow 6s linear infinite;
}
.particle-path-2 { animation-delay: -2s; animation-duration: 7s; }
.particle-path-3 { animation-delay: -4s; animation-duration: 8s; }
@keyframes flow {
  to { stroke-dashoffset: -1000; }
}

.pulse-dot { animation: pulse 2.4s ease-in-out infinite; }
.pulse-dot-2 { animation-delay: -0.8s; }
.pulse-dot-3 { animation-delay: -1.6s; }
@keyframes pulse {
  0%, 100% { opacity: 0.3; r: 3; }
  50% { opacity: 1; r: 5; }
}

.flow-line {
  stroke-dasharray: 4 6;
  animation: flow-line 8s linear infinite;
}
@keyframes flow-line {
  to { stroke-dashoffset: -100; }
}
