/* ============================================
   ZYNVERT TOOLS – FINAL PROFESSIONAL DESIGN 2025
   Clean • Modern • Mobile-First • No Bugs
   ============================================ */

:root {
  --bg: #F8F9FC;
  --surface: #FFFFFF;
  --brand: #0A1D56;
  --brand-light: #1E40AF;
  --accent: #10B981;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 24px;
  --shadow-sm: 0 4px 20px rgba(10,29,86,0.08);
  --shadow-md: 0 10px 30px rgba(10,29,86,0.12);
  --shadow-lg: 0 20px 50px rgba(10,29,86,0.18);
  --transition: all 280ms ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color:ea --text;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wrapper { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.main-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; flex-wrap: wrap; gap: 1rem;
}
.logo { font-size: 1.8rem; font-weight: 900; color: var(--brand); text-decoration: none; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 2rem; flex-wrap: wrap; }
nav a {
  font-weight: 600; color: #475569; text-decoration: none; padding: 0.5rem 0;
  position: relative; transition: var(--transition);
}
nav a:hover { color: var(--brand-light); }
nav a.active { color: var(--brand); font-weight: 700; }
nav a.active::after {
  content: ''; position: absolute; bottom: -8px; left: 0; width: 100%; height: 3px;
  background: var(--brand); border-radius: 2px;
}
/* Header controls & responsive menu */
.header-controls { display:flex; align-items:center; gap:12px; }

/* Upload header button */
.btn-upload-header {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: linear-gradient(90deg,var(--brand),var(--brand-light));
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 8px 24px rgba(14,30,90,0.08);
}
.btn-upload-header .btn-text { display:inline-block; font-size:0.95rem; }
.btn-upload-header input[type="file"] { display:none; }

/* Mobile menu button (hamburger) */
.mobile-menu-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  background:transparent;
  border:1px solid transparent;
  border-radius:10px;
  cursor:pointer;
}
.hamburger { display:inline-block; width:20px; height:16px; position:relative; }
.hamburger span { position:absolute; left:0; right:0; height:2px; background:#0f172a; display:block; border-radius:2px; transition: all 240ms; }
.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top:7px; }
.hamburger span:nth-child(3){ bottom:0; }

/* Mobile nav (hidden by default) */
.mobile-nav {
  display:none;
  background: linear-gradient(180deg, rgba(250,252,255,0.98), rgba(249,251,255,0.98));
  border-bottom: 1px solid var(--border);
}
.mobile-nav-inner { padding: 0.75rem 1.5rem; display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.mobile-links { display:flex; flex-direction:column; gap:6px; width:100%; }
.mobile-link { display:block; padding:12px 8px; border-radius:10px; color:#0f172a; text-decoration:none; font-weight:600; }
.mobile-link.active { background: #eef2ff; color: var(--brand); }

/* mobile actions */
.mobile-actions { display:flex; gap:8px; align-items:center; }

/* Upload modal (centered) */
.upload-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,20,40,0.45);
  z-index: 1200;
  padding: 24px;
}
.upload-modal[aria-hidden="false"] { display:flex; }
.upload-modal-card {
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}
.upload-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.upload-drop {
  border: 2px dashed #dbe9fb;
  padding: 28px;
  border-radius: 10px;
  cursor: pointer;
}
.upload-drop h3 { margin: 10px 0 6px; color: var(--brand); }
.upload-drop input[type="file"] { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }

/* Upload actions */
.upload-actions { margin-top: 16px; display:flex; justify-content:center; gap:12px; }

/* small screens: collapse desktop nav, show mobile menu */
@media (max-width: 880px) {
  .site-nav { display:none; }
  .mobile-menu-btn { display:inline-flex; }
  .btn-upload-header .btn-text { display:none; } /* show icon only to save space */
}

/* desktop: show site-nav, hide mobile trigger */
@media (min-width: 881px) {
  .mobile-menu-btn { display:none; }
  .mobile-nav { display:none; }
}


/* Hero */
.hero {
  text-align: center; padding: 8rem 1rem 6rem;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem); font-weight: 800; color: var(--brand);
  margin-bottom: 1rem; line-height: 1.2;
}
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 720px; margin: 0 auto 2rem; }
.badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.badge {
  background: white; padding: 0.75rem 1.5rem; border-radius: 50px;
  border: 1px solid #DBEAFE; font-weight: 600; color: var(--brand-light);
  box-shadow: var(--shadow-sm);
}

