/* Shared styles for Pipevia site */
:root {
  --bg: #0b1020;
  --card: #0f152a;
  --surface: #121936;
  --text: #e7ecff;
  --muted: #a7b1d6;
  --line: #2a3561;
  --primary: #4f86ff; /* azure */
  --accent: #8b5cf6;  /* violet */
  --success: #34d399;
  --warning: #fbbf24;
  --radius: 14px;
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  /* base background for the whole page (bottom section) */
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* subtle grain to reduce banding in gradients */
body::after { content:""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1.5px);
  background-size: 3px 3px; mix-blend-mode: soft-light; opacity: 0.35; }
/* top overlay for the hero background (upper section only) */
body::before { content:""; position: fixed; left:0; right:0; top:0; height: 62vh; pointer-events: none; z-index: -1;
  background:
    radial-gradient(1400px 800px at 15% 25%, rgba(93,129,255,0.18) 0%, rgba(93,129,255,0.12) 30%, rgba(93,129,255,0.06) 50%, transparent 70%),
    radial-gradient(1200px 700px at 50% 18%, rgba(119,110,250,0.08) 0%, rgba(119,110,250,0.04) 40%, transparent 65%),
    radial-gradient(1000px 650px at 85% 15%, rgba(143,92,246,0.14) 0%, rgba(143,92,246,0.09) 35%, rgba(143,92,246,0.04) 55%, transparent 75%),
    linear-gradient(180deg, #0b1024 0%, #0b1020 100%);
  /* fade bottom edge so it blends into the plain bg */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 160px), rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 160px), rgba(0,0,0,0) 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92%); margin: 0 auto; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(8px);
  background: linear-gradient(180deg, rgba(11,16,32,0.75), rgba(11,16,32,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
/* New image-based logo */
.logo-img {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 6px 16px rgba(79,134,255,0.22);
}
/* Old gradient logo retained for backward compatibility (unused now) */
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: conic-gradient(from 210deg, var(--primary), var(--accent));
  box-shadow: inset 0 0 8px rgba(255,255,255,0.25), 0 6px 16px rgba(79,134,255,0.35);
}
.brand span { font-weight: 700; letter-spacing: 0.2px; font-size: 18px; }
/* Right-align the main nav block next to CTA (CTA is far right) */
.menu { display: flex; gap: 20px; color: var(--muted); margin-left: auto; order: 2; justify-content: flex-end; }
.cta { display: flex; align-items: center; gap: 10px; order: 3; }
/* Nav link hover animation */
.menu a {
  position: relative; padding: 8px 12px; border-radius: 10px;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}
.menu a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  opacity: 0.9; border-radius: 2px; pointer-events: none;
}
.menu a:hover, .menu a:focus-visible { color: var(--text); background: rgba(255,255,255,0.06); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,134,255,0.18); }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu a.active, .menu a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.08); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 24px rgba(79,134,255,0.35), inset 0 0 10px rgba(255,255,255,0.2);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,0.06); }

/* Hero */
.hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
/* remove previous hero-specific glow; we now use the global top overlay */
.hero::before { content: none !important; }

.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: rgba(79,134,255,0.14); color: #cfe0ff; font-weight: 600; font-size: 13px;
  border: 1px solid rgba(79,134,255,0.3);
}
h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; margin: 14px 0 16px; letter-spacing: 0.2px; }
.gradient-text { background: linear-gradient(90deg, var(--text), #c7caff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 2.4vw, 18px); line-height: 1.7; }
.actions { display: flex; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.subnote { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Decorative orbs */
.orb { position: absolute; filter: blur(44px); opacity: 0.5; pointer-events: none; }
.orb.one { width: 380px; height: 380px; background: radial-gradient(circle, rgba(79,134,255,0.55), transparent 60%); top: -120px; left: -120px; }
.orb.two { width: 300px; height: 300px; background: radial-gradient(circle, rgba(139,92,246,0.45), transparent 60%); bottom: -80px; right: 10%; }

/* Hero visual card */
.visual {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg);
}
.visual::after { content:""; position:absolute; inset:-10px; border-radius: 26px; pointer-events:none; z-index:-1;
  background: radial-gradient(420px 260px at 70% 78%, rgba(139,92,246,0.18), transparent 60%),
              radial-gradient(380px 240px at 30% 20%, rgba(79,134,255,0.16), transparent 60%);
  filter: blur(20px);
}
.visual-inner { background: var(--card); border-radius: 14px; padding: 18px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.status-chip { position: absolute; top: 14px; left: 14px; background: rgba(52,211,153,0.18); color: #c6f7e2; border: 1px solid rgba(52,211,153,0.35); padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pipeline-svg { display: block; width: 100%; height: auto; }
.legend { display: flex; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.legend b { color: var(--text); }

/* Logos / grids */
.logos { padding: 14px 0 70px; }
.logos .row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; opacity: 0.85; }
.logo-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; text-align: center; color: #cdd6f7; font-weight: 700; letter-spacing: .2px; }
.logo-card small { display: block; color: var(--muted); font-weight: 600; }

/* Partners grid with real logos */
.partners-grid { align-items: stretch; }
.partner-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .2s ease, background .2s ease;
  min-width: 150px;
}
.partner-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.05); }
.partner-card img { height: 34px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25)); }
.partner-card span { margin-top: 8px; color: #cdd6f7; font-weight: 700; letter-spacing: .2px; }

/* Marquee strip for partners */
.partners-marquee { overflow: hidden; position: relative; padding-top: 10px; }
/* side masks removed per request */
.partners-marquee .track {
  display: flex; gap: 16px; align-items: center; width: max-content;
  animation: marquee 28s linear infinite;
}
.partners-marquee [data-partners-marquee] { display: flex; gap: 0; width: max-content; }
.partners-marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Features */
.section { padding: 70px 0; }
.section h2 { font-size: clamp(24px, 4.6vw, 36px); margin: 0 0 14px; }
.section p.lead { margin-bottom: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-md); }
.card { position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease, box-shadow .2s ease; }
.card > * { position: relative; z-index: 1; }
.icon {
  width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(79,134,255,0.2), rgba(139,92,246,0.2)); color: #cfe0ff; border: 1px solid rgba(255,255,255,0.1);
}
.card h3 { margin: 8px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.card:hover { transform: translateY(-2px); transition: transform .2s ease; }

/* Feature cards: subtle zoom on hover */
#product .card { transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
#product .card:hover, #product .card:focus-within {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 36px rgba(79,134,255,0.12), 0 6px 20px rgba(0,0,0,0.35);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding-left: 14px; }
.step::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), var(--accent)); }
.step h4 { margin: 0 0 6px; }
.muted { color: var(--muted); }

