/* =========================================================
   site.css — Shared styles for ActivAI pages (CLEAN + CONSISTENT)
   - Seamless background (no scroll seams)
   - Index-style navbar (centered links + gradient)
   - Floating logo (desktop float, mobile centered)
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root{
  --bg0:#f6f7fb;
  --bg1:#ffffff;

  --surface: rgba(255,255,255,.92);
  --card: rgba(255,255,255,.70);

  --stroke: rgba(10,14,26,.10);
  --stroke2: rgba(10,14,26,.14);

  --text: rgba(10,14,26,.92);
  --muted: rgba(10,14,26,.68);
  --muted2: rgba(10,14,26,.52);

  --shadow: 0 22px 70px rgba(10,14,26,.12);
  --shadow2: 0 10px 35px rgba(10,14,26,.10);

  --r: 18px;
  --r2: 999px;

  --max: 1180px;
  --pad: 22px;
  --gap: 18px;
  --gap2: 26px;

  --focus: 0 0 0 4px rgba(60, 110, 255, .18);

  /* Navbar edge padding (minimal) */
  --navEdgePad: 5px;
}

/* Dark theme */
html[data-theme="dark"]{
  --bg0:#070910;
  --bg1:#0b0e14;

  --surface: rgba(8,10,16,.65);
  --card: rgba(255,255,255,.06);

  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.18);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);

  --shadow: 0 22px 70px rgba(0,0,0,.55);
  --shadow2: 0 10px 35px rgba(0,0,0,.40);

  --focus: 0 0 0 4px rgba(140, 170, 255, .22);
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x:hidden;

  /* IMPORTANT: background is painted on a fixed layer to avoid scroll seams */
  background: transparent !important;
  position: relative;
}

/* Seamless background: single fixed layer (prevents join line while scrolling) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* Strong cyan (clean) based on #9DFBFF */
  background:
    radial-gradient(1200px 720px at 14% 10%, rgba(157,251,255,.90), transparent 62%),
    radial-gradient(920px 600px at 78% 18%, rgba(0,255,255,.28), transparent 60%),
    radial-gradient(1100px 760px at 72% 92%, rgba(157,251,255,.42), transparent 64%),
    radial-gradient(1200px 780px at 92% 62%, rgba(0,213,255,.20), transparent 66%),
    linear-gradient(180deg, #f2ffff 0%, #e4feff 42%, #f7ffff 100%);
}

html[data-theme="dark"] body::before{
  background:
    radial-gradient(1200px 700px at 12% 8%, rgba(140,170,255,.22), transparent 60%),
    radial-gradient(900px 520px at 88% 18%, rgba(112,240,178,.15), transparent 62%),
    radial-gradient(1000px 700px at 70% 92%, rgba(255,189,107,.14), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 70%, #070a12);
}

a{ color:inherit; }

/* Default centered wrapper for content sections */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Navbar + Floating Logo (INDEX STYLE, shared) ---------- */

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);

  /* index-style gradient */
  background: linear-gradient(135deg, #25beef, #1cf7f7) !important;
}

/* Keep header container full-width with minimal edge padding */
.topbar .wrap{
  max-width: none;
  margin: 0;
  padding: 0 var(--navEdgePad);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: center; /* index-style centered nav */
  padding: 8px 0;
}

/* Nav links (index-style) */
.navlinks{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  flex-wrap: wrap;
}

