/* Pipe Connect landing */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e14;
  --bg2: #121820;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --cyan: #3db8ff;
  --gold: #ffc850;
  --teal: #5eead4;
  --text: #eef4ff;
  --muted: #8a9bb5;
  --font: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(10,14,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 700;
}
.logo-mark { display: block; width: 28px; height: 28px; object-fit: contain; }
.nav-links {
  display: flex; gap: 28px; list-style: none; margin-left: auto;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; text-decoration: none;
  border-radius: 10px; border: none; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #2a8fd4);
  color: #041018;
  box-shadow: 0 0 32px rgba(61,184,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(61,184,255,0.5); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.btn-nav {
  padding: 8px 18px; font-size: 0.82rem;
  background: rgba(61,184,255,0.12); color: var(--cyan);
  border: 1px solid rgba(61,184,255,0.35);
}
.btn-xl { padding: 14px 28px; font-size: 0.95rem; }
.btn-2xl { padding: 18px 36px; font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; padding: 120px 0 80px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.5; pointer-events: none;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-glow.g1 { width: 500px; height: 500px; background: rgba(61,184,255,0.12); top: -100px; right: -80px; }
.hero-glow.g2 { width: 400px; height: 400px; background: rgba(255,200,80,0.08); bottom: 10%; left: -100px; }

.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(61,184,255,0.1); border: 1px solid rgba(61,184,255,0.25);
  font-size: 0.78rem; color: var(--cyan); margin-bottom: 24px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s 0.1s, transform 0.6s 0.1s;
}
.hero-desc {
  font-size: 1.08rem; color: var(--muted); max-width: 520px; margin-bottom: 32px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s 0.2s, transform 0.6s 0.2s;
}
.hero-desc strong { font-weight: 600; }
.hero-desc strong.accent-blue { color: var(--cyan); }
.hero-desc strong.accent-gold { color: var(--gold); }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s 0.3s, transform 0.6s 0.3s;
}
.hero-stats {
  display: flex; align-items: center; gap: 20px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s 0.4s, transform 0.6s 0.4s;
}
.stat-n { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat-l { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-sep { width: 1px; height: 32px; background: var(--border); }

[data-reveal].revealed, .hero-badge.revealed, .hero-title.revealed, .hero-desc.revealed,
.hero-actions.revealed, .hero-stats.revealed {
  opacity: 1; transform: translateY(0);
}
.hero-badge.revealed, .hero-title.revealed, .hero-desc.revealed,
.hero-actions.revealed, .hero-stats.revealed { /* set via JS adding revealed to hero children */ }

/* Strip */
.strip {
  overflow: hidden; border-y: 1px solid var(--border);
  background: var(--bg2); padding: 14px 0;
}
.strip-track {
  display: flex; gap: 32px; width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
}
.strip-track .sep { color: var(--cyan); opacity: 0.5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg2); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.eyebrow {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cyan); margin-bottom: 10px; font-weight: 600;
}
.sub { color: var(--muted); max-width: 480px; margin: 0 auto; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; transition: border-color 0.25s, transform 0.25s;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.25s;
}
.card.revealed { opacity: 1; transform: translateY(0); }
.card:hover { border-color: rgba(61,184,255,0.3); transform: translateY(-4px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--muted); }

/* Play section */
.play-section { background: var(--bg2); }
.play-wrap { max-width: 820px; margin: 0 auto; }
.play-ring {
  position: relative; border-radius: 14px; padding: 2px;
  background: linear-gradient(135deg, rgba(61,184,255,0.5), rgba(255,200,80,0.35), rgba(61,184,255,0.5));
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.play-frame {
  display: block; width: 100%; min-height: 520px; aspect-ratio: 4/3; border: none;
  border-radius: 12px; background: #141c28;
}
.play-overlay {
  position: absolute; inset: 2px; border-radius: 12px;
  background: rgba(0,0,0,0.55); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; z-index: 2; transition: opacity 0.3s;
}
.play-overlay.hidden { opacity: 0; pointer-events: none; }
.play-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(61,184,255,0.2); border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--cyan);
}
.play-label { font-weight: 700; }
.play-hint { font-size: 0.8rem; color: var(--muted); }
.fs-btn {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,0,0,0.6); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
}
.play-note { text-align: center; margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.play-note a { color: var(--cyan); }

/* How */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; padding-left: 36px; position: relative;
  margin-bottom: 18px; color: var(--muted);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}
.steps.revealed li, .steps li.revealed { opacity: 1; transform: none; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(61,184,255,0.15); color: var(--cyan);
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.legend h3 { margin-bottom: 16px; }
.legend-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 0.9rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; }
.dot.blue { background: #50b4ff; }
.dot.gold { background: #ffc850; }
.dot.flow { background: #3778b4; }
.dot.idle { background: #324155; }

/* Download */
.download-box {
  text-align: center; max-width: 560px; margin: 0 auto;
  padding: 48px 32px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(61,184,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(61,184,255,0.2);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.download-box.revealed { opacity: 1; transform: none; }
.download-box h2 { font-size: 1.8rem; margin-bottom: 12px; }
.download-box p { color: var(--muted); margin-bottom: 20px; }
.download-meta {
  list-style: none; display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin-bottom: 28px; font-size: 0.85rem; color: var(--muted);
}
.fine { margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.fine a { color: var(--cyan); }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 32px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.footer-copy { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--cyan); }

.footer-links a:hover { color: var(--cyan); }

/* Legal & contact pages */
.page-doc { padding: 120px 0 64px; min-height: 100vh; }
.doc-wrap { max-width: 760px; }
.contact-wrap { max-width: 960px; }
.doc-head { margin-bottom: 32px; }
.doc-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.doc-meta { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.doc-meta a { color: var(--cyan); }
.doc-intro {
  color: var(--muted); font-size: 1rem; line-height: 1.75;
  margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.doc-section { margin-bottom: 48px; }
.doc-section h2 {
  font-size: 1.35rem; font-weight: 700; margin-bottom: 20px;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.doc-section h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 10px; color: var(--text); }
.doc-section p, .doc-section li {
  color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 12px;
}
.doc-section ul { margin: 0 0 16px 1.25rem; }
.doc-section a { color: var(--cyan); }
.doc-back { margin-top: 32px; font-size: 0.9rem; }
.doc-back a { color: var(--cyan); text-decoration: none; }
.doc-back a:hover { text-decoration: underline; }

.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start;
}
.contact-form { padding: 32px; opacity: 1; transform: none; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label {
  display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; font-family: var(--font); font-size: 0.95rem;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(0,0,0,0.25); color: var(--text);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: rgba(61,184,255,0.5);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { margin-top: 16px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.form-success {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: rgba(61,184,255,0.1); border: 1px solid rgba(61,184,255,0.25);
  font-size: 0.88rem; color: var(--text);
}
.form-success.hidden { display: none; }
.form-success a { color: var(--cyan); }

.contact-aside { padding: 28px; opacity: 1; transform: none; }
.contact-aside h2 { font-size: 1.15rem; margin-bottom: 8px; }
.contact-aside h3 { font-size: 0.95rem; margin: 16px 0 10px; }
.contact-aside p, .contact-aside li { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.contact-aside ul { margin-left: 1.1rem; }
.contact-aside a { color: var(--cyan); }
.contact-email { font-size: 1.05rem; margin: 16px 0; }
.contact-email a { font-weight: 600; }
.contact-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-doc { padding-top: 100px; }
}