/* Code block */
pre { margin: 0; }
.code {
  background: #0b0f22; border: 1px solid var(--line); border-radius: 14px; overflow: auto;
  padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #d9e0ff; font-size: 13px; line-height: 1.6;
}
.code .k { color: #7aa2ff; }
.code .s { color: #7ae0a3; }
.code .n { color: #f5d67a; }
.code .c { color: #7083b6; }

/* CTA band */
.cta-band { background: linear-gradient(90deg, rgba(79,134,255,0.14), rgba(139,92,246,0.14)); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }

/* Footer */
footer { padding: 30px 0 50px; color: var(--muted); border-top: 1px solid rgba(255,255,255,0.06); }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.foot .links { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.copyright { margin-top: 16px; font-size: 12px; }

/* Numbers / Stats */
.stats .kicker { color: #cfe0ff; font-weight: 700; letter-spacing: .2px; }
.stats h2 { margin: 8px 0 4px; }
.stats p.lead { margin: 0 0 18px; }
.stats .learn a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; color: #9abbff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 36px; margin-top: 24px; }
.stat .value { font-size: clamp(28px, 5.2vw, 46px); font-weight: 900; line-height: 1.1; letter-spacing: .4px; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); margin-top: 6px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.price-card.highlight { border-color: rgba(79,134,255,0.5); box-shadow: 0 20px 40px rgba(79,134,255,0.2); }
.price-card .plan { display:inline-block; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); font-weight:700; color:#cfe0ff; }
.price-card .price { font-size: clamp(28px, 5vw, 42px); font-weight: 900; margin: 10px 0 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card .desc { color: var(--muted); margin-bottom: 10px; }
.feature-list { list-style:none; padding:0; margin:10px 0 14px; color: var(--text); }
.feature-list li { margin: 6px 0; color: #d6ddff; }
.feature-list li span { color: var(--muted); }
.feature-list li::before { content: "✓"; margin-right: 8px; color: #8bb2ff; font-weight: 900; }
.price-card .btn { margin-top: auto; }

/* Solutions details */
.pill { display:inline-block; padding:4px 8px; border-radius:999px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); font-weight:600; color:#cfe0ff; font-size: 12px; }
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { margin: 6px 0; color: #cfd6ff; }
.bullets li::before { content: "•"; margin-right: 8px; color: #7aa2ff; }

/* Job pages: stack About-the-role content as three blocks with relaxed line-height */
.about-role .grid-3 { display: block; }
.about-role .grid-3 .card { margin: 14px 0; }
.about-role .bullets li { line-height: 1.85; }
.about-role p { line-height: 1.9; }

/* Compare plans */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); }
.compare-table { width: 100%; border-collapse: collapse; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; }
.compare-table th { color: #cfe0ff; font-weight: 800; background: rgba(255,255,255,0.03); }
.compare-table td.plan { color:#cfe0ff; font-weight:700; }
.compare-table td.center, .compare-table th.center { text-align: center; }
.badge-yes { display:inline-block; padding:2px 8px; border-radius:999px; background: rgba(79,134,255,0.18); color:#d7e6ff; border:1px solid rgba(79,134,255,0.36); font-weight:700; }
.badge-no { display:inline-block; padding:2px 8px; border-radius:999px; background: rgba(255,255,255,0.06); color:#aeb9e4; border:1px solid rgba(255,255,255,0.12); font-weight:700; }
.compare-table tr:last-child td { border-bottom: none; }

/* Resources */
.link-list { list-style:none; padding:0; margin:0; }
.link-list li { margin: 6px 0; }
.link-list a { color:#9abbff; text-decoration: underline; text-underline-offset: 3px; }
.resource-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px; }

/* (removed) Docs sidebar navigation */

/* Responsive */
@media (max-width: 1024px) {
  .hero .grid { grid-template-columns: 1fr; }
  .logos .row { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .foot { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

/* Careers */
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1280px) { .job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .job-grid { grid-template-columns: 1fr; } }
.job-card { display: flex; flex-direction: column; }
.job-card h3 { margin: 10px 0 6px; }
.job-head { display: flex; gap: 6px; flex-wrap: wrap; }
.job-meta { color: var(--muted); margin-top: 8px; font-size: 14px; }
.job-cta { margin-top: auto; padding-top: 12px; }
