/* ============================================================
   MLPipes LLC — corporate site
   Dark-theme only · electric cyan/blue · modern tech
   ============================================================ */

:root {
  --bg:        #0A0E14;
  --bg-2:      #0D131D;
  --bg-3:      #111A27;
  --card:      rgba(255, 255, 255, 0.025);
  --card-2:    rgba(255, 255, 255, 0.04);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #E6EDF3;
  --muted:     #8B98A8;
  --faint:     #5B6675;

  --cyan:      #22D3EE;
  --blue:      #3B82F6;
  --violet:    #A855F7;
  --amber:     #FF9500;
  --accent:    #38BDF8;
  --grad:      linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,0.16) 0%, rgba(59,130,246,0.16) 100%);

  --glow-cyan:   rgba(34, 211, 238, 0.35);
  --glow-blue:   rgba(59, 130, 246, 0.30);
  --glow-violet: rgba(168, 85, 247, 0.28);
  --glow-amber:  rgba(255, 149, 0, 0.22);

  --radius:    18px;
  --radius-lg: 28px;
  --maxw:      1180px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', var(--font-body);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(34, 211, 238, 0.25); color: #fff; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--grad);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto 64px; text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #04121e; font-weight: 600;
  box-shadow: 0 8px 30px -8px var(--glow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow-cyan); }
.btn-ghost { background: var(--card-2); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(56,189,248,0.08); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); position: relative; flex-shrink: 0;
  box-shadow: 0 0 22px -4px var(--glow-cyan);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px 7px auto 7px; height: 4px; border-radius: 2px;
  background: rgba(4,18,30,0.85); box-shadow: 0 7px 0 rgba(4,18,30,0.85), 0 14px 0 rgba(4,18,30,0.55);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Backgrounds / glow ---------- */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 120px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0.30; z-index: 0; pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 28% 42%, rgba(10,14,20,0.55), transparent 70%),
              linear-gradient(90deg, rgba(10,14,20,0.6) 0%, transparent 55%);
}
.hero .orb-1 { width: 520px; height: 520px; background: var(--glow-cyan); top: -120px; left: -80px; }
.hero .orb-2 { width: 560px; height: 560px; background: var(--glow-blue); top: -60px; right: -120px; opacity: 0.4; }
.hero .orb-violet { width: 460px; height: 460px; background: var(--glow-violet); bottom: -180px; left: 20%; opacity: 0.5; }
.hero .orb-amber { width: 360px; height: 360px; background: var(--glow-amber); top: 30%; right: 8%; opacity: 0.45; }
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.7rem); margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.32rem); color: var(--muted); max-width: 640px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.hero-badge svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.trust-item { text-align: center; }
.trust-item .num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; }
.trust-item .lbl { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar {
  position: relative; padding: 32px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--card-2); }
