/* =====================================================================
   LoGoJeCh — shared styles for product pages
   ===================================================================== */
:root {
  --bg: #04070d;
  --fg: #eef2f8;
  --muted: #8b97ab;
  --cyan: #5fd4ff;
  --brand: #2563ff;
  --brand-2: #4aa8ff;
  --navy: #0b1d5c;
  --line: rgba(160, 190, 255, 0.12);
  --glass: rgba(10, 16, 28, 0.6);
  --display: "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--bg); color: var(--fg); font-family: "Inter", system-ui, sans-serif; font-weight: 300; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }

/* ambient background */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(37,99,255,.22), transparent 60%),
    radial-gradient(50% 40% at 0% 60%, rgba(95,212,255,.08), transparent 60%),
    var(--bg); }
.bg-fx::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120,160,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(120,160,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(80% 70% at 50% 20%, #000, transparent); -webkit-mask-image: radial-gradient(80% 70% at 50% 20%, #000, transparent); }

/* nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1.25rem, 4vw, 3rem); transition: background .4s; }
nav.solid { background: rgba(4,7,13,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.logo .em { height: 52px; width: auto; filter: drop-shadow(0 0 12px rgba(61,155,255,.5)); }
.logo .wm { height: 32px; width: auto; }
nav ul { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
nav ul > li > a { text-decoration: none; font-size: .88rem; opacity: .78; transition: opacity .2s; }
nav ul > li > a:hover, nav ul > li > a[aria-current] { opacity: 1; }
.nav-cta { text-decoration: none; font-size: .82rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); }
.dd { position: relative; }
.dd > a::after { content: "▾"; font-size: .7em; margin-left: .35em; opacity: .7; }
.dd-menu { position: absolute; top: calc(100% + .9rem); left: 50%; transform: translate(-50%, 6px); min-width: 20rem; padding: .5rem; border-radius: 14px; background: rgba(8,14,28,.94); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: .25s; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-menu::before { content: ""; position: absolute; inset: -1rem 0 auto; height: 1rem; }
.dd-menu a { display: flex; gap: .8rem; align-items: center; padding: .65rem .75rem; border-radius: 10px; text-decoration: none; }
.dd-menu a:hover, .dd-menu a[aria-current] { background: rgba(61,155,255,.12); }
.dd-menu .pi { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(61,155,255,.12); border: 1px solid rgba(61,155,255,.3); }
.dd-menu .pi svg { width: 18px; height: 18px; stroke: #8fc4ff; fill: none; stroke-width: 1.6; }
.dd-menu b { display: block; font-weight: 500; font-size: .86rem; }
.dd-menu small { color: var(--muted); font-size: .72rem; }

@media (max-width: 520px) { .logo .em { height: 38px; } .logo .wm { height: 24px; } .nav-cta { display: none; } }

/* type + layout */
section { position: relative; padding: 7rem clamp(1.25rem, 6vw, 6rem); }
.wrap { max-width: 76rem; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #8fbcff; margin-bottom: 1.2rem; }
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.04; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.grad { background: linear-gradient(90deg, #3b7bff, var(--brand-2) 50%, #8be3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 36rem; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.btn { display: inline-block; padding: .95rem 1.8rem; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; transition: transform .25s, border-color .25s; }
.btn.primary { background: linear-gradient(90deg, #1f4fff, #3d9bff); color: #fff; box-shadow: 0 10px 34px -10px rgba(37,99,255,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.ghost { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.btn:hover { transform: translateY(-2px); }
.grid { display: grid; gap: 1.1rem; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); background: var(--glass); border-radius: 18px; padding: 1.8rem; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: border-color .3s, transform .3s, box-shadow .3s; }
.card:hover { border-color: rgba(74,168,255,.5); transform: translateY(-3px); box-shadow: 0 20px 50px -24px rgba(37,99,255,.55); }
.card p { color: var(--muted); font-size: .95rem; margin-top: .55rem; }
.card h3 svg { width: 22px; height: 22px; stroke: #8fc4ff; fill: none; stroke-width: 1.6; flex: none; }
.card h3 { display: flex; align-items: center; gap: .7rem; }
.icon-box { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(61,155,255,.1); border: 1px solid rgba(61,155,255,.3); margin-bottom: 1.1rem; }
.icon-box svg { width: 24px; height: 24px; stroke: #8fc4ff; fill: none; stroke-width: 1.5; }
.points { list-style: none; display: grid; gap: .65rem; margin-top: 1.4rem; }
.points li { display: flex; gap: .75rem; font-size: .95rem; color: #c9d2e0; }
.points li::before { content: ""; flex: none; margin-top: .55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2); }
.steps-n { font-family: var(--display); font-size: .8rem; color: var(--cyan); letter-spacing: .2em; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .8rem; }
.flow .node { text-align: center; padding: 1.4rem 1rem; }
.flow .node b { display: block; font-family: var(--display); font-weight: 600; }
.flow .node span { font-size: .85rem; color: var(--muted); }
.flow .link { width: 60px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-2) 0 8px, transparent 8px 16px); background-size: 32px 2px; animation: dash .9s linear infinite; }
@keyframes dash { to { background-position: 32px 0; } }
.usecase { position: relative; overflow: hidden; min-height: 13rem; display: flex; flex-direction: column; }
.usecase::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 240px; height: 240px; background: radial-gradient(circle, rgba(37,99,255,.28), transparent 65%); }
.usecase .icon-box { position: relative; margin-bottom: auto; }
.usecase h3 { margin-top: 1.6rem; }
.cta { text-align: center; }
.cta .wrap { max-width: 46rem; }
.cta .lead { margin: 0 auto; }
.cta .btns { justify-content: center; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.other-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.other-products a { text-decoration: none; }

footer { padding: 2.2rem clamp(1.25rem, 6vw, 6rem); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .82rem; }
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand img.em { height: 38px; } .foot-brand img.wm { height: 24px; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { text-decoration: none; } .foot-links a:hover { color: var(--fg); }

/* reveal on scroll (IntersectionObserver) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .g3, .other-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 5.5rem 1.25rem; }
  .g3, .g2, .other-products { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; } .flow .link { width: 2px; height: 26px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--brand-2) 0 6px, transparent 6px 12px); animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .flow .link { animation: none; }
}

  /* ---------- mobile menu ---------- */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: var(--fg); cursor: pointer; position: relative; z-index: 31; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: currentColor; border-radius: 2px; transition: .3s; content: ""; }
.burger span { top: 50%; margin-top: -1px; } .burger span::before { top: -6px; left: 0; margin: 0; } .burger span::after { top: 6px; left: 0; margin: 0; }
nav.open .burger span { background: transparent; } nav.open .burger span::before { top: 0; transform: rotate(45deg); } nav.open .burger span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .burger { display: inline-block; }
  nav > ul { display: flex !important; position: fixed; inset: 0; z-index: 30; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 6.5rem 1.5rem 2rem; background: rgba(4,7,13,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .3s; }
  nav.open > ul { opacity: 1; visibility: visible; transform: none; }
  nav > ul > li { border-bottom: 1px solid var(--line); }
  nav > ul > li > a { display: block; padding: 1rem .2rem; font-size: 1.15rem; opacity: 1 !important; font-family: var(--display); font-weight: 600; }
  nav .dd-menu { position: static; transform: none !important; opacity: 1; visibility: visible; min-width: 0; padding: 0 0 .8rem; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
  nav .dd > a::after { display: none; }
  nav .logo, nav .nav-cta { position: relative; z-index: 31; }
  .nav-actions { display: flex; align-items: center; gap: .6rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 520px) { nav .nav-cta { display: none; } }

  /* ================= PHONE-ONLY ENHANCEMENTS (desktop unaffected) ================= */
.m-fab, .m-top, .m-swipe-hint { display: none; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* swipeable card rows */
  .m-swipe { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1.25rem; gap: .9rem !important; margin-left: -1.25rem; margin-right: -1.25rem; padding: .2rem 1.25rem 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { flex: 0 0 84%; scroll-snap-align: start; }
  .m-swipe-hint { display: flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: -.2rem 0 .6rem; }
  .m-swipe-hint::after { content: "→"; animation: nudge 1.4s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(5px); } }
  /* floating actions */
  .m-fab { display: inline-flex; align-items: center; gap: .5rem; position: fixed; z-index: 25; left: 1rem; right: 4.6rem; bottom: calc(1rem + env(safe-area-inset-bottom)); justify-content: center; padding: .95rem 1.2rem; border-radius: 999px; background: linear-gradient(90deg, #1f4fff, #3d9bff); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: 0 14px 34px -10px rgba(37,99,255,.85); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .m-top { display: grid; place-items: center; position: fixed; z-index: 25; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(8,14,28,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 1.2rem; cursor: pointer; transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  body.m-scrolled .m-fab, body.m-scrolled .m-top { transform: none; }
  body.menu-open .m-fab, body.menu-open .m-top { transform: translateY(140%); }
  footer { padding-bottom: 6rem !important; }
  /* bigger tap targets */
  .btn { padding: 1rem 1.6rem; }
  .btns .btn { flex: 1 1 auto; text-align: center; }
  .crumbs { font-size: .75rem; }
  h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
}

@media (max-width: 640px) {
  .card { padding: 1.4rem; }
  .usecase { min-height: 0; }
  .usecase h3 { margin-top: 1rem; }
}
