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

:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sora), ui-sans-serif, system-ui;
  background: radial-gradient(1200px 600px at 10% -10%, #f5f9ff 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #fff6ef 0%, transparent 55%),
    #ffffff;
  color: #111111;
}

.mono {
  font-family: var(--font-mono), ui-monospace, SFMono-Regular, SFMono-Regular, Menlo,
    Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.content-max-width {
  max-width: 64rem; /* matches Tailwind max-w-5xl used by the nav */
  margin-left: auto;
  margin-right: auto;
}

.doc-button {
  background-color: #111111;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.doc-button:hover {
  opacity: 0.9;
}

.step-circle {
  width: 24px;
  height: 24px;
  background: #f4f4f4;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #666666;
}

hr {
  border: 0;
  border-top: 1px solid #efefef;
  margin: 40px 0;
}

.feature-card {
  border: 1px solid #f0f0f0;
  padding: 24px;
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: #ffffff;
}

.feature-card:hover {
  border-color: #e0e0e0;
  transform: translateY(-2px);
}

.alpha-tag {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.word-cycle {
  display: inline-block;
  position: relative;
  vertical-align: top;
  overflow: hidden;
  height: 1.5em;
}

.word-cycle span {
  display: block;
  animation: cycle 4s infinite ease-in-out;
  color: #111111;
  font-weight: 600;
}

@keyframes cycle {
  0%,
  45% {
    transform: translateY(0);
  }
  50%,
  95% {
    transform: translateY(-1.5em);
  }
  100% {
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 600ms ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  .word-cycle span,
  .animate-fade-up {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