/* Tools Grid */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; padding: 5rem 0 7rem;
}
.tool-card {
  background: var(--surface); padding: 2.5rem 2rem; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--border);
  transition: var(--transition); text-decoration: none; color: inherit;
}
.tool-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-lg); }
.tool-icon {
  width: 90px; height: 90px; background: var(--brand); color: white;
  font-size: 2.2rem; font-weight: bold; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; box-shadow: 0 10px 30px rgba(10,29,86,0.25);
}

/* Tool Pages */
.page-container {
    flex: 1;
    /* Original: padding: 5rem 0 7rem; */
    padding: 5rem 0 10rem; /* Increased bottom padding from 7rem to 10rem for more space */
    display: flex;
    justify-content: center;
}
.tool-main-card {
  width: 100%; max-width: 720px; background: var(--surface);
  border-radius: var(--radius); padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.page-title { font-size: 2.6rem; font-weight: 800; color: var(--brand); text-align: center; margin-bottom: 0.5rem; }
.page-subtitle { color: var(--muted); font-size: 1.15rem; text-align: center; margin-bottom: 2.5rem; }

/* File Upload */
.file-upload {
  position: relative; border: 2.8px dashed #cbd5e1; border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 3.5rem 2rem; text-align: center; cursor: pointer;
  transition: var(--transition); margin-bottom: 2rem;
}
.file-upload:hover, .file-upload.dragover {
  border-color: var(--brand-light); background: #dbeafe;
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.file-upload.has-file { border-color: var(--accent); background: #f0fdf4; }
.file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.file-upload-icon {
  width: 84px; height: 84px; background: var(--brand); color: white;
  font-weight: bold; font-size: 2rem; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; box-shadow: 0 12px 30px rgba(10,29,86,0.3);
}
.file-upload-title {
  font-size: 1.4rem; font-weight: 600; color: var(--brand); margin: 0.5rem 0;
}
.file-upload-subtitle { color: var(--muted); font-size: 0.98rem; }

/* Options */
.options {
  display: grid; gap: 1.5rem; margin: 2rem 0;
}
.options label {
  display: flex; flex-direction: column; gap: 0.6rem;
  font-weight: 600; font-size: 1rem;
}
.options select, .options input {
  padding: 1rem; border: 2px solid var(--border); border-radius: 14px;
  font-size: 1rem; background: white; transition: var(--transition);
}
.options select:focus, .options input:focus {
  outline: none; border-color: var(--brand-light);
  box-shadow: 0 0 0 5px rgba(10,29,86,0.1);
}
.range-value {
  text-align: right; color: var(--brand); font-weight: 600; font-size: 1rem;
}

/* Button */
.btn-primary {
  width: 100%; padding: 1.5rem; background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white; border: none; border-radius: 18px; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-lg);
  margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,29,86,0.35); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-primary.loading::after {
  content: ''; width: 22px; height: 22px; border: 2px solid #ffffff40;
  border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Status & Progress */
.status-area { margin-top: 2rem; min-height: 40px; text-align: center; font-weight: 500; }
.status-area.success { color: var(--accent); }
.status-area.error { color: #ef4444; }
.progress-wrap { margin: 2rem 0; display: none; }
.progress-outer { height: 14px; background: var(--border); border-radius: 8px; overflow: hidden; }
.progress-inner { height: 100%; width: 0%; background: var(--accent); transition: width 0.4s ease; }
.progress-text { text-align: center; margin-top: 0.8rem; font-weight: 500; color: var(--brand); }

.tool-icon {
  font-size: 2.2rem;
  font-weight: bold;
}

/* Footer */
footer {margin-top: 5rem; /* 📌 Adds 5rem of space above the footer */
  margin-top: auto; background: #0F172A; color: #94A3B8; text-align: center; padding: 3.5rem 1rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ----- fixes for earlier typos ----- */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);        /* fixed from `color:ea --text;` */
  line-height: 1.7;
  min-height: 100vh;        /* fixed from `100dvh` */
  display: flex;
  flex-direction: column;
}

/* ensure tool-card allows ribbon to overflow the corner */
.tool-card {
  position: relative;       /* required for absolutely positioned ribbon */
  overflow: visible;        /* allow ribbon to show outside the box */
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

/* ---------------------------
   Ribbon base style & variants
   --------------------------- */
.ribbon {
  position: absolute;
  top: 12px;
  right: -32px;
  width: 120px;
  text-align: center;
  background: #ef4444;                /* modern red */
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;                     /* slightly larger padding for crispness */
  transform: rotate(45deg);
  box-shadow: 0 6px 18px rgba(10, 20, 40, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  pointer-events: none;               /* don't block clicks on the card */
  z-index: 30;                        /* above card content */
  border-radius: 4px;
  will-change: transform;
}

/* variants */
.ribbon-gold {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #0f172a;
}

.ribbon-gradient {
  background: linear-gradient(135deg, #6366F1, #3B82F6);
  color: #fff;
}

/* Features Section */
.features-section {
  padding: 5rem 0 7rem;
  background: var(--bg);
}
.features-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.features-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: inline-block;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
/* Target the H3 specifically inside the tools grid */
.tools-grid h2 {
  /* 1. LAYOUT: Span the full width of the grid */
  grid-column: 1 / -1; 
  width: 100%;
  
  /* 2. ALIGNMENT */
  text-align: center;
  margin-bottom: 2rem; /* Space between title and tool cards */
  margin-top: 1rem;
  
  /* 3. TYPOGRAPHY (Matches your brand style) */
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand); /* Uses your existing dark blue variable */
  line-height: 1.2;
}

/* ============================================
   SEO CONTENT BLOCK STYLES
   ============================================ */

.seo-content {
  max-width: 800px; /* Limits width for better reading experience */
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 4rem;
  color: var(--text);
}

/* Headings inside the content */
.seo-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border); /* Subtle line under main titles */
}

.seo-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.seo-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-light); /* Slightly lighter blue for FAQ questions */
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.seo-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569; /* Soft dark gray */
  margin-bottom: 1.2rem;
}

/* Lists (Steps and Benefits) */
.seo-content ul,
.seo-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}

.seo-content li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: #475569;
}

