/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  margin: 0;
  color: #0f172a;
  line-height: 1.7;
  background: #fff;
  font-size: 1rem;
}

a { color: #2563eb; }
ul { padding-left: 20px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 62px;
}
.nav-logo {
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.nav-logo span { color: #2563eb; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: #0f172a; background: #f8fafc; }
.nav-cta {
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  margin-left: 10px;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #1d4ed8; color: #fff; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 40%, #f8fafc 100%);
  padding: 100px 24px 80px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: #0f172a;
}
.hero .sub {
  font-size: 1.2rem;
  color: #475569;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ===== Tool Cards ===== */
.tools-section {
  max-width: 1100px;
  margin: -30px auto 0;
  padding: 0 24px 80px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.tool-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.tool-icon-blue { background: #dbeafe; }
.tool-icon-purple { background: #ede9fe; }
.tool-icon-emerald { background: #d1fae5; }
.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0f172a;
}
.tool-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 16px;
  flex-grow: 1;
  line-height: 1.6;
}
.tool-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-price { font-size: 0.85rem; color: #475569; }
.tool-price strong { color: #0f172a; font-weight: 700; }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #7c3aed; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-orange { background: #fed7aa; color: #c2410c; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-yellow { background: #fef3c7; color: #92400e; }

.platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(160deg, #f0f9ff 0%, #f8fafc 100%);
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.page-header .sub {
  font-size: 1.1rem;
  color: #475569;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== Containers ===== */
.container { max-width: 860px; margin: 0 auto; padding: 60px 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }

/* ===== Typography ===== */
h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 1.6rem; font-weight: 700; margin: 48px 0 12px; letter-spacing: -0.01em; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 6px; }

/* ===== Box ===== */
.box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px 24px;
  border-radius: 10px;
  margin: 14px 0;
}

/* ===== Steps ===== */
.step {
  display: flex;
  gap: 18px;
  margin: 24px 0;
  align-items: flex-start;
}
.step-num {
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 2px;
}
.step-body strong { display: block; margin-bottom: 4px; font-size: 1rem; }

/* ===== Feature Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.card {
  border: 1px solid #e2e8f0;
  padding: 18px 20px;
  border-radius: 10px;
  background: #f8fafc;
}
.card-icon { font-size: 1.4rem; margin-bottom: 10px; display: block; }
.card h4 { font-size: 0.95rem; font-weight: 700; margin: 0 0 6px; }
.card p { font-size: 0.875rem; color: #64748b; margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn:hover { background: #1d4ed8; color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 10px 22px;
}
.btn-outline:hover { background: #eff6ff; color: #1d4ed8; }
.btn-white { background: #fff; color: #2563eb; }
.btn-white:hover { background: #f0f9ff; color: #1d4ed8; }
.btn-green { background: #16a34a; }
.btn-green:hover { background: #15803d; }
.btn-purple { background: #7c3aed; }
.btn-purple:hover { background: #6d28d9; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; text-align: center; }
.btn-disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

.cta { margin-top: 36px; text-align: center; }

/* ===== CTA Band ===== */
.cta-band {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 80px 24px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #bfdbfe; margin-bottom: 32px; font-size: 1.05rem; }

/* ===== Table ===== */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
th { background: #f1f5f9; text-align: left; padding: 12px 16px; border: 1px solid #e2e8f0; font-weight: 600; }
td { padding: 12px 16px; border: 1px solid #e2e8f0; }
tr:nth-child(even) td { background: #fafafa; }

/* ===== Notice ===== */
.notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #713f12;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.pricing-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  background: #fff;
}
.pricing-card.featured { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.pricing-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin: 14px 0 4px;
}
.pricing-amount span { font-size: 1rem; font-weight: 500; color: #64748b; }
.pricing-note { font-size: 0.85rem; color: #64748b; margin-bottom: 20px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; }
.pricing-features li {
  font-size: 0.9rem;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; }

/* ===== Download Cards ===== */
.download-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
  background: #fff;
}
.download-card h2 { margin-top: 0; }

/* ===== FAQ ===== */
.faq h3 { font-size: 1.05rem; margin-top: 28px; }
.faq p { margin-top: 6px; color: #475569; }

/* ===== Related Links ===== */
.related a {
  display: block;
  color: #2563eb;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}
.related a:last-child { border-bottom: none; }
.related a:hover { color: #1d4ed8; }

/* ===== Divider ===== */
hr.divider { border: none; border-top: 1px solid #e2e8f0; margin: 48px 0; }

/* ===== Section backgrounds ===== */
.section-gray { background: #f8fafc; }

/* ===== Footer ===== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 10px;
}
.footer-brand span { color: #60a5fa; }
.footer-tagline { font-size: 0.875rem; line-height: 1.7; color: #64748b; }
.footer-col h4 {
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 0.825rem;
  color: #475569;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 70px 20px 60px; }
  .page-header h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .nav-link { display: none; }
  .nav-cta { margin-left: auto; }
  .tools-section { margin-top: 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .page-header h1 { font-size: 1.6rem; }
}