.navlinks a{
  text-decoration: none;
  color: #000 !important;
  font-weight: 600;
  font-size: 15px !important;
  line-height: 1;
  padding: 6px 11px !important;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.navlinks a:hover{
  color: #fff !important;
  background: rgba(255,255,255,.16) !important;
  border-color: rgba(255,255,255,.24) !important;
}

/* Floating logo (desktop: "floating", mobile: stable & centered) */
.floatingBrand{
  position: absolute;
  top: 92px;
  left: clamp(18px, 4vw, 56px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  filter: drop-shadow(0 18px 34px rgba(8,17,31,.14));
}

/* Keep .companyLogo available for other pages if needed */
.companyLogo{
  display: block;
  width: auto;
  object-fit: contain;
}

/* Floating PNG logo sizing */
.floatingLogo{
  height: 118px;
  width: auto;
  object-fit: contain;
}

/* Tablet + down: center the floating logo, reduce top margin */
@media (max-width: 980px){
  .floatingBrand{
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 10px auto 0;
    padding: 0 var(--pad);
    justify-content: center;
  }

  .floatingLogo{
    height: 76px;
  }
}

/* Phone: wrap nav comfortably + slightly tighter logo */
@media (max-width: 700px){
  .nav{
    padding: 10px 0;
  }

  .navlinks{
    padding: 0 var(--pad);
    gap: 6px 8px;
  }

  .navlinks a{
    font-size: 14px !important;
    padding: 8px 10px !important;
    white-space: nowrap;
  }

  .floatingBrand{
    margin-top: 8px;
  }

  .floatingLogo{
    height: 64px;
  }
}

/* ---------- Buttons (shared) ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: var(--r2);
  border: 1px solid var(--stroke2);
  background: rgba(10,14,26,.03);
  color: var(--text);
  text-decoration:none;
  font-size: 13px;
  line-height: 13px;
  gap: 8px;
  transition: .18s ease;
  box-shadow: 0 10px 30px rgba(10,14,26,.06);
}
html[data-theme="dark"] .btn{
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.btn:hover{
  transform: translateY(-1px);
  border-color: var(--stroke2);
  background: rgba(10,14,26,.04);
}
html[data-theme="dark"] .btn:hover{ background: rgba(255,255,255,.08); }
.btn:focus{ outline:none; box-shadow: var(--focus), 0 10px 30px rgba(0,0,0,.10); }

.btnPrimary{
  border-color: rgba(60,110,255,.28);
  background: linear-gradient(135deg, rgba(60,110,255,.18), rgba(19,202,161,.10));
}
.btnPrimary:hover{
  border-color: rgba(60,110,255,.40);
  background: linear-gradient(135deg, rgba(60,110,255,.22), rgba(19,202,161,.12));
}
html[data-theme="dark"] .btnPrimary{
  border-color: rgba(140,170,255,.28);
  background: linear-gradient(135deg, rgba(140,170,255,.30), rgba(112,240,178,.16));
}
html[data-theme="dark"] .btnPrimary:hover{
  border-color: rgba(140,170,255,.40);
  background: linear-gradient(135deg, rgba(140,170,255,.38), rgba(112,240,178,.20));
}

/* ---------- Theme toggle (shared) ---------- */
.togglePill{
  display:inline-flex;
  border-radius: var(--r2);
  border: 1px solid var(--stroke);
  overflow:hidden;
  background: rgba(10,14,26,.02);
}
html[data-theme="dark"] .togglePill{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}
.togglePill button{
  border:0;
  background: transparent;
  padding: 6px 10px;
  font: inherit;
  color: var(--muted);
  cursor:pointer;
  transition: .15s ease;
}
.togglePill button:hover{ color: var(--text); }
.togglePill button[aria-pressed="true"]{
  color: var(--text);
  background: rgba(60,110,255,.14);
}
html[data-theme="dark"] .togglePill button[aria-pressed="true"]{
  background: rgba(140,170,255,.18);
}

/* ---------- Page primitives (shared) ---------- */
main{ padding: 34px 0 22px; }

h1{
  margin: 18px 0 10px;
  font-size: clamp(30px, 4.0vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.subhead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 70ch;
}

/* Reusable framed media */
.imageFrame{
  border-radius: var(--r);
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.responsiveImg{
  display:block;
  width: 100%;
  height: auto;
}

/* ---------- Footer (shared) ---------- */
footer{ padding: 26px 0 44px; color: var(--muted2); font-size: 12px; }
.footRow{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px; flex-wrap:wrap;
  border-top: 1px solid var(--stroke);
  padding-top: 18px;
  margin-top: 28px;
}
.footLinks{ display:flex; gap: 12px; flex-wrap:wrap; }
.footLinks a{
  text-decoration:none;
  color: var(--muted2);
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.footLinks a:hover{
  color: var(--text);
  border-color: var(--stroke);
  background: rgba(10,14,26,.03);
}
html[data-theme="dark"] .footLinks a:hover{ background: rgba(255,255,255,.03); }


/* =========================================================
   Floating logo: prevent overlap on tablets + normal desktops
   Range: 981px–1800px
   Paste at the VERY END of site.css
   ========================================================= */

@media (min-width: 981px) and (max-width: 1800px){
  .floatingBrand{
    position: relative !important; /* take space in the flow => no overlap */
    top: auto !important;
    left: auto !important;

    width: 100% !important;
    display: flex !important;
    justify-content: center !important;

    /* tight spacing so it doesn't create a huge gap */
    margin: 10px auto 0 !important;
    padding: 0 var(--pad) !important;

    filter: drop-shadow(0 18px 34px rgba(8,17,31,.14)) !important;
  }

  .floatingLogo{
    /*height: 92px !important; /* tweak if you want bigger/smaller */
    width: auto !important;
    object-fit: contain !important;
  }
  main { padding-top: 0px !important
}

/* Keep the "floating" absolute logo only on very wide screens */
@media (min-width: 1801px){
  .floatingBrand{
    position: absolute !important;
    top: 92px !important;
    left: clamp(18px, 4vw, 56px) !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .floatingLogo{
    height: 118px !important;
  }
}