/* OnlineCyber Convert – Global styles */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Tool grid */
.section {
  padding: 3rem 0;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0f172a;
}
.section-sub {
  color: #64748b;
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37,99,235,.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.tool-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: #eff6ff;
  color: #2563eb;
  flex-shrink: 0;
}
.tool-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #0f172a;
}
.tool-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
  flex: 1;
}
.tool-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  width: fit-content;
}

/* Category headers */
.cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0 1rem;
}
.cat-header:first-of-type { margin-top: 0; }
.cat-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
}
.cat-header .line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-desc { font-size: 0.9rem; line-height: 1.55; margin: 0; }
.site-footer h4 {
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #94a3b8; font-size: 0.875rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.privacy-note { opacity: 0.7; margin: 0; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  text-decoration: none;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,.25);
}
.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37,99,235,.35);
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.btn-secondary:hover {
  background: #eff6ff;
  text-decoration: none;
}
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
