@import url("/site-nav.css");
/*
 * Shared visual shell for the standalone pages in public/ (agentic-ai.html,
 * research.html). Those pages are static files, so they don't get the Next.js
 * root layout — this file reproduces the home page's look so the whole site
 * reads as one brand. Values are copied from app/globals.css, the Tailwind
 * palette and components/ui/{SiteNav,LanguageSwitcher,SiteFooter}.
 * If the home page's shell changes, change this file with it.
 */
:root {
  --night: #0a0e14;
  --panel: #101724;
  --line: #1e2a3a;
  --snow: #eaf0f6;
  --fog: #8fa0b3;
  --gold: #e9b44c;
  --teal: #5ed3c4;
  --coral: #e8836f;
}

body { background: var(--night); }

::selection { background: rgba(233, 180, 76, 0.35); color: #eaf0f6; }
* { scrollbar-width: thin; scrollbar-color: #1e2a3a transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #1e2a3a; border-radius: 8px; }

/* ambient layer (home: .noise-overlay). The particle canvas and cursor glow
   were removed site-wide in PRD amendment 8 (decorative, no evidence value). */
.noise-overlay { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* backdrops (home: .hero-backdrop, .section-grid) */
.hero-backdrop {
  background-image:
    radial-gradient(ellipse 70% 45% at 70% 0%, rgba(233, 180, 76, 0.18), transparent 60%),
    radial-gradient(ellipse 55% 40% at 5% 95%, rgba(94, 211, 196, 0.12), transparent 60%),
    radial-gradient(circle, rgba(143, 160, 179, 0.22) 1px, transparent 1.4px);
  background-size: auto, auto, 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}
.section-grid {
  background-image: radial-gradient(circle, rgba(143, 160, 179, 0.1) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 100%);
}
.shell-bg { position: relative; isolation: isolate; }
.shell-bg > .bg-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bg-blob { position: absolute; z-index: -1; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.bg-blob.teal { background: rgba(94, 211, 196, .06); }
.bg-blob.gold { background: rgba(233, 180, 76, .05); }

/* site nav: see site-nav.css */

/* language pill (home: LanguageSwitcher at fixed right-4 top-4) */
.lang-pill { position: fixed; right: 16px; top: 16px; z-index: 50; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(10,14,20,.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 6px 14px; font: 600 12px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fog); transition: color .15s, border-color .15s; }
.lang-pill:hover { border-color: rgba(233,180,76,.6); color: var(--gold); }
.lang-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* home section heading: gold rule + display serif */
.shell-h2 { display: flex; align-items: baseline; gap: 16px; }
.shell-h2::before { content: ""; flex: none; width: 32px; height: 1px; background: rgba(233,180,76,.7); transform: translateY(-.35em); }

/* home card surface */
.shell-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

@media (min-width: 640px) {
  .shell-h2::before { width: 48px; }
}
/* the phone nav (five visible items) + the language pill only just fit at 320px */
@media (max-width: 359px) {
  .lang-pill { right: 12px; padding: 6px 10px; }
}
/* site footer (home: components/ui/SiteFooter.tsx) */
body > footer.site-footer { border-top: 1px solid rgba(30,42,58,.6); padding: 40px 24px; color: var(--fog); font-size: 13px; }
.site-footer .sf-row { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .sf-kicker { margin: 0 0 10px; font: 400 11px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: rgba(143,160,179,.7); }
.site-footer .sf-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .sf-more { align-self: flex-end; }
.site-footer a { font: 400 12px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .12em; color: var(--fog); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.site-footer .sf-copy { max-width: 1040px; margin: 28px auto 0; font-size: 12px; color: rgba(143,160,179,.7); }
