@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'),
       url('/assets/fonts/space-grotesk.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-600.woff2') format('woff2'),
       url('/assets/fonts/space-grotesk.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2'),
       url('/assets/fonts/space-grotesk.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* Fallback aliases for existing styles */
@font-face {
  font-family: 'Space';
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'),
       url('/assets/fonts/space-grotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope.ttf') format('truetype');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Space', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --bg: #06090e;
  --surface: #0c111a;
  --surface-card: rgba(14, 21, 33, 0.78);
  --surface-card-hover: rgba(20, 30, 48, 0.88);
  --surface-elevated: #162030;
  --text: #f8fafc;
  --soft: #cbd5e1;
  --muted: #94a3b8;
  --dim: #64748b;
  --mint: #5ce6b0;
  --mint-bright: #7df5c3;
  --mint-glow: rgba(92, 230, 176, 0.28);
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.25);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.25);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-glow: rgba(92, 230, 176, 0.4);
  --container: 1220px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-hover: 0 24px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(92, 230, 176, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 18% 12%, rgba(92, 230, 176, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, #06090e 0%, #080c14 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

::selection {
  color: #04120a;
  background: var(--mint);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 14, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s;
}

.header-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(101, 227, 223, 0.16));
  image-rendering: auto;
  transform: translateZ(0);
}

.brand > span > span {
  font-weight: 500;
  color: var(--mint);
}

.studio-label {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 550;
  color: var(--soft);
}

.header-nav a {
  position: relative;
  padding-block: 8px;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text);
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transition: right 0.25s ease;
}

.header-nav a:hover::after {
  right: 0;
}

.portal-auth-slot {
  position: relative;
  display: flex;
  align-items: center;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(92, 230, 176, 0.3);
  border-radius: var(--radius-full);
  background: rgba(92, 230, 176, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-cta:hover {
  background: rgba(92, 230, 176, 0.14);
  border-color: var(--mint);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--mint-glow);
}

.header-cta svg {
  width: 13px;
  height: 13px;
  color: var(--mint);
  transition: transform 0.2s;
}

.header-cta:hover svg {
  transform: translate(2px, -2px);
}

.cta-full {
  display: inline;
}

.cta-short {
  display: none;
}

@media (max-width: 760px) {
  .cta-full {
    display: none;
  }
  .cta-short {
    display: inline;
  }
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Eyebrows, Badges, Buttons */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow .status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.button svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.button-primary {
  color: #04120a;
  background: linear-gradient(135deg, #7df5c3 0%, #5ce6b0 60%, #40cca0 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(92, 230, 176, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button-primary:hover {
  background: linear-gradient(135deg, #8effcf 0%, #68f0b8 60%, #4adeb2 100%);
  box-shadow: 0 8px 30px rgba(92, 230, 176, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  color: #020b06;
}

.button-primary:active {
  transform: translateY(0);
}

.button-primary:hover svg {
  transform: translate(2px, -2px);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.button-secondary:hover svg {
  transform: translate(2px, -2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 550;
  transition: color 0.2s;
}

.text-link svg {
  width: 13px;
  height: 13px;
  color: var(--mint);
  transition: transform 0.2s;
}

.text-link:hover {
  color: #fff;
}

.text-link:hover svg {
  transform: translate(2px, -2px);
}

.section-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill::before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 14, 0.95);
  position: relative;
  z-index: 10;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand .brand {
  font-size: 19px;
}

.footer-brand .brand img {
  width: 32px;
  height: 32px;
}

.copyright {
  font-size: 13px;
  color: var(--dim);
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

.footer-nav a {
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--mint);
}

.footer-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
}

.footer-back svg {
  width: 12px;
  height: 12px;
}

/* Scroll reveal animations */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 200;
  color: #04120a;
  background: var(--mint);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 20px;
}

/* Responsive Media Queries */
@media (min-width: 1600px) {
  :root {
    --container: 1320px;
  }
}

@media (max-width: 1100px) {
  .studio-label {
    display: none;
  }
  .header-row {
    gap: 20px;
  }
  .header-nav {
    gap: 20px;
    font-size: 13px;
  }
  .container {
    width: calc(100% - 48px);
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .header-row {
    min-height: 70px;
    gap: 12px;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .header-cta {
    margin-left: auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
    gap: 8px;
  }
  .menu-toggle {
    display: block;
    flex: none;
  }
  .header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(12, 17, 26, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .header-nav.is-open {
    display: flex;
  }
  .header-nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }
  .header-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  .header-nav a::after {
    display: none;
  }
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }
  .footer-brand {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }
  .footer-nav {
    width: 100%;
    gap: 20px;
    font-size: 12px;
  }
  .footer-back {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .header-row {
    gap: 10px;
  }
  .brand {
    font-size: 18px;
  }
  .header-cta {
    padding: 0 12px;
    font-size: 11px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-motion .reveal {
    opacity: 1;
    transform: none;
  }
}
