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

:root {
  --background: 37 44% 95%;
  --foreground: 210 38% 15%;
  --border: 35 21% 82%;
  --card: 36 50% 98%;
  --card-foreground: 210 38% 15%;
  --card-border: 35 21% 82%;
  --primary: 19 88% 66%;
  --primary-foreground: 210 38% 15%;
  --secondary: 164 31% 67%;
  --secondary-foreground: 210 38% 15%;
  --muted: 35 23% 89%;
  --muted-foreground: 210 17% 42%;
  --accent: 207 35% 19%;
  --accent-foreground: 37 44% 95%;
  --destructive: 2 67% 51%;
  --destructive-foreground: 37 44% 95%;
  --input: 35 21% 82%;
  --ring: 19 88% 66%;

  --app-font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --app-font-mono: 'DM Mono', monospace;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  min-width: 320px;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.font-mono-custom {
  font-family: var(--app-font-mono) !important;
}

.font-display {
  font-family: var(--app-font-sans) !important;
}

.text-balance {
  text-wrap: balance;
}

.brand-grid {
  background-image: linear-gradient(hsl(207 35% 19% / 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, hsl(207 35% 19% / 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.noise::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.page-enter {
  animation: pageEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rise-in {
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.delay-1 { animation-delay: 90ms; }
.delay-2 { animation-delay: 170ms; }
.delay-3 { animation-delay: 250ms; }
.delay-4 { animation-delay: 330ms; }

.route-line {
  stroke-dasharray: 8 10;
  animation: routeDash 18s linear infinite;
}

.float-slow {
  animation: floatSlow 7s ease-in-out infinite;
}

.pulse-dot {
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes routeDash {
  to { stroke-dashoffset: -360; }
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 0.45; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Google Translate Widget Override */
.goog-te-gadget-simple {
  background-color: transparent !important;
  border: 1px solid hsl(var(--border)) !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-family: var(--app-font-mono) !important;
}

.goog-te-gadget-simple a {
  color: hsl(var(--muted-foreground)) !important;
  text-decoration: none !important;
}

.goog-te-banner-frame.skiptranslate,
.skiptranslate iframe {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
}
