/* ============================================
   SIRIUS SHARED CSS — v1
   Used by subpages (solutions, security, demo-request).
   Main index.html keeps its own inline block.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #0c111c;
  --bg-surface: #161c2b;
  --bg-elevated: #1f2638;
  --bg-raised: #28324a;

  --text: rgba(255,255,255,0.95);
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.5);
  --text-faint: rgba(255,255,255,0.3);

  --accent: #ff8a1f;
  --accent-hover: #ffa347;
  --accent-warm: #ffb347;
  --accent-gold: #ffc857;
  --accent-dim: rgba(255,138,31,0.14);
  --accent-glow: rgba(255,138,31,0.1);

  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.16);
  --border-strong: rgba(255,255,255,0.26);

  --green: #22d97f;
  --red: #ff5252;
  --blue: #5eb8ff;
  --cyan: #4dd4ff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --cream: #e8dfc8;
  --cream-dim: rgba(232,223,200,0.6);
  --sg-red: #d71440;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 56px; } }

.container--narrow { max-width: 920px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow__num { color: rgba(255,130,0,0.5); font-weight: 600; }

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 44px);
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 720px;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.section-center { text-align: center; }
.section-center .section-headline,
.section-center .section-sub { margin-left: auto; margin-right: auto; }
.section-center .eyebrow { justify-content: center; }

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 20px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

[id^="s-"] { scroll-margin-top: 80px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.btn-primary { color: #0a0c11; background: #fff; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(255,255,255,0.3);
}
.btn-primary svg { color: var(--accent); }

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--border-strong); }

.btn svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(2px); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,12,17,0.78);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 24px; height: 24px; }

.nav-wordmark {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-by {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding-left: 10px;
  border-left: 1px solid var(--border-bright);
  margin-left: 4px;
}

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 8px 2px;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-drawer__link.active { color: var(--accent); }

.nav-cta {
  font-weight: 600;
  font-size: 14px;
  color: #0a0c11;
  background: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta svg { color: var(--accent); width: 13px; height: 13px; transition: transform 0.2s; }
.nav-cta:hover svg { transform: translateX(2px); }

.nav-mobile-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.nav-mobile-btn svg { width: 18px; height: 18px; }

.nav-drawer {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(10,12,17,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }

.nav-drawer__link {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer__cta { margin-top: 24px; justify-content: center; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-by { display: none; }
  .nav-mobile-btn { display: inline-flex; }
}

/* ===== FOOTER ===== */
.footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
}

.footer__brand-block { max-width: 320px; }

.footer__wordmark-big { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__logo { width: 24px; height: 24px; }
.footer__wordmark { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.02em; }

.footer__tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer__social { display: flex; gap: 10px; }

.footer__social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.footer__social-link:hover {
  background: rgba(255,130,0,0.1);
  border-color: rgba(255,130,0,0.3);
  color: var(--accent);
}
.footer__social-link svg { width: 16px; height: 16px; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer__col-links a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__copy, .footer__addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===== SUBPAGE COMMON ===== */
.subpage-hero {
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 800px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none;
}

.subpage-hero__inner { position: relative; z-index: 1; max-width: 760px; }

.subpage-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,130,0,0.08);
  border: 1px solid rgba(255,130,0,0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.subpage-hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.subpage-hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.2vw, 56px);
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 20px;
}

.subpage-hero__headline .accent { color: var(--accent); }

.subpage-hero__sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 640px;
}

.subpage-hero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.subpage-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.subpage-section__header { margin-bottom: 56px; }

/* ===== SUBPAGE BLOCKS ===== */
.capabilities { padding: 100px 0; border-bottom: 1px solid var(--border); }
.capabilities__header { margin-bottom: 56px; max-width: 680px; }
.cap-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .cap-grid { grid-template-columns: 1fr 1fr 1fr; } }

.cap-card {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.cap-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.cap-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(232,223,200,0.06);
  border: 1px solid rgba(232,223,200,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  margin-bottom: 20px;
}
.cap-card__title {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.cap-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.showcase { padding: 120px 0; border-bottom: 1px solid var(--border); }
.showcase__header { text-align: center; margin-bottom: 56px; }
.showcase__header .section-headline,
.showcase__header .section-sub {
  margin-left: auto;
  margin-right: auto;
}
.showcase__header .eyebrow { justify-content: center; }
.showcase__frame {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.3s var(--ease);
  position: relative;
}
.showcase__frame:hover { transform: translateY(-3px); }

.showcase__frame picture, .showcase__frame > picture {
  display: block;
  position: relative;
  overflow: hidden;
}

.showcase__frame::after {
  content: 'View Live Demo →';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  color: #0a0c11;
  background: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s var(--ease);
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.15);
  letter-spacing: -0.005em;
}

.showcase__frame::before {
  content: '';
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,12,17,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.showcase__frame:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.showcase__frame:hover::before { opacity: 1; }
.showcase__frame:hover .showcase__img { transform: scale(1.02); filter: brightness(0.7); }

.showcase__img { transition: transform 0.5s var(--ease), filter 0.3s ease; }
.showcase__chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}
.showcase__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.showcase__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 10px;
  letter-spacing: 0.03em;
}
.showcase__live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.showcase__live::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px rgba(48,214,122,0.6);
}
.showcase__img { width: 100%; height: auto; display: block; }

.usecases { padding: 100px 0; border-bottom: 1px solid var(--border); }
.usecases__header { margin-bottom: 56px; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.uc-list { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
@media (min-width: 768px) { .uc-list { grid-template-columns: 1fr 1fr; } }

.uc-card {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.uc-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.uc-card__title {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.uc-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.cta-sub { padding: 120px 0; position: relative; overflow: hidden; text-align: center; }
.cta-sub::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(255,130,0,0.08), transparent 60%);
  pointer-events: none;
}
.cta-sub__inner { position: relative; z-index: 1; }
.cta-sub__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 44px);
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-sub__sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-sub__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
