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

:root {
  color-scheme: light;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(15, 23, 42, 0.12);
}

.dark {
  color-scheme: dark;
  --panel: rgba(15, 23, 42, 0.64);
  --line: rgba(255, 255, 255, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 15% 5%,
      rgba(16, 185, 129, 0.18),
      transparent 26rem
    ),
    radial-gradient(
      circle at 90% 15%,
      rgba(255, 255, 255, 0.16),
      transparent 22rem
    ),
    linear-gradient(135deg, rgba(16, 185, 129, 0.06), transparent 42%),
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.08) 0 1px,
      transparent 1px 84px
    );
}

.dark .site-bg {
  background:
    radial-gradient(
      circle at 15% 5%,
      rgba(16, 185, 129, 0.22),
      transparent 28rem
    ),
    radial-gradient(
      circle at 92% 10%,
      rgba(20, 184, 166, 0.12),
      transparent 24rem
    ),
    linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 44%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 84px
    );
}

.glass {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.08);
  backdrop-filter: blur(22px);
}

.dark .glass {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.icon-button {
  display: inline-grid;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  backdrop-filter: blur(18px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.5);
}

.tool-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  backdrop-filter: blur(20px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.18),
    transparent 58%
  );
  transition: opacity 180ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 22px 60px rgba(16, 185, 129, 0.14);
}

.tool-card:hover::before {
  opacity: 1;
}

.gradient-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399, #10b981 52%, #ffffff);
  padding: 0.75rem 1.1rem;
  font-weight: 900;
  color: #020617;
  box-shadow: 0 18px 48px rgba(16, 185, 129, 0.28);
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.gradient-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.subtle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  padding: 0.75rem 1rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.dark .subtle-button {
  background: rgba(15, 23, 42, 0.54);
}

.ad-slot {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px dashed rgba(16, 185, 129, 0.45);
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.08);
  color: rgb(71, 85, 105);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dark .ad-slot {
  color: rgb(148, 163, 184);
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.12),
    rgba(148, 163, 184, 0.28),
    rgba(148, 163, 184, 0.12)
  );
  background-size: 220% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  to {
    background-position-x: -220%;
  }
}

.drop-zone {
  border: 1.5px dashed rgba(16, 185, 129, 0.55);
  border-radius: 1.4rem;
  background: rgba(16, 185, 129, 0.08);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.drop-zone.is-dragging {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  transform: scale(1.01);
}

.prose-lite h2 {
  margin-top: 1.5rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.prose-lite p,
.prose-lite li {
  color: rgb(71, 85, 105);
  line-height: 1.75;
}

.dark .prose-lite p,
.dark .prose-lite li {
  color: rgb(203, 213, 225);
}

@media (max-width: 640px) {
  .tool-card {
    border-radius: 1rem;
  }
}

/* Simple floating animation for logo and accents */
@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
.animate-float {
  animation: floatY 3.6s ease-in-out infinite;
}
