@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/*
 * Theme tokens.
 *
 * The channel triples (--primary-rgb etc.) are what make the palette
 * admin-editable: every translucent colour in this file is built with
 * rgb(var(--x-rgb) / <alpha>) rather than a baked-in rgba() literal, so
 * changing one variable restyles the whole site. ThemeStyle injects
 * overrides for these from the database at request time.
 */
:root {
  --background: #08080f;
  --background-rgb: 8 8 15;
  --foreground: #f0f0f5;
  --foreground-rgb: 240 240 245;
  --primary: #ff6b35;
  --primary-rgb: 255 107 53;
  --primary-light: #ff9a6c;
  --primary-deep: #ff4500;
  --secondary: #00d4ff;
  --secondary-rgb: 0 212 255;
  --muted: #1a1a2e;
  --muted-foreground: #6b6b8a;
  --radius: 12px;

  --font-display: 'Orbitron', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --glow-orange: 0 0 20px rgb(var(--primary-rgb) / 0.4), 0 0 60px rgb(var(--primary-rgb) / 0.15);
  --glow-cyan: 0 0 20px rgb(var(--secondary-rgb) / 0.4), 0 0 60px rgb(var(--secondary-rgb) / 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: rgb(var(--primary-rgb) / 0.4);
  border-radius: 2px;
}

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

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

.glass {
  background: rgb(255 255 255 / 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.glass-card {
  background: rgb(255 255 255 / 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgb(var(--primary-rgb) / 0.12);
  border-radius: var(--radius);
}

.glow-orange {
  box-shadow: var(--glow-orange);
}

.glow-cyan {
  box-shadow: var(--glow-cyan);
}

.text-gradient-orange {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-multi {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 24px rgb(var(--primary-rgb) / 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgb(var(--primary-rgb) / 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: 1px solid rgb(255 255 255 / 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: rgb(var(--primary-rgb) / 0.6);
  color: var(--primary);
  box-shadow: 0 0 20px rgb(var(--primary-rgb) / 0.15);
  transform: translateY(-2px);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.card-3d:hover {
  box-shadow: 0 30px 80px rgb(var(--primary-rgb) / 0.2), 0 0 40px rgb(0 0 0 / 0.4);
}

.node-glow {
  box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.15), 0 0 20px rgb(var(--primary-rgb) / 0.4);
}

.input-field {
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 6px;
  padding: 0.875rem 1.25rem;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: rgb(var(--primary-rgb) / 0.5);
  box-shadow: 0 0 20px rgb(var(--primary-rgb) / 0.1);
  background: rgb(var(--primary-rgb) / 0.04);
}

.input-field::placeholder {
  color: rgb(var(--foreground-rgb) / 0.3);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(2deg); }
  66% { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 20px rgb(var(--primary-rgb) / 0.4); }
  50% { opacity: 1; box-shadow: 0 0 40px rgb(var(--primary-rgb) / 0.7); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float 8s ease-in-out infinite 2s; }
.animate-float-delay2 { animation: float 7s ease-in-out infinite 4s; }
.animate-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-orb { animation: orb-drift 12s ease-in-out infinite; }
.animate-orb-delay { animation: orb-drift 16s ease-in-out infinite 4s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up 0.8s ease forwards;
}

.fade-up-delay-1 { animation: fade-up 0.8s ease 0.15s both; }
.fade-up-delay-2 { animation: fade-up 0.8s ease 0.3s both; }
.fade-up-delay-3 { animation: fade-up 0.8s ease 0.45s both; }
.fade-up-delay-4 { animation: fade-up 0.8s ease 0.6s both; }

@keyframes bubble-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.bubble-1 { animation: bubble-float 5s ease-in-out infinite; }
.bubble-2 { animation: bubble-float 7s ease-in-out infinite 1.5s; }
.bubble-3 { animation: bubble-float 6s ease-in-out infinite 3s; }

@media (max-width: 768px) {
  .hero-canvas { display: none; }
}

/* The Make original hard-coded two-column grids; these keep them usable on
   small screens now that the layout is no longer preview-only. */
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .process-visual { display: none !important; }
}