/* Remove default bullets for the Emoji list to avoid double bullets */
.seo-content ul li {
  list-style-type: none; 
  margin-left: -1.2rem; /* Pull back slightly to align */
}

/* Links inside the text */
.seo-content a {
  color: var(--brand-light);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.seo-content a:hover {
  border-bottom-color: var(--brand-light);
}
/* =========================================
   FAQ ACCORDION – Perfect, Modern & Draggable
   Works 100% with your current HTML structure
   ========================================= */
 .faq-section {
  padding: 5rem 0 7rem;
  background: var(--bg);}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
}

.faq-item {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  box-shadow: var(--shadow-sm, 0 4px 20px rgba(10, 29, 86, 0.08));
  overflow: hidden;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  user-select: none;
}

.faq-item:hover {
  box-shadow: var(--shadow-md, 0 10px 30px rgba(10, 29, 86, 0.12));
  transform: translateY(-3px);
}
.section-title {
  text-align: center;
  margin: 0 auto 3rem auto;        /* bottom margin for nice spacing */
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand, #0A1D56);
  max-width: 800px;                /* optional: prevents super long lines */
  line-height: 1.3;
}

/* If you want even more elegant centering on large screens */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}
/* =============================================
   FAQ ACCORDION – Fixed Text Overlap (Mobile + Desktop Only)
   ============================================= */

.faq-section {
  padding: 4rem 0 6rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand, #0A1D56);
  margin: 0 auto 3.5rem auto;
  line-height: 1.3;
}

