:root {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #10b981;
  --accent-subtle: rgba(16, 185, 129, 0.08);
  --border: #27272a;
  --radius: 4px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Typography Utilities */
.font-display {
  font-family: "Instrument Serif", serif;
}

.font-body {
  font-family: "DM Sans", sans-serif;
}

/* Custom Utilities */
.site-bg {
    /* Maintained for compatibility if needed, but body rule covers it */
}

/* Animations */
@keyframes pelican-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.animate-scroll {
  animation: pelican-marquee 30s linear infinite;
  will-change: transform;
}
@media (max-width: 640px) {
  .animate-scroll {
    animation-duration: 12s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .animate-scroll {
    animation: none !important;
    transform: none !important;
  }
}

/* Integrations Scroll Snap */
.integrations-snap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.integrations-snap::-webkit-scrollbar { display: none; }

.integration-pill {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.integration-pill:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Cursor Blink */
.input-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Section Dual Gradient Animation */
.hero-solar {
  position: relative;
}

/* Prevent rare long-word overflows in hero headings (e.g. custom copy) */
.hero-solar h1 {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Left side: Text section - Soft emerald bokeh with purple accent */
.hero-text-gradient {
  position: relative;
}

.hero-text-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background:
    radial-gradient(
      ellipse 600px 500px at 25% 45%,
      rgba(34, 211, 149, 0.22) 0%,
      rgba(16, 185, 129, 0.16) 15%,
      rgba(16, 185, 129, 0.08) 35%,
      rgba(16, 185, 129, 0.03) 55%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 400px 400px at 35% 60%,
      rgba(139, 92, 246, 0.12) 0%,
      rgba(124, 58, 237, 0.06) 30%,
      transparent 60%
    );
  animation: hero-text-pulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

@keyframes hero-text-pulse {
  0%, 100% {
    opacity: 0.7;
    transform: translate(0, 0) scale(1);
  }
  33% {
    opacity: 1;
    transform: translate(-8%, 10%) scale(1.15);
  }
  66% {
    opacity: 0.85;
    transform: translate(10%, -8%) scale(0.92);
  }
}

/* Right side: IDE mockup - Soft cyan-emerald bokeh with blue tones */
.hero-ide-gradient {
  position: relative;
}

.hero-ide-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background:
    radial-gradient(
      ellipse 700px 600px at 70% 40%,
      rgba(14, 165, 233, 0.18) 0%,
      rgba(6, 182, 212, 0.12) 20%,
      rgba(6, 182, 212, 0.05) 40%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 500px 500px at 55% 65%,
      rgba(34, 211, 149, 0.14) 0%,
      rgba(16, 185, 129, 0.08) 25%,
      rgba(16, 185, 129, 0.03) 50%,
      transparent 70%
    );
  animation: hero-ide-shift 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

@keyframes hero-ide-shift {
  0%, 100% {
    opacity: 0.8;
    transform: translate(0, 0) scale(1);
  }
  25% {
    opacity: 1;
    transform: translate(12%, -10%) scale(1.12);
  }
  50% {
    opacity: 0.85;
    transform: translate(-8%, 8%) scale(1.05);
  }
  75% {
    opacity: 0.9;
    transform: translate(10%, -5%) scale(0.94);
  }
}

/* Ensure content stays above gradients */
.hero-text-gradient > *,
.hero-ide-gradient > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-text-gradient::before,
  .hero-ide-gradient::before {
    animation: none !important;
    opacity: 0.6;
    transform: none;
  }
}

/* Integrations Section - Soft horizontal bokeh sweep with purple hints */
.integrations-gradient {
  position: relative;
}

.integrations-gradient::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -100%;
  right: -100%;
  bottom: -30%;
  background:
    radial-gradient(
      ellipse 800px 300px at 30% 50%,
      rgba(34, 211, 149, 0.14) 0%,
      rgba(16, 185, 129, 0.08) 30%,
      rgba(14, 165, 233, 0.1) 50%,
      rgba(6, 182, 212, 0.05) 70%,
      transparent 85%
    ),
    radial-gradient(
      ellipse 600px 250px at 70% 50%,
      rgba(124, 58, 237, 0.08) 0%,
      rgba(16, 185, 129, 0.06) 40%,
      transparent 75%
    );
  animation: integrations-wave 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

@keyframes integrations-wave {
  0%, 100% {
    transform: translateX(-15%);
    opacity: 0.7;
  }
  50% {
    transform: translateX(35%);
    opacity: 1;
  }
}

.integrations-gradient > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .integrations-gradient::before {
    animation: none !important;
    opacity: 0.6;
    transform: none;
  }
}

/* Custom Scrollbar for Terminal if needed */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
