@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --ink: #071018;
  --ink-2: #0d1b24;
  --panel: rgba(14, 32, 42, 0.72);
  --line: rgba(148, 211, 188, 0.18);
  --mint: #3dffb5;
  --mint-dim: #1faa78;
  --sand: #d7c4a3;
  --fog: #b7c5c0;
  --white: #f4f7f5;
  --danger: #ff6b4a;
  --background: var(--ink);
  --foreground: var(--white);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-dm-sans), system-ui, sans-serif;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 700px at 10% -10%, rgba(61, 255, 181, 0.16), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(215, 196, 163, 0.12), transparent 50%),
    linear-gradient(165deg, #071018 0%, #0a1620 45%, #0b1f1a 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(61, 255, 181, 0.35);
  color: var(--white);
}

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

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes drift {
  0% {
    transform: translateX(-4%) translateY(0);
  }
  50% {
    transform: translateX(3%) translateY(-1.5%);
  }
  100% {
    transform: translateX(-4%) translateY(0);
  }
}

.animate-rise {
  animation: rise 0.8s ease-out both;
}

.animate-rise-delay {
  animation: rise 0.9s ease-out 0.12s both;
}

.animate-rise-late {
  animation: rise 1s ease-out 0.24s both;
}

.flow-pulse {
  animation: pulse-line 2.8s ease-in-out infinite;
}

.hero-glow {
  animation: drift 14s ease-in-out infinite;
}
