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

:root {
  /* Backgrounds */
  --bg: #f7fafd;
  --muted: #ebf2fa;
  --card: #ffffff;

  /* Foreground */
  --fg: #0d1f35;
  --muted-fg: #5a7a9a;

  /* Borders */
  --border: #d6e4f0;
  --accent-border: rgba(20, 120, 200, 0.25);

  /* Brand accent */
  --accent: #1478c8;
  --accent-2: #2878dc;
  --accent-light: rgba(20, 120, 200, 0.08);

  /* Semantic colors */
  --ok: #1a9d66;
  --warn: #c8861a;
  --danger: #c93f3f;
  --ok-soft: rgba(26, 157, 102, 0.1);
  --warn-soft: rgba(200, 134, 26, 0.1);
  --danger-soft: rgba(201, 63, 63, 0.1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(20, 80, 160, 0.07);
  --shadow-md: 0 4px 16px rgba(20, 80, 160, 0.1);
  --shadow-lg: 0 12px 40px rgba(20, 80, 160, 0.14);
  --shadow-accent: 0 6px 24px rgba(20, 120, 200, 0.28);

  /* Shape */
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--fg);
  background: var(--bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(20, 120, 200, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(40, 120, 220, 0.05) 0%, transparent 55%);
}

body::after {
  background-image: radial-gradient(circle, rgba(20, 120, 200, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.deco-ring {
  position: fixed;
  top: 50%;
  left: 50%;
  border: 1px dashed var(--accent-border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.deco-ring-1 {
  width: 480px;
  height: 480px;
  animation: spin-cw 80s linear infinite;
}

.deco-ring-2 {
  width: 700px;
  height: 700px;
  animation: spin-ccw 120s linear infinite;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px;
  gap: 40px;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-0 {
  animation-delay: 0s;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.35s;
}

.gradient-text {
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--accent-border);
  background: var(--accent-light);
  border-radius: 99px;
  padding: 4px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
  border-color: var(--accent-border);
}

a,
button,
input,
select,
textarea {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.site-footer {
  margin-top: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  opacity: 0.7;
  text-align: center;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

@keyframes spin-cw {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin-ccw {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .deco-ring,
  .badge-dot {
    animation: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
