@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');
/* font-display:swap is included in the Google Fonts URL via &display=swap */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark2: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f8fafc;
  --light2: #f1f5f9;
  --light3: #e2e8f0;
  --white: #fff;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
  --transition: .2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--light); color: var(--dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }

/* Header */
header {
  background: var(--white);
  border-bottom: 1px solid var(--light3);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.95);
}
header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--primary); }
nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}
nav a {
  color: var(--gray);
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
nav a:hover, nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  position: relative;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  position: relative;
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
}
.hero-stats span {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
}
.section-header p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--light3);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  color: var(--dark);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--dark);
}
.tool-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.tool-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.tool-card p {
  color: var(--gray);
  font-size: .875rem;
  flex: 1;
}
.tool-card .tag {
  display: inline-block;
  background: var(--light2);
  color: var(--gray);
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Tool Page Layout */
.tool-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.tool-container {
  background: var(--white);
  border: 1px solid var(--light3);
  border-radius: var(--radius);
  padding: 2rem;
}
.tool-container h1 {
  font-size: 1.75rem;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-container h1 i { color: var(--primary); font-size: 1.5rem; }
.tool-intro {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: .95rem;
  line-height: 1.7;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--light3);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-card h3 {
  font-size: .95rem;
  margin-bottom: .75rem;
  color: var(--dark);
}
.sidebar-card ul {
  list-style: none;
}
.sidebar-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--light2);
  font-size: .875rem;
}
.sidebar-card li:last-child { border: none; }
.sidebar-card li a {
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card li a:hover { color: var(--primary); }
.sidebar-card li a i { width: 16px; text-align: center; font-size: .8rem; }

/* Content Section (below tools) */
.content-section {
  background: var(--white);
  border: 1px solid var(--light3);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}
.content-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.content-section h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 .5rem;
  color: var(--dark2);
}
.content-section p {
  color: var(--gray);
  margin-bottom: .75rem;
  line-height: 1.8;
}
.content-section ul, .content-section ol {
  color: var(--gray);
  margin: .5rem 0 1rem 1.5rem;
  line-height: 1.8;
}

/* Forms */
.input-group {
  margin-bottom: 1rem;
}
.input-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark2);
  margin-bottom: 6px;
}
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--light3);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  background: var(--white);
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
button, .btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
button:hover, .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Result Box */
.result-box {
  background: var(--light2);
  border: 1px solid var(--light3);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1rem 0;
}

/* Ad Container */
.ad-container {
  background: var(--light2);
  border: 1px solid var(--light3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
  min-height: 100px;
}
.ad-label {
  font-size: .7rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--light3);
  border-radius: var(--radius);
}
.feature i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.feature h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
}
.feature p {
  color: var(--gray);
  font-size: .85rem;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--light3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  color: var(--dark);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), var(--light2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}
.blog-card-body {
  padding: 1.25rem;
}
.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.blog-card-body p {
  color: var(--gray);
  font-size: .85rem;
  line-height: 1.6;
}
.blog-card-body .meta {
  font-size: .75rem;
  color: var(--gray-light);
  margin-top: .75rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col p {
  font-size: .85rem;
  line-height: 1.7;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: .8rem;
}

/* Page Content (About, Privacy, etc.) */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--light3);
  border-radius: var(--radius);
  padding: 3rem;
}
.page-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.page-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 .75rem;
}
.page-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 .5rem;
}
.page-content p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.page-content ul, .page-content ol {
  color: var(--gray);
  margin: .5rem 0 1.25rem 1.5rem;
  line-height: 1.8;
}
.page-content a { color: var(--primary); }

/* Breadcrumb */
.breadcrumb {
  font-size: .85rem;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats strong { font-size: 1.25rem; }
  .tool-page { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  nav ul { display: none; }
  .mobile-toggle { display: block; }
  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light3);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  .page-content { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}
