:root {
  --color-primary: #e62448;
  --color-primary-dark: #c01f3f;
  --color-bg: #fafaf9;
  --color-fg: #080503;
  --color-muted: #5e534a;
  --color-border: #dad7d0;
  --color-border-soft: #e7e4dd;
  --color-card-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  min-height: 100vh;
  color: var(--color-fg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────── */
.hero-section {
  padding: 20px 20px 0;
}

.hero-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: hsl(15 90% 7%);
}

/* Animated lava blobs */
.hero-lava {
  position: absolute;
  inset: 0;
  filter: blur(52px);
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero-blob-a {
  width: 72%;
  height: 72%;
  top: -12%;
  left: -8%;
  background: hsl(348 82% 40% / 0.95);
  animation: blob-a 18s ease-in-out infinite;
}

.hero-blob-b {
  width: 58%;
  height: 58%;
  bottom: -14%;
  right: -8%;
  background: hsl(18 90% 30% / 0.9);
  animation: blob-b 13s ease-in-out infinite;
}

.hero-blob-c {
  width: 48%;
  height: 48%;
  top: 38%;
  left: 28%;
  background: hsl(188 100% 25% / 0.85);
  animation: blob-c 9s ease-in-out infinite;
}

@keyframes blob-a {
  0%   { transform: translate(0%, 0%)    scale(1);    }
  20%  { transform: translate(18%, -18%) scale(1.12); }
  45%  { transform: translate(-8%, 22%)  scale(0.92); }
  65%  { transform: translate(22%, 12%)  scale(1.08); }
  85%  { transform: translate(-14%, -8%) scale(1.04); }
  100% { transform: translate(0%, 0%)    scale(1);    }
}

@keyframes blob-b {
  0%   { transform: translate(0%, 0%)     scale(1);    }
  25%  { transform: translate(-22%, 16%)  scale(1.15); }
  55%  { transform: translate(12%, -20%)  scale(0.88); }
  80%  { transform: translate(-10%, 10%)  scale(1.1);  }
  100% { transform: translate(0%, 0%)     scale(1);    }
}

@keyframes blob-c {
  0%   { transform: translate(0%, 0%)     scale(1);    }
  30%  { transform: translate(14%, 18%)   scale(0.85); }
  60%  { transform: translate(-18%, -12%) scale(1.2);  }
  100% { transform: translate(0%, 0%)     scale(1);    }
}

/* Centered headline */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 24px;
}

.hero-headline {
  text-align: center;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 5vw + 1rem, 4.5rem);
}

.hero-light { font-weight: 300; display: block; }
.hero-bold  { font-weight: 700; display: block; }

/* Bottom bar (desktop) */
.hero-bottom {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-desc {
  font-size: 0.975rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

.hero-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease;
  z-index: 0;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  transform: translateX(-101%);
  transition: transform 0.25s ease;
  z-index: -1;
}

.hero-cta:hover { color: var(--color-fg); }
.hero-cta:hover::before { transform: translateX(0); }

.hero-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Below-card content (mobile) */
.hero-mobile {
  padding: 20px 4px 0;
  text-align: center;
}

.hero-mobile .hero-desc {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 16px;
}

.hero-cta-mobile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--color-fg);
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.hero-cta-mobile:hover { opacity: 0.85; }

/* Responsive */
@media (min-width: 768px) {
  .hero-section { padding: 24px 24px 0; }
  .hero-wrap { height: 420px; border-radius: 20px; }
  .hero-bottom { display: flex; }
  .hero-mobile { display: none; }
}

@media (min-width: 1024px) {
  .hero-section { padding: 28px 28px 0; }
  .hero-wrap { height: 480px; }
  .hero-bottom { padding: 24px 36px; }
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 48px 24px;
  margin-bottom: 0;
}

/* Tool cards */
.tool-card {
  background: var(--color-card-bg);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(8, 5, 3, 0.06), 0 4px 16px rgba(8, 5, 3, 0.04);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border-soft);
  transition: background 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(8, 5, 3, 0.1), 0 2px 8px rgba(230, 36, 72, 0.08);
  border-color: rgba(230, 36, 72, 0.2);
}

.tool-card:hover::before {
  background: var(--color-primary);
}

.tool-card.disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Tool icon */
.tool-icon {
  width: 48px;
  height: 48px;
  background: rgba(230, 36, 72, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  transition: background 0.2s ease;
}

.tool-card:hover .tool-icon {
  background: rgba(230, 36, 72, 0.13);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card heading */
.tool-card h2 {
  color: var(--color-fg);
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tool-card p {
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  font-size: 0.925rem;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin-bottom: 26px;
}

.feature-list li {
  padding: 6px 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  top: 7px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 36, 72, 0.3);
  background: var(--color-primary-dark);
}

/* Footer */
.footer {
  text-align: center;
  color: var(--color-muted);
  padding: 28px 20px 36px;
  border-top: 1px solid var(--color-border);
}

.footer p {
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 14px;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 14px;
  }
}
