/* Lutix DeepTech: shared styles for product case-study pages (academic-os.html, beanogram.html) */
:root {
  --bg: #061226;
  --surface: #0A1B33;
  --surface-2: #0D2140;
  --border: rgba(124, 199, 242, 0.18);
  --border-strong: rgba(124, 199, 242, 0.36);
  --text: #DCEEFF;
  --muted: #9FB4CC;
  --cyan: #7CC7F2;
  --grad: linear-gradient(90deg, #B5E0FA 0%, #7CC7F2 50%, #4FA8E8 100%);
  --cyan-soft: rgba(124, 199, 242, 0.12);
  --font: 'Calluna', 'Source Serif 4', Georgia, serif;
  --nav-h: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; position: relative; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #06182E; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 8px 28px -8px rgba(124,199,242,0.6); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  background: rgba(6, 18, 38, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.nav-inner { height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.wordmark { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; white-space: nowrap; }
.wordmark span { color: var(--cyan); }
.nav-links { display: flex; gap: 30px; justify-self: center; }
.nav-links a { font-size: 0.92rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 9px 16px; font-size: 0.88rem; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; background: transparent; border: 1px solid var(--border-strong); color: var(--text); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.menu-toggle svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 104px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(124,199,242,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(124,199,242,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero::after { content: ""; position: absolute; left: 50%; top: -240px; width: 780px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124,199,242,0.22), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(124,199,242,0.35); background: var(--cyan-soft); color: var(--cyan); font-size: 0.74rem; letter-spacing: 0.12em; font-weight: 500; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-logo { width: 72px; height: 72px; margin: 26px auto 0; border-radius: 18px; object-fit: contain; background: #fff; box-shadow: 0 14px 34px -14px rgba(124,199,242,0.6); }
.hero-logo.round { background: transparent; border-radius: 50%; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 700; margin: 18px auto 0; letter-spacing: -0.035em; line-height: 1.04; }
.hero .sub { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; font-size: 0.8rem; color: var(--muted); }
.hero-meta span::before { content: "▸ "; color: var(--cyan); }

/* Bento showcase: looping native-resolution micro-clips in desktop windows + an iPhone bezel */
.showcase { padding-top: 24px; }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.showcase-head .section-head { margin-bottom: 0; }
.showcase-hint { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.86rem; }
.showcase-hint svg { width: 16px; height: 16px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bento { display: grid; gap: 28px; }
.bento-stage { position: relative; padding-right: 17%; padding-bottom: 4%; }

.screen { margin: 0; position: relative; min-width: 0; }
.window {
  border-radius: 14px; overflow: hidden; background: #040c1a; border: 1px solid var(--border-strong);
  box-shadow: 0 50px 110px -45px rgba(124,199,242,0.5), 0 24px 48px -28px rgba(0,0,0,0.85);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.screen:hover .window, .screen:focus-within .window { border-color: rgba(124,199,242,0.6); box-shadow: 0 50px 120px -40px rgba(124,199,242,0.62), 0 24px 48px -28px rgba(0,0,0,0.85); }
.chrome { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: linear-gradient(180deg, #13284a, #0d2140); border-bottom: 1px solid rgba(124,199,242,0.16); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.chrome i:nth-child(1) { background: #ff5f57; } .chrome i:nth-child(2) { background: #febc2e; } .chrome i:nth-child(3) { background: #28c840; }
.chrome span { margin: 0 auto; max-width: 70%; min-width: 0; height: 22px; line-height: 22px; padding: 0 12px 0 26px; border-radius: 7px; background: rgba(6,18,38,0.85); color: var(--muted); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.chrome span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -5px; border: 1.5px solid rgba(159,180,204,0.7); border-radius: 2px 2px 1px 1px; border-bottom-width: 4px; }

/* Clickable media surface */
.media { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: #040c1a; cursor: zoom-in; color: inherit; font: inherit; text-align: left; }
.media:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; border-radius: 0; }
.media video, .media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 0%); background: #040c1a; image-rendering: auto; filter: none; transform: translateZ(0); backface-visibility: hidden; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.expand { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(6,18,38,0.72); border: 1px solid rgba(124,199,242,0.4); color: var(--cyan); opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.media:hover .expand, .media:focus-visible .expand { opacity: 1; transform: none; }
@media (hover: none) { .expand { opacity: 0.9; transform: none; } }
.pill { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(6,18,38,0.62); border: 1px solid rgba(124,199,242,0.45); color: #E8F5FF; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); box-shadow: 0 8px 24px -10px rgba(0,0,0,0.6); pointer-events: none; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,0.2); animation: pulse 2s ease-in-out infinite; }

/* iPhone bezel */
.screen-phone { position: absolute; right: 0; bottom: 0; width: 21.5%; min-width: 170px; max-width: 260px; z-index: 3; }
.phone {
  position: relative; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #2a3b58, #0b1526 45%, #1b2a44);
  box-shadow: 0 0 0 1px rgba(124,199,242,0.35), 0 40px 80px -30px rgba(0,0,0,0.9), 0 30px 70px -40px rgba(124,199,242,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #22324f; }
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after { right: -3px; top: 28%; height: 14%; }
.phone-screen { position: relative; overflow: hidden; border-radius: 38px; background: #000; }
.statusbar { position: relative; display: flex; align-items: center; justify-content: space-between; aspect-ratio: 9 / 1.25; padding: 0 9% 0 12%; color: #fff; font: 600 0.72rem/1 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; letter-spacing: 0.01em; background: #000; }
.island { position: absolute; top: 50%; left: 50%; width: 32%; height: 58%; transform: translate(-50%, -46%); border-radius: 999px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,0.04); pointer-events: none; }
.sb-icons { display: inline-flex; align-items: center; gap: 4px; }
.sb-icons svg { height: 9px; width: auto; fill: currentColor; }
.phone-screen .media { aspect-ratio: 9 / 19.5; }
.phone-label { display: block; margin-top: 12px; text-align: center; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Secondary feature windows */
.bento-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.screen-card figcaption { padding: 16px 4px 0; }
.screen-card figcaption b { display: block; font-size: 1.08rem; color: var(--text); }
.screen-card figcaption span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Cinema lightbox */
.cinema { padding: 0; border: 0; background: transparent; color: var(--text); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.cinema::backdrop { background: rgba(2, 7, 18, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cinema[open] { display: flex; align-items: center; justify-content: center; animation: cinemaIn .22s ease; }
@keyframes cinemaIn { from { opacity: 0; } to { opacity: 1; } }
.cinema-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 96vw; padding: 56px 16px 20px; }
.cinema-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); background: #000; box-shadow: 0 40px 120px -30px rgba(124,199,242,0.45); }
.cinema-frame video { image-rendering: auto; filter: none; display: block; max-width: min(96vw, var(--native-w, 1920px)); max-height: calc(100vh - 170px); width: auto; height: auto; background: #000; }
.cinema-cap { max-width: 760px; text-align: center; }
.cinema-cap b { display: block; font-size: 1.1rem; }
.cinema-cap span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.92rem; }
.cinema-close { position: fixed; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(13,33,64,0.9); color: var(--text); cursor: pointer; }
.cinema-close:hover { border-color: var(--cyan); color: var(--cyan); }
.cinema-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
body.cinema-open { overflow: hidden; }

@media (max-width: 900px) {
  .bento-stage { padding-right: 18%; }
  .screen-phone { width: 26%; min-width: 150px; }
}
@media (max-width: 760px) {
  .bento-stage { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 26px; }
  .bento-stage .screen-hero { width: 100%; }
  .screen-phone { position: static; width: 62%; min-width: 0; max-width: 240px; }
  .statusbar { font-size: 0.66rem; }
  .bento-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chrome { height: 30px; padding: 0 10px; gap: 6px; }
  .chrome i { width: 9px; height: 9px; }
  .chrome span { font-size: 0.68rem; height: 19px; line-height: 19px; }
  .pill { left: 10px; bottom: 10px; padding: 5px 10px; font-size: 0.62rem; }
  .window { border-radius: 12px; }
  .cinema-inner { padding: 64px 8px 16px; }
  .cinema-frame video { max-height: calc(100vh - 190px); }
}
@media (prefers-reduced-motion: reduce) { .pill i { animation: none; } .cinema[open] { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, transform .2s; }
.shot:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.shot a { display: block; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; background: var(--surface-2); }
.shot figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; }
.shot figcaption b { display: block; font-size: 1rem; }
.shot figcaption span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.chip { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.6; }
.chip.light { background: #F4F8FF; color: #0B1F3A; }
.chip.dark { background: #061226; color: var(--cyan); border: 1px solid rgba(124,199,242,0.45); }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cap { padding: 28px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s; }
.cap:hover { border-color: var(--border-strong); }
.cap-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--cyan-soft); border: 1px solid rgba(124,199,242,0.3); color: var(--cyan); margin-bottom: 18px; }
.cap-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { font-size: 1.25rem; font-weight: 650; margin-bottom: 8px; }
.cap p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.cap ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cap li { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); font-size: 0.8rem; color: var(--text); }

/* Architecture */
.arch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.layer { background: var(--surface-2); padding: 26px 22px; }
.layer .lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.layer h3 { font-size: 1.12rem; margin: 10px 0 6px; }
.layer .tech { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 6px; border: 1px solid rgba(124,199,242,0.3); background: rgba(124,199,242,0.08); color: var(--cyan); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; }
.layer p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stack span { padding: 6px 12px; border-radius: 6px; background: rgba(124,199,242,0.06); border: 1px solid var(--border); font-size: 0.8rem; }

/* Studio callout */
.callout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 44px 40px; border-radius: 20px;
  border: 1px solid rgba(124,199,242,0.38); position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(124,199,242,0.16), transparent 55%), linear-gradient(180deg, rgba(13,33,64,0.9), rgba(10,27,51,0.9));
  box-shadow: 0 0 24px rgba(124,199,242,0.2), 0 20px 50px -20px rgba(0,0,0,0.6);
}
.callout::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); }
.callout h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.callout p { margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; }
.callout-side { display: flex; flex-direction: column; gap: 12px; }
.callout-side .btn { width: 100%; }
.callout-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.callout-facts div { padding: 12px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(6,18,38,0.55); text-align: center; }
.callout-facts b { display: block; color: var(--cyan); font-size: 1.05rem; }
.callout-facts span { display: block; color: var(--muted); font-size: 0.74rem; margin-top: 2px; }

/* Other product */
.next-product { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 24px 28px; border-radius: 16px; border: 1px dashed rgba(124,199,242,0.4); background: var(--cyan-soft); }
.next-product p { margin: 0; color: var(--muted); }
.next-product strong { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.foot a { color: var(--text); border-bottom: 1px solid var(--border-strong); transition: color .15s, border-color .15s; }
.foot a:hover { color: var(--cyan); border-color: var(--cyan); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .gallery { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .arch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout { grid-template-columns: minmax(0, 1fr); padding: 34px 26px; }
}
@media (max-width: 860px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { position: absolute; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: rgba(6,18,38,0.97); border-bottom: 1px solid var(--border); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--cyan); }
  .nav-links a:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 40px; }
  .container { padding: 0 20px; }
  .hero-actions .btn { width: 100%; }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .cap { padding: 22px; }
  .callout-facts b { font-size: 0.95rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge i { animation: none; }
}