.pillar-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 20px;
}
.pillar-icon svg { width: 24px; height: 24px; color: var(--accent); }
.pillar-icon.ic-cyan   { background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(34,211,238,0.05)); }
.pillar-icon.ic-cyan svg   { color: var(--cyan); }
.pillar-icon.ic-blue   { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.05)); }
.pillar-icon.ic-blue svg   { color: #60A5FA; }
.pillar-icon.ic-violet { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(168,85,247,0.05)); }
.pillar-icon.ic-violet svg { color: var(--violet); }
.pillar-icon.ic-amber  { background: linear-gradient(135deg, rgba(255,149,0,0.2), rgba(255,149,0,0.05)); }
.pillar-icon.ic-amber svg  { color: var(--amber); }
.pillar h3 { font-size: 1.22rem; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Principles ---------- */
.principles-wrap { position: relative; }
.principles-wrap .orb-3 { width: 480px; height: 480px; background: var(--glow-violet); bottom: -160px; left: 40%; opacity: 0.4; }
.principles-wrap .orb-4 { width: 360px; height: 360px; background: var(--glow-cyan); top: -120px; right: -60px; opacity: 0.25; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; position: relative; z-index: 2; }
.principle {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  transition: border-color .3s ease, background .3s ease;
}
.principle:hover { border-color: var(--border-2); background: var(--card-2); }
.principle .pnum {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--accent);
}
.principle h3 { font-size: 1.12rem; margin-bottom: 7px; }
.principle p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Products ---------- */
.products { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 40px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.product + .product { margin-top: 28px; }
.product-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.product-tag.live { background: rgba(34,211,238,0.12); color: var(--cyan); border: 1px solid rgba(34,211,238,0.3); }
.product-tag.soon { background: rgba(139,152,168,0.1); color: var(--muted); border: 1px solid var(--border-2); }
.product-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.product-titlerow { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; }
.product-icon { width: 56px; height: 56px; border-radius: 15px; border: 1px solid var(--border-2); box-shadow: 0 8px 26px -8px rgba(0,0,0,0.7); flex-shrink: 0; }
.product h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 14px; }
.product-titlerow h3 { margin-bottom: 0; }
.product p { color: var(--muted); margin-bottom: 22px; }
.product-feats { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 11px; }
.product-feats li { display: flex; align-items: flex-start; gap: 11px; color: var(--text); font-size: 0.97rem; }
.product-feats svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.product-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; font-size: 0.96rem; }
.product-link:hover { gap: 11px; transition: gap .2s ease; }

/* product media — transparent 3D renders */
.product-media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.product-media .orb { width: 360px; height: 360px; background: var(--glow-cyan); opacity: 0.32; }
.render-stack { position: relative; width: 100%; display: grid; place-items: center; }
.render { filter: drop-shadow(0 28px 50px rgba(0,0,0,0.6)); }
.render.main { width: 116%; max-width: 600px; position: relative; z-index: 2; animation: floaty 7s ease-in-out infinite; }
.render.back { position: absolute; width: 88%; left: -14%; top: -10%; z-index: 1; opacity: 0.55; animation: floaty 7s ease-in-out infinite 0.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .render.main, .render.back { animation: none; } }

/* facility / soon visual */
.facility-visual {
  position: relative; z-index: 2; width: 100%; max-width: 380px; aspect-ratio: 4/3; border-radius: var(--radius);
  border: 1px solid var(--border-2); background:
    radial-gradient(circle at 30% 20%, rgba(34,211,238,0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(59,130,246,0.18), transparent 55%),
    var(--bg-3);
  display: grid; place-items: center; overflow: hidden;
}
.facility-visual .fv-grid { position: absolute; inset: 0; background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.5; }
.facility-visual .fv-icon { position: relative; width: 86px; height: 86px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 40px -6px var(--glow-cyan); }
.facility-visual .fv-icon svg { width: 42px; height: 42px; color: #04121e; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  position: relative; z-index: 2; text-align: center; padding: 72px 40px; border-radius: var(--radius-lg);
  background: var(--grad-soft); border: 1px solid var(--border-2); overflow: hidden;
}
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.cta-card p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-card .orb { width: 420px; height: 420px; background: var(--glow-blue); top: -180px; left: 50%; transform: translateX(-50%); opacity: 0.4; }
.cta-card .orb-amber-cta { width: 300px; height: 300px; background: var(--glow-amber); top: auto; bottom: -150px; left: auto; right: 8%; transform: none; opacity: 0.5; }
.cta-card .orb-violet-cta { width: 280px; height: 280px; background: var(--glow-violet); top: auto; bottom: -120px; left: 6%; right: auto; transform: none; opacity: 0.45; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.94rem; max-width: 280px; margin-bottom: 14px; }
.footer-brand .addr { color: var(--faint); font-size: 0.84rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.86rem; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 36px; }
  .product-media { min-height: 320px; order: -1; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,14,20,0.96); backdrop-filter: blur(14px); padding: 22px 24px; gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .section { padding: 80px 0; }
  .hero { padding: 150px 0 90px; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