/* Desktop (default) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
}

.faq-item {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(10, 29, 86, 0.08);
  overflow: hidden;
  transition: all 300ms ease;
  cursor: grab;
}

.faq-item:hover {
  box-shadow: 0 12px 40px rgba(10, 29, 86, 0.15);
  transform: translateY(-4px);
}

.faq-item.dragging {
  opacity: 0.9;
  transform: scale(1.03) rotate(2deg);
  box-shadow: 0 25px 60px rgba(10, 29, 86, 0.25);
  z-index: 999;
}

.faq-item.drag-over-top { border-top: 5px solid #1e40af; }
.faq-item.drag-over-bottom { border-bottom: 5px solid #1e40af; }

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.25s ease;
}

.faq-header:hover {
  background: rgba(10, 29, 86, 0.04);
}

.faq-header[aria-expanded="true"] {
  background: rgba(10, 29, 86, 0.025);
}

.faq-question {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--brand, #0A1D56);
  line-height: 1.45;
  flex: 1;
  padding-right: 10px;
}

.faq-icon {
  width: 26px;
  height: 26px;
  color: #1e40af;
  flex-shrink: 0;
  transition: transform 320ms ease;
}

.faq-header[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: #0A1D56;
}

.faq-content {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 450ms ease, padding 450ms ease;
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.7;
}

.faq-content.open {
  padding: 24px 28px 28px;
  max-height: 800px;
  border-top: 1px solid #e2e8f0;
}

/* Ensure content never overlaps header */
.faq-content p {
  margin: 0;
}

/* Mobile Only – Perfect spacing & no overlap */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.9rem;
    margin-bottom: 2.8rem;
  }

  .faq-accordion {
    gap: 14px;
    padding: 0 0.8rem;
  }

  .faq-header {
    padding: 18px 20px;
    gap: 12px;
  }

  .faq-question {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
  }

  .faq-content,
  .faq-content.open {
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq-content.open {
    padding-top: 20px;
    padding-bottom: 24px;
  }
}

/* Desktop fine-tuning (optional – keeps it sharp on large screens) */
@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }

  .faq-question {
    font-size: 1.15rem;
  }

  .faq-header {
    padding: 24px 32px;
  }

  .faq-content.open {
    padding: 26px 32px 30px;
  }
}

/* Responsive tweak for mobile */
@media (max-width: 600px) {
  .seo-content h2 { font-size: 1.5rem; }
  .seo-content h3 { font-size: 1.25rem; }
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}
/* Optional: Mobile adjustment */
@media (max-width: 768px) {
  .tools-grid h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .features-title {
    font-size: 2.2rem;
  }
  .features-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }
  .feature-card {
    padding: 2rem;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .tool-main-card { padding: 2.5rem 1.5rem; margin: 0 1rem; }
  .page-title { font-size: 2.2rem; }
  .file-upload { padding: 3rem 1.5rem; }
}

/* smaller ribbon on narrow screens so it doesn't overflow too far */
@media (max-width: 480px) {
  .ribbon {
    right: -22px;
    width: 92px;
    font-size: 10px;
    top: 10px;
  }
}

/* optional: slightly rotate less on tiny screens to avoid clipping */
@media (max-width: 340px) {
  .ribbon { transform: rotate(40deg); right: -18px; }
}
/* ============================================
   FINAL RESPONSIVE POLISH & BREAKPOINTS
   Add this to the very bottom of your CSS file
   ============================================ */

/* -------------------------------------------
   1. LARGE DESKTOP & 4K OPTIMIZATIONS (1440px+)
   Makes use of extra screen real estate
   ------------------------------------------- */
@media (min-width: 1440px) {
  .wrapper {
    max-width: 1400px; /* Allow content to breathe more on wide screens */
  }

  body {
    font-size: 17px; /* Slight text scaling for better readability on high-res */
  }

  .hero h1 {
    font-size: 5rem; /* Make the headline impactful */
  }
}

/* -------------------------------------------
   2. LAPTOP & TABLET LANDSCAPE (992px - 1200px)
   Fixes awkward spacing on standard laptops
   ------------------------------------------- */
@media (max-width: 1200px) {
  .tools-grid {
    gap: 1.5rem; /* Tighten grid gaps slightly */
    padding: 3rem 0 5rem;
  }
  
  .hero {
    padding: 6rem 1rem 4rem;
  }
}

/* -------------------------------------------
   3. TABLET PORTRAIT (768px - 991px)
   Ensures cards don't get too squeezed
   ------------------------------------------- */
