/* filOS — shared stylesheet (modern) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #2f6bff;
  --blue-600: #1f54e0;
  --blue-050: #eef3ff;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --ink: #0a0e1a;
  --ink-2: #1a2032;
  --muted: #5c6773;
  --muted-2: #8a94a3;
  --line: #e8ebf0;
  --line-2: #f0f2f5;
  --surface: #fafbfc;
  --white: #ffffff;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --shadow-sm: 0 1px 2px rgba(10,14,26,0.04);
  --shadow: 0 1px 3px rgba(10,14,26,0.05), 0 8px 32px rgba(10,14,26,0.04);
  --shadow-lg: 0 24px 64px -12px rgba(10,14,26,0.12), 0 8px 20px -8px rgba(10,14,26,0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1200px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
body.dark {
  background: #050710;
  color: #e6e9ef;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; gap: 40px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.045em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 2px;
}
.logo .fil { color: var(--blue); }
.logo .mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(135deg, var(--blue), #0a7bff);
  display: inline-block; margin-right: 8px;
  position: relative;
}
.logo .mark::after {
  content: ''; position: absolute; inset: 4px;
  border-radius: 2px; border: 2px solid rgba(255,255,255,0.95);
  border-right: none; border-bottom: none;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-actions .secondary {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 14px;
}
.nav-actions .secondary:hover { color: var(--ink); }

.nav.dark {
  background: rgba(5,7,16,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav.dark .logo { color: #fff; }
.nav.dark .nav-links a { color: rgba(255,255,255,0.55); }
.nav.dark .nav-links a:hover, .nav.dark .nav-links a.active { color: #fff; }
.nav.dark .nav-actions .secondary { color: rgba(255,255,255,0.7); }
.nav.dark .nav-actions .secondary:hover { color: #fff; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 20px -8px rgba(47,107,255,0.6); }
.btn-blue:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dark {
  background: rgba(255,255,255,0.04); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn .arrow { transition: transform .15s; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px; background: currentColor;
}
h1.display {
  font-size: clamp(44px, 6.5vw, 82px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
h2.display {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.05;
}
h3.display {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
}
.lede {
  font-size: 19px; color: var(--muted);
  line-height: 1.55; font-weight: 400;
  letter-spacing: -0.005em;
}
body.dark .lede { color: rgba(255,255,255,0.6); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.gradient-text {
  background: linear-gradient(135deg, #0a0e1a 0%, #2f6bff 60%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.dark .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #8bb4ff 60%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: #d4d8de; box-shadow: var(--shadow); }
.card-dark {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .2s;
}
.card-dark:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); }

/* ─── SECTIONS ─── */
section { padding: 120px 0; position: relative; }
section.tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; margin-bottom: 16px; }
.section-head p { font-size: 19px; color: var(--muted); }
body.dark .section-head p { color: rgba(255,255,255,0.55); }

/* ─── BADGE ─── */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 8px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.badge-pill.dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(12px);
}
.badge-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ─── FOOTER ─── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer h5 {
  font-size: 12px; font-weight: 600; color: var(--ink);
  margin-bottom: 18px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer a {
  display: block; font-size: 14px; padding: 6px 0;
  color: var(--muted); transition: color .15s;
}
.footer a:hover { color: var(--ink); }
.footer-brand-blurb {
  font-size: 14px; line-height: 1.6; max-width: 280px;
  margin: 14px 0 16px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  flex-wrap: wrap; gap: 12px;
}

.footer.dark {
  background: #050710;
  border-top-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}
.footer.dark h5 { color: #fff; }
.footer.dark a { color: rgba(255,255,255,0.5); }
.footer.dark a:hover { color: #fff; }
.footer.dark .footer-bottom { border-top-color: rgba(255,255,255,0.06); }

/* ─── UTILS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  h1.display { font-size: 44px; }
  h2.display { font-size: 32px; }
  section { padding: 72px 0; }
}

/* More granular responsive */
@media (max-width: 1100px) {
  :root { --max: 1040px; }
}
@media (max-width: 768px) {
  .container, .container-wide, .nav-inner { padding: 0 20px; }
  .nav-actions .secondary { display: none; }
  .nav-inner { gap: 16px; height: 58px; }
  h1.display { font-size: 38px; letter-spacing: -0.035em; }
  h2.display { font-size: 28px; letter-spacing: -0.028em; }
  h3.display { font-size: 18px; }
  .lede { font-size: 16px; }
  .section-head { margin-bottom: 40px; }
  section { padding: 56px 0; }
  .btn { padding: 10px 16px; font-size: 13.5px; }
  .btn-lg { padding: 12px 18px; font-size: 14px; }
  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 32px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container, .container-wide, .nav-inner { padding: 0 16px; }
  h1.display { font-size: 32px; line-height: 1.05; }
  h2.display { font-size: 24px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* decorative backdrops */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(10,14,26,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,14,26,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.bg-grid-dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.aurora::before, .aurora::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.55;
}
.aurora::before {
  width: 700px; height: 700px; top: -300px; left: 10%;
  background: radial-gradient(closest-side, rgba(47,107,255,0.35), transparent);
}
.aurora::after {
  width: 600px; height: 600px; top: -200px; right: 5%;
  background: radial-gradient(closest-side, rgba(6,182,212,0.28), transparent);
}

/* noise */
.noise::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: overlay; z-index: 1;
}

/* marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; animation: marquee 30s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* page hero wrapper */
.page-hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
