@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0d10;
  --bg-trans: rgba(10, 13, 16, 0.94);
  --panel: #12171b;
  --panel-2: #161c21;
  --panel-hover: #1c242b;
  --line: #262e35;
  --line-soft: #1b2126;
  --line-bright: #3d4a56;
  --text: #e7ebee;
  --muted: #8b96a0;
  --muted-2: #5c6670;
  --accent: #ff6a3d;
  --accent-hover: #ff7f57;
  --accent-dim: #7a3722;
  --accent-glow: rgba(255, 106, 61, 0.18);
  --accent-2: #33c9d9;
  --accent-2-dim: rgba(51, 201, 217, 0.15);
  --success: #2ecc71;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--accent);
  color: #0a0d10;
}

.mono {
  font-family: var(--font-mono);
}

/* Blueprint grid backdrop */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
}

/* Scroll Container for Deck Slide Mode */
.deck {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.slide {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 8vw 90px;
  border-bottom: 1px solid var(--line-soft);
}

/* Standard Page Layout (for inner routes / subpages) */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 6vw 90px;
}

/* Top Nav */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8vw;
  background: linear-gradient(to bottom, rgba(10, 13, 16, 0.96) 60%, rgba(10, 13, 16, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(38, 46, 53, 0.4);
}

.topnav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  pointer-events: auto;
}

.topnav .brand img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.topnav .brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
}

.topnav .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  pointer-events: auto;
}

.topnav .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  transition: color .2s ease;
  position: relative;
}

.topnav .nav-link:hover,
.topnav .nav-link.active {
  color: var(--accent);
}

.topnav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.topnav .nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topnav .slide-index {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  pointer-events: auto;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Side Dots Nav */
.sidenav {
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidenav a {
  width: 9px;
  height: 9px;
  border-radius: 1px;
  border: 1px solid var(--muted-2);
  background: transparent;
  transform: rotate(45deg);
  transition: all .25s ease;
  cursor: pointer;
  display: block;
}

.sidenav a.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, .15);
}

@media (max-width: 920px) {
  .sidenav {
    display: none;
  }
  .topnav .nav-links {
    display: none;
  }
  .topnav .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px 8vw;
    gap: 18px;
  }
  .menu-toggle {
    display: block;
  }
}

/* Global Typography & Kickers */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.kicker .bar {
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.kicker.cyan {
  color: var(--accent-2);
}
.kicker.cyan .bar {
  background: var(--accent-2);
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(38px, 5.5vw, 80px);
}

h2 {
  font-size: clamp(28px, 3.5vw, 48px);
}

p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all .2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #160c07;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(255, 106, 61, 0.4);
}

.btn.cyan {
  background: var(--accent-2);
  color: #061c21;
  border-color: var(--accent-2);
}

.btn.cyan:hover {
  background: #50e0ef;
  box-shadow: 0 0 20px rgba(51, 201, 217, 0.4);
}

.btn.ghost:hover {
  border-color: var(--muted);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12.5px;
}

/* Footer Section */
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 30px;
  margin-top: 60px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-row .socials {
  display: flex;
  gap: 20px;
}

.footer-row a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-row a:hover {
  color: var(--accent);
}