@media (max-width: 991px) {
  .feature-card, .tool-card {
    padding: 2rem; /* Reduce padding inside cards */
  }
  
  .page-title {
    font-size: 2.4rem;
  }
}

/* -------------------------------------------
   4. MOBILE DEEP OPTIMIZATION (< 480px)
   Crucial for "Mobile First" UX on phones
   ------------------------------------------- */
@media (max-width: 480px) {
  
  /* Layout & Spacing */
  .wrapper {
    padding: 0 1.25rem; /* Slightly tighter edge spacing */
  }
  
  .section-title, .features-title {
    font-size: 1.75rem; /* Prevent wrapping/overflow */
  }

  /* Hero adjustments */
  .hero {
    padding: 5rem 1rem 3rem;
  }
  .hero h1 {
    font-size: 2.2rem; /* Avoids horizontal scroll on long words */
  }
  .hero .lead {
    font-size: 1rem;
  }

  /* Tool Cards & Grid */
  .tools-grid {
    grid-template-columns: 1fr; /* Force single column */
    gap: 1.25rem;
  }
  
  .tool-card {
    padding: 1.75rem 1.5rem; /* Maximize internal space */
  }

  /* File Upload Area */
  .file-upload {
    padding: 2.5rem 1rem;
    border-width: 2px; /* Thinner border looks better on mobile */
  }
  .file-upload-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  /* Buttons & Inputs */
  .btn-primary {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 14px;
  }
  
  .options select, .options input {
    font-size: 16px; /* Prevents iOS from zooming in on focus */
  }

  /* Ribbon Fix for Mobile */
  .ribbon {
    transform: rotate(45deg) scale(0.8); /* Shrink ribbon slightly */
    top: 8px;
    right: -28px;
  }
}

/* -------------------------------------------
   5. UTILITY: FIX SCROLL JUMP BEHIND STICKY HEADER
   ------------------------------------------- */
html {
  scroll-padding-top: 100px; /* Ensures anchor links don't hide behind header */
}/* ============================
   ZYNVERT TOOLS — RESPONSIVE
   Mobile (≤640px) • Tablet (641–1024px) • Desktop (≥1025px)
   Only responsive overrides — drop this below your base CSS
   ============================ */

/* ----------------------------
   Shared responsive helpers
   ----------------------------*/
:root {
  /* optional tuned scale for small screens */
  --scale-sm: 0.94;
  --scale-md: 0.98;
}

/* ----------------------------
   Mobile first (base tweaks for small screens)
   Applies to: <= 640px (mobile)
   ----------------------------*/
@media (max-width: 640px) {
  /* page wrapper padding */
  .wrapper { padding: 0 1rem; max-width: 100%; }

  /* header */
  .header-inner { padding: 0.6rem 0; gap: 8px; }
  .logo { font-size: 1.35rem; letter-spacing: -0.02em; }
  nav { display: none; } /* desktop nav hidden */
  .mobile-menu-btn { display: inline-flex; }
  .header-controls { gap: 8px; }

  /* upload header button — icon only */
  .btn-upload-header { padding: 8px 10px; border-radius: 10px; }
  .btn-upload-header .btn-text { display: none; }

  /* hero */
  .hero { padding: 3.5rem 1rem 3rem; text-align: center; }
  .hero h1 { font-size: 2.0rem; line-height: 1.15; }
  .hero .lead { font-size: 1rem; max-width: 100%; padding: 0 0.5rem; }

  /* badges */
  .badges { gap: 0.6rem; padding: 0 0.5rem; }

  /* tools grid (stack) */
  .tools-grid { gap: 1rem; padding: 2.5rem 0 3rem; grid-template-columns: 1fr; }
  .tool-card { padding: 1.6rem 1rem; border-radius: 16px; }
  .tool-icon { width: 64px; height: 64px; border-radius: 16px; font-size: 1.6rem; }

  /* page container & tool main card */
  .page-container { padding: 3.5rem 0 6rem; }
  .tool-main-card { padding: 1.8rem; border-radius: 18px; max-width: 92%; }

  /* file upload */
  .file-upload { padding: 2rem 1rem; border-radius: 18px; }
  .file-upload-icon { width: 64px; height: 64px; border-radius: 16px; }

  /* options and buttons */
  .options { gap: 1rem; margin: 1.5rem 0; }
  .options label { font-size: 0.98rem; }
  .btn-primary { padding: 1.05rem; font-size: 1rem; border-radius: 14px; }

  /* features grid stack */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .feature-card { padding: 1.6rem; border-radius: 14px; }

  /* seo content */
  .seo-content { padding: 0 0.75rem 3rem; }
  .seo-content h2 { font-size: 1.3rem; }

  /* faq */
  .faq-accordion { gap: 12px; padding: 0 0.75rem; }
  .faq-item { border-radius: 14px; }
  .faq-header { padding: 14px 16px; }
  .faq-content.open { padding: 14px 16px 18px; }

  /* ribbon adjustments */
  .ribbon { right: -22px; width: 92px; font-size: 10px; top: 10px; transform: rotate(40deg); }

  /* small-touch target improvements */
  .mobile-links .mobile-link, .btn-primary, .btn-upload-header { min-height: 44px; }
}

