/* Atlaris Technologies — Design System
   -------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/style.css');
@import url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/style.css');

:root {
  /* Brand tokens */
  --midnight: #0B1F3A;
  --midnight-800: #142a4a;
  --midnight-700: #1e3760;
  --electric: #007BFF;
  --teal: #00C2A8;
  --accent: var(--teal); /* tweakable */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #111827;
  --ink-2: #364152;
  --ink-3: #6B7280;
  --ink-4: #9CA3AF;
  --hairline: rgba(11, 31, 58, 0.08);
  --hairline-strong: rgba(11, 31, 58, 0.14);

  /* Type */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.04), 0 1px 3px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.06), 0 2px 4px rgba(11, 31, 58, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(11, 31, 58, 0.18), 0 12px 24px -12px rgba(11, 31, 58, 0.08);
  --shadow-glow: 0 30px 80px -30px rgba(0, 194, 168, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Typography scale */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--midnight);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.4vw, 88px); letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 20px; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }

.serif-italic { font-style: italic; color: var(--midnight); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
.body { color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
.muted { color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--midnight);
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(11, 31, 58, 0.45);
}
.btn-primary .arrow { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: transparent;
  color: var(--midnight);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover {
  border-color: var(--midnight);
  background: rgba(11, 31, 58, 0.04);
}

.btn-accent {
  background: var(--accent);
  color: var(--midnight);
  font-weight: 600;
}
.btn-accent:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px color-mix(in oklab, var(--accent) 60%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--midnight);
  padding: 12px 0;
}
.btn-ghost:hover { color: var(--accent); }

/* Layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--midnight);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--midnight);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 450;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--midnight); background: rgba(11, 31, 58, 0.04); }
.nav-links a.active { color: var(--midnight); font-weight: 500; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--hairline-strong);
    border-radius: 10px;
  }
}

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--hairline);
  background: #fff;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 32px 20px; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 16px; color: var(--midnight); border-bottom: 1px solid var(--hairline); }
.mobile-menu li:last-child a { border-bottom: none; }

/* Section header */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head-copy { max-width: 640px; }
.section-head h2 { margin-top: 12px; }
.section-head .lead { margin-top: 20px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}
.card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card h3 { font-family: var(--font-sans); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin: 8px 0 0; }

/* Icons */
.icn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--midnight);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.icn svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* Hairline dividers */
.hairline { height: 1px; background: var(--hairline); border: 0; }

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background: var(--midnight);
  color: rgba(255,255,255,0.72);
}
.site-footer .wrap { padding: 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h5 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin: 0 0 20px;
}
.footer-grid a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--accent); }
.footer-brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14.5px; margin: 16px 0 24px; max-width: 34ch; line-height: 1.55; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Utility */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .g-4, .g-3, .g-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}

/* Tags / pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(11, 31, 58, 0.04);
  border: 1px solid var(--hairline);
  color: var(--midnight);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Ambient gradient orb */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

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

/* Selection */
::selection { background: var(--midnight); color: #fff; }
