/* ============================================================
   Eunobio — corporate diagnostics brand
   Palette: deep navy + bright cyan + slate, Arial, hexagon motif
   (matches eunobio_template.pptx design language)
   ============================================================ */
:root {
  /* navy family */
  --ink-900: #002F5E;   /* darkest navy (hero / dark sections) */
  --ink-800: #003F7D;   /* primary brand navy */
  --ink-700: #2F5597;   /* medium navy */
  --ink-600: #3a66ab;
  /* cyan accent (kept under legacy var names so inline styles adapt) */
  --teal-600: #1b86c4;  /* darker cyan */
  --teal-500: #2BA8E0;  /* brand cyan accent */
  --mint-400: #2BA8E0;  /* cyan (glows / fills) */
  --mint-300: #8AD2F0;  /* light cyan (accent text on navy) */
  --amber:    #E9A23B;  /* rare warm accent */
  /* neutrals */
  --paper:   #F5F8FB;   /* light page background */
  --panel:   #DEE9F2;   /* light blue panel */
  --line:    #D7E1EA;   /* hairline borders */
  --ink:     #1F2328;   /* headings / text on light */
  --muted:   #5B6168;   /* body muted */
  --muted-d: rgba(231, 240, 248, 0.80); /* muted text on navy */
  --max:     1180px;
  --serif: Arial, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, sans-serif;
  --sans:  Arial, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
.hero-title, .page-hero h1, .section h2, .product h2, .cta h2, .hero-tagline, .lede {
  overflow-wrap: break-word;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* hexagon corner motif (data-URI) shared by hero + interior page heroes */
.hex-deco {
  position: absolute; top: -60px; right: -70px; width: 620px; height: 560px;
  z-index: 0; pointer-events: none; opacity: 0.9;
  background: no-repeat top right / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 560'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='9' opacity='0.14'%3E%3Cpolygon points='360,40 530,138 530,334 360,432 190,334 190,138'/%3E%3C/g%3E%3Cpolygon points='450,210 600,296 600,468 450,554 300,468 300,296' fill='%232BA8E0' opacity='0.16'/%3E%3Cg fill='none' stroke='%232BA8E0' stroke-width='8' opacity='0.30'%3E%3Cpolygon points='250,250 330,296 330,388 250,434 170,388 170,296'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: var(--ink-800);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 6px 24px rgba(0,31,62,0.18);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 31px; display: block; }
.brand-word {
  font-family: var(--sans);
  font-size: 1.16rem; font-weight: 800; letter-spacing: 2.5px;
  color: #fff;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.nav-links a {
  color: rgba(255,255,255,0.84);
  text-decoration: none; font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.3px; transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--mint-300); }

/* EunoInv portal link — distinct cyan pill */
.portal-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--teal-500); color: #fff !important;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.3px;
  transition: all 0.25s; box-shadow: 0 4px 14px rgba(43,168,224,0.35);
}
.portal-link:hover { background: #1f97cf; transform: translateY(-1px); }
.portal-link svg { width: 13px; height: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--ink-800);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 82% 28%, rgba(43,168,224,0.30) 0%, rgba(43,168,224,0) 60%),
    linear-gradient(160deg, #002a52 0%, #003F7D 55%, #00468a 100%);
}
.hero-bg .grid {
  position: absolute; inset: 0; opacity: 0.5;
  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: 56px 56px;
  mask-image: radial-gradient(80% 80% at 55% 45%, #000 30%, transparent 80%);
}
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  width: 100%;
}
.hero-text, .loop, .p-text, .p-visual { min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--mint-300); font-weight: 700; margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ""; width: 9px; height: 10px; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  background: var(--mint-300); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.55; transform: scale(0.85);} 50% { opacity: 1; transform: scale(1.1);} }
.hero-title {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.03;
  color: #fff; letter-spacing: -1.2px;
}
.hero-title span { color: var(--mint-300); }
.hero-tagline {
  margin-top: 24px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 400;
  color: var(--muted-d); max-width: 540px;
}
.hero-sub {
  margin-top: 16px; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.4px;
  color: rgba(231,240,248,0.6); text-transform: uppercase;
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Loop diagram (hexagon nodes) ---------- */
.loop { position: relative; width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 1; }
.loop svg { width: 100%; height: 100%; overflow: visible; }
.loop .ring { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1.5; }
.loop .arc { fill: none; stroke: url(#loopgrad); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 70 940; animation: orbit 6s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -1010; } }
.loop .node { fill: #003a73; stroke: var(--teal-500); stroke-width: 1.6; }
.loop .node-label { fill: #eaf4fb; font-family: var(--sans); font-size: 11px; font-weight: 700; text-anchor: middle; }
.loop .hub { fill: rgba(43,168,224,0.14); stroke: rgba(138,210,240,0.55); stroke-width: 1.6; }
.loop .hub-text { fill: var(--mint-300); font-family: var(--sans); font-weight: 800; text-anchor: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 4px;
  font-size: 0.88rem; letter-spacing: 0.4px;
  text-decoration: none; transition: all 0.25s; cursor: pointer; font-weight: 700;
}
.btn-primary {
  background: var(--teal-500); color: #fff;
  box-shadow: 0 10px 26px rgba(43,168,224,0.4);
}
.btn-primary:hover { transform: translateY(-2px); background: #1f97cf; box-shadow: 0 14px 32px rgba(43,168,224,0.5); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.45); color: #fff; }
.btn-ghost:hover { border-color: var(--mint-300); color: var(--mint-300); }
.btn-dark { background: var(--ink-800); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: var(--ink-700); }

/* ---------- Generic sections ---------- */
.section { padding: clamp(76px, 11vw, 130px) 0; }
.eyebrow {
  font-size: 0.74rem; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--teal-600); font-weight: 700; margin-bottom: 14px;
}
.section h2 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; color: var(--ink-800);
  letter-spacing: -0.8px; max-width: 780px;
}
.lede { margin-top: 18px; font-size: 1.1rem; font-weight: 400; color: var(--muted); max-width: 640px; }
.section.alt { background: #fff; }

/* ---------- Closed loop / steps ---------- */
.loop-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.loop-step { position: relative; padding: 0 18px; }
.loop-step:not(:last-child)::after {
  content: ""; position: absolute; right: -6px; top: 12px; width: 12px; height: 2px;
  background: var(--teal-500);
}
.loop-step .ls-num {
  font-family: var(--sans); font-size: 1.3rem; color: var(--teal-500); font-weight: 800;
}
.loop-step h4 { margin: 8px 0 6px; font-size: 1.02rem; color: var(--ink-800); font-weight: 700; }
.loop-step p { font-size: 0.9rem; color: var(--muted); font-weight: 400; }

/* ---------- Engine cards ---------- */
.engines { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.engine {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 28px; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.engine:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,47,94,0.12); border-color: var(--teal-500); }
.engine-ico {
  width: 48px; height: 48px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(140deg, var(--ink-700), var(--ink-800));
}
.engine-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; }
.engine h3 { font-size: 1.16rem; color: var(--ink-800); font-weight: 800; }
.engine p { margin-top: 9px; color: var(--muted); font-weight: 400; font-size: 0.96rem; }
.engine .out {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.76rem; letter-spacing: 0.4px; color: var(--teal-600); font-weight: 700;
  background: rgba(43,168,224,0.10); padding: 6px 12px; border-radius: 999px;
}

/* ---------- Product preview cards ---------- */
.prod-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.prod-card {
  position: relative; background: var(--ink-800); color: #fff;
  border-radius: 12px; padding: 30px 26px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.prod-card::before {
  content: ""; position: absolute; top: -50%; right: -35%; width: 80%; height: 90%;
  background: radial-gradient(circle, rgba(43,168,224,0.55), transparent 70%);
  opacity: 0.5; transition: opacity 0.3s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(0,47,94,0.30); }
.prod-card:hover::before { opacity: 0.85; }
.prod-card > * { position: relative; z-index: 1; }
.prod-tag { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mint-300); font-weight: 700; }
.prod-card h3 { margin: 12px 0 10px; font-size: 1.3rem; font-weight: 800; }
.prod-card p { color: rgba(231,240,248,0.72); font-weight: 400; font-size: 0.95rem; }
.prod-spec { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.prod-spec b { display: block; font-family: var(--sans); font-size: 1.5rem; color: var(--mint-300); font-weight: 800; }
.prod-spec span { font-size: 0.72rem; color: rgba(231,240,248,0.6); letter-spacing: 0.3px; }

/* ---------- Interior page hero ---------- */
.page-hero { background: var(--ink-800); color: #fff; padding: 158px 0 78px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 85% 8%, rgba(43,168,224,0.26), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--mint-300); }
.page-hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem); color: #fff; margin-top: 6px; letter-spacing: -1px;
}
.page-hero .lede { color: var(--muted-d); }

/* ---------- Product detail rows ---------- */
.product { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.product:nth-child(even) { background: #fff; }
.product .inner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.product.flip .inner { grid-template-columns: 1.08fr 0.92fr; }
.product.flip .p-visual { order: 2; }
.p-meta { font-size: 0.76rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-600); font-weight: 700; }
.product h2 { font-family: var(--sans); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--ink-800); margin: 10px 0 16px; line-height: 1.15; letter-spacing: -0.6px; }
.product p.body { color: var(--muted); font-size: 1.02rem; font-weight: 400; }
.p-feats { margin-top: 22px; list-style: none; display: grid; gap: 11px; }
.p-feats li { position: relative; padding-left: 28px; color: var(--ink); font-size: 0.96rem; }
.p-feats li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 15px;
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  background: var(--teal-500);
}
.p-stats { margin-top: 26px; display: flex; gap: 30px; flex-wrap: wrap; }
.p-stat b { display: block; font-family: var(--sans); font-size: 2rem; color: var(--ink-800); font-weight: 800; line-height: 1; }
.p-stat span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.2px; }

/* visual panel */
.p-visual {
  border-radius: 14px; padding: 40px; min-height: 280px;
  background: linear-gradient(150deg, var(--ink-700), var(--ink-800));
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.p-visual::before {
  content: ""; position: absolute; top: -40px; right: -50px; width: 320px; height: 300px;
  background: no-repeat / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 300'%3E%3Cpolygon points='180,30 300,99 300,201 180,270 60,201 60,99' fill='none' stroke='%23ffffff' stroke-width='8' opacity='0.12'/%3E%3Cpolygon points='230,120 300,160 300,240 230,280 160,240 160,160' fill='%232BA8E0' opacity='0.14'/%3E%3C/svg%3E");
}
.p-visual .pv-big {
  position: relative; font-family: var(--sans); font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1px;
}
.p-visual .pv-cap { position: relative; margin-top: 12px; color: var(--muted-d); font-size: 0.96rem; max-width: 320px; }
.p-visual .pv-chips { position: relative; margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.p-visual .pv-chips span {
  font-size: 0.76rem; color: var(--mint-300); border: 1px solid rgba(138,210,240,0.4);
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.2px;
}

/* ---------- CTA ---------- */
.cta { background: var(--ink-900); color: #fff; text-align: center; padding: clamp(76px, 11vw, 124px) 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 75% at 50% 0%, rgba(43,168,224,0.28), transparent 60%); }
.cta .container { position: relative; z-index: 1; }
.cta .eyebrow { color: var(--mint-300); }
.cta h2 { font-family: var(--sans); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff; letter-spacing: -0.8px; }
.cta .lede { margin: 18px auto 32px; color: var(--muted-d); }
.cta-emails { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(231,240,248,0.62); padding: 40px 0 30px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .brand-word { color: #fff; font-size: 1.05rem; }
.footer-tag { margin-top: 10px; font-size: 0.86rem; max-width: 290px; color: rgba(231,240,248,0.5); font-weight: 400; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.72rem; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(231,240,248,0.45); margin-bottom: 12px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; color: rgba(231,240,248,0.7); text-decoration: none; font-size: 0.9rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--mint-300); }
.footer-base { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; color: rgba(231,240,248,0.42); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 118px 0 74px; }
  .hero .container { grid-template-columns: 1fr; gap: 50px; }
  .loop { max-width: 360px; margin: 0 auto; }
  .product .inner, .product.flip .inner { grid-template-columns: 1fr; gap: 32px; }
  .product.flip .p-visual { order: 0; }
  .loop-steps { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .loop-step:not(:last-child)::after { display: none; }
  .hex-deco { opacity: 0.5; }
}
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links .navlink-hide { display: none; }
  .loop-steps { grid-template-columns: 1fr; }
  .brand-word { font-size: 1rem; letter-spacing: 1.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .loop .arc, .hero-eyebrow::before { animation: none; }
  html { scroll-behavior: auto; }
}