/* ----------------------------
   Tablet (641px — 1024px)
   Medium screens — two-column grids, balanced spacing
   ----------------------------*/
@media (min-width: 641px) and (max-width: 1024px) {
  .wrapper { padding: 0 1.25rem; max-width: 1100px; }

  /* header */
  .header-inner { padding: 0.85rem 0; gap: 10px; }
  .logo { font-size: 1.55rem; }
  nav { display: flex; gap: 1.25rem; }
  .mobile-menu-btn { display: none; } /* show desktop nav on larger tablets */

  /* hero */
  .hero { padding: 5.5rem 1rem 4.5rem; }
  .hero h1 { font-size: clamp(2.4rem, 6.2vw, 3.2rem); }
  .hero .lead { font-size: 1.12rem; max-width: 720px; }

  /* tools grid: 2 columns when possible */
  .tools-grid { grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 1.5rem; padding: 3.5rem 0 5rem; }
  .tool-card { padding: 2rem 1.6rem; border-radius: 20px; }
  .tool-icon { width: 76px; height: 76px; font-size: 2rem; border-radius: 20px; }

  /* page container & tool-main */
  .page-container { padding: 4.5rem 0 8rem; }
  .tool-main-card { max-width: 820px; padding: 2.4rem; border-radius: 20px; }

  /* file upload */
  .file-upload { padding: 2.6rem 1.6rem; border-radius: 20px; }
  .file-upload-icon { width: 74px; height: 74px; }

  /* options & controls */
  .options { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .options label { font-size: 1rem; }

  /* features grid: 2 columns */
  .features-grid { grid-template-columns: repeat(2, minmax(300px, 1fr)); gap: 1.5rem; }

  /* seo content */
  .seo-content { padding: 0 1rem 3.5rem; }
  .seo-content h2 { font-size: 1.6rem; }

  /* faq */
  .faq-accordion { max-width: 900px; gap: 14px; }
  .faq-item { border-radius: 16px; }

  /* progress & status */
  .progress-wrap { display: block; }
}

/* ----------------------------
   Desktop (≥1025px)
   Full layout — multi-column grids and larger UI
   ----------------------------*/
@media (min-width: 1025px) {
  .wrapper { padding: 0 1.5rem; max-width: 1280px; }

  /* header */
  .header-inner { padding: 1.05rem 0; gap: 12px; }
  .logo { font-size: 1.9rem; }
  nav { display: flex; gap: 2rem; }
  .mobile-menu-btn { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.5rem; }

  /* hero */
  .hero { padding: 7rem 1rem 6rem; }
  .hero h1 { font-size: clamp(3.2rem, 5.2vw, 4.8rem); }
  .hero .lead { font-size: 1.25rem; max-width: 900px; }

  /* tools grid: 3 columns when enough width */
  .tools-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; padding: 5rem 0 7rem; }
  .tool-card { padding: 2.5rem 2rem; border-radius: var(--radius); }
  .tool-icon { width: 90px; height: 90px; font-size: 2.2rem; }

  /* page container & tool-main card */
  .page-container { padding: 5rem 0 10rem; }
  .tool-main-card { max-width: 960px; padding: 3rem 2.5rem; border-radius: 24px; }

  /* file upload */
  .file-upload { padding: 3.5rem 2.25rem; border-radius: var(--radius); }
  .file-upload-icon { width: 84px; height: 84px; }

  /* options grid */
  .options { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .options label { font-size: 1rem; }

  /* features grid: 3 columns where space allows */
  .features-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 2rem; }

  /* seo content */
  .seo-content { padding: 0 1.5rem 4rem; max-width: 1000px; }
  .seo-content h2 { font-size: 1.9rem; }

  /* faq */
  .faq-accordion { max-width: 1100px; gap: 16px; }
  .faq-item { border-radius: 18px; }

  /* ribbons and badges */
  .ribbon { right: -32px; width: 120px; font-size: 11px; top: 12px; transform: rotate(45deg); }

  /* header controls spacing */
  .header-controls { gap: 16px; }

  /* make sure nav underline and active states are crisp */
  nav a { padding: 0.6rem 0; }
  nav a.active::after { height: 3px; bottom: -10px; }
}

