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

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

:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --border-solid: #d2d2d7;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --card-bg: #f5f5f7;
  --card-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.5;
}

/* ── Navigation ─────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

nav.scrolled {
  border-bottom-color: var(--border-solid);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-byline {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-solid);
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: 0.01em;
}

.nav-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.hero-left h1 {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text-primary);
}

.hero-left .hero-sub {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.hero-right {
  padding-bottom: 8px;
}

.hero-right p {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.hero-right .hero-free {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-right .hero-free::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 50%;
}

/* ── Divider ─────────────────────────────────────────────── */

.section-divider {
  max-width: calc(960px - 48px);
  width: calc(100% - 48px);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border-solid);
}

/* ── Tools Section ───────────────────────────────────────── */

.tools {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

/* ── Tool Card ───────────────────────────────────────────── */

.tool-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease, translate 0.7s ease;
  cursor: pointer;
  opacity: 0;
  translate: 0 24px;
}

.tool-card.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .tool-card {
    opacity: 1;
    translate: 0 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
}

.tool-card:hover {
  transform: translateY(-3px);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.card-image img,
.card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #ffffff;
  /* Round the media directly: a composited <video> ignores an ancestor's
     border-radius + overflow:hidden, so its square dark corners would
     otherwise poke past the rounded card corner. */
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.card-image-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #c7c7cc;
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-tagline {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
}

.card-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.tool-card:hover .card-link::after {
  transform: translateX(3px);
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  padding: 0;
}

.footer-inner {
  max-width: calc(960px - 48px);
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.footer-free {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 64px 20px 60px;
  }

  .hero-left h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .hero-right p {
    font-size: 17px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tools {
    padding: 48px 20px 72px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