/* ----------------------------
   Fine-grain accessibility & touch targets
   (applied across breakpoints)
   ----------------------------*/
@media (pointer: coarse) {
  .btn-primary, .btn-upload-header, .mobile-link, .faq-header { min-height: 48px; }
  .faq-header { padding: 16px 20px; }
}

/* ----------------------------
   Utility: collapse long text on very small screens
   ----------------------------*/
@media (max-width: 360px) {
  .hero h1 { font-size: 1.9rem; }
  .page-title { font-size: 1.9rem; }
  .tool-icon { width: 60px; height: 60px; font-size: 1.4rem; }
}

/* ============================================
   ZYNVERT CONTACT FORM – CLEAN & PROFESSIONAL
   Matches your 2025 UI System
   ============================================ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-form label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  font-size: 1rem;
  color: var(--text);
  box-shadow: 0 4px 18px rgba(10,29,86,0.05);
  transition: var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(30,64,175,0.15);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* Submit Button */
.contact-form button.primary-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 1.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.contact-form button.primary-btn:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.contact-form button.primary-btn:active {
  transform: translateY(-2px);
}

/* Success / Error Placeholder States */
.contact-success,
.contact-error {
  padding: 1rem;
  text-align: center;
  border-radius: 14px;
  font-weight: 600;
  display: none;
}

.contact-success {
  background: #ecfdf5;
  color: var(--accent);
  border: 1px solid #bbf7d0;
}

.contact-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Mobile Optimization */
@media (max-width: 640px) {
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
  }

  .contact-form button.primary-btn {
    font-size: 1.05rem;
    padding: 1rem;
    border-radius: 14px;
  }
}

/* ============================================
   ZYNVERT BLOG SYSTEM – 2025 PROFESSIONAL
   ============================================ */

.blog-list {
    padding-top: 4rem;
    padding-bottom: 8rem;
}

.blog-list h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--brand);
    text-align: center;
    margin-bottom: 1rem;
}

.blog-list .lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: var(--muted);
    font-size: 1.2rem;
}

/* Post Grid Configuration */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Professional Post Card */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-light);
}

/* Category Badge */
.post-category {
    display: inline-block;
    background: rgba(30, 64, 175, 0.1);
    color: var(--brand-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.post-card h2 {
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: var(--brand);
}

.post-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card h2 a:hover {
    color: var(--brand-light);
}

.post-card .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.post-card .excerpt {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes the button to the bottom */
}

/* Read More Button */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-light);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
    color: var(--brand);
}

/*

Product hunt 

*/
/* Product Hunt Badge Styling */
.ph-badge-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 6rem;
  margin: 2rem 0;
}

.ph-badge-wrapper a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ph-badge-wrapper a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ph-badge {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* -------------------------------------------
   RESPONSIVE OPTIMIZATIONS
   ------------------------------------------- */

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .blog-list {
        padding-top: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .post-card {
        padding: 1.75rem;
        border-radius: 20px;
    }
    
    .post-card h2 {
        font-size: 1.3rem;
    }
}