:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #eff6ff;
  --secondary: #64748b;
  --bg-main: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --success: #10b981;
  --success-bg: #d1fae5;
  --error: #ef4444;
  --error-bg: #fee2e2;
  --warning: #f59e0b;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Courier New", Courier, monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-dark);
}
ul {
  list-style: none;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mt-0 {
  margin-top: 0 !important;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.bg-light {
  background-color: var(--bg-white);
}
.bg-primary-light {
  background-color: var(--primary-light);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
}
.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}
.btn-block {
  width: 100%;
  display: flex;
}
.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border);
}
.btn-outline:hover {
  background-color: var(--bg-main);
  border-color: #cbd5e1;
}
.btn-danger {
  background-color: var(--error);
  color: white;
}
.btn-danger:hover {
  background-color: #dc2626;
  color: white;
}
.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: 0.2s;
}
.btn-icon:hover {
  background: var(--bg-main);
  color: var(--text-main);
}
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo svg {
  color: var(--primary);
}
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}
.hero {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #ffffff, var(--bg-main));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text {
  max-width: 600px;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  flex-wrap: wrap;
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.code-window {
  background: #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #334155;
}
.code-header {
  background: #0f172a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #334155;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ef4444;
}
.dot.yellow {
  background: #f59e0b;
}
.dot.green {
  background: #10b981;
}
.code-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-left: auto;
  margin-right: auto;
}
.code-body {
  padding: 1.5rem;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: 0;
}
.code-body .tag {
  color: #38bdf8;
}
.code-body .attr {
  color: #a78bfa;
}
.code-body .string {
  color: #a3e635;
}
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
}
.features,
.content-section {
  padding: 5rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-icon svg {
  color: white;
}
.bg-blue {
  background-color: var(--primary);
}
.bg-green {
  background-color: var(--success);
}
.bg-purple {
  background-color: #8b5cf6;
}
.bg-orange {
  background-color: var(--warning);
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
}
.content-block-main h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}
.content-block-main h2:first-child {
  margin-top: 0;
}
.content-block-main h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}
.content-block-main p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.content-block-main ul,
.content-block-main ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.content-block-main li {
  margin-bottom: 0.75rem;
}
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget.bg-primary-light {
  background: var(--primary-light);
  border-color: #bfdbfe;
}
.sidebar-widget h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.sidebar-widget.bg-primary-light h3 {
  border-color: #93c5fd;
}
.user-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.user-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.user-list strong {
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.user-list span {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.benefit-item {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.benefit-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}
.benefit-item p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-number {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.tool-wrapper {
  padding: 3rem 0;
}
.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}
.tool-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.tool-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.tool-interface {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tool-controls {
  padding: 1rem 1.5rem;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.editor-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.editor-col:last-child {
  border-right: none;
}
.editor-header {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-white);
}
.editor-header label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}
.editor-badge {
  font-size: 0.75rem;
  background: var(--border);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}
.editor-actions {
  display: flex;
  gap: 0.5rem;
}
textarea {
  flex-grow: 1;
  width: 100%;
  padding: 1.5rem;
  border: none;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  outline: none;
  background: #fafafa;
  color: #1e293b;
}
textarea:focus {
  background: var(--bg-white);
}
.msg {
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.msg.success {
  background-color: var(--success-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: flex;
}
.msg.error {
  background-color: var(--error-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
  display: flex;
}
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.info-box h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.faq-item h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  overflow: hidden;
}
.accordion-header {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-white);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}
.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  color: var(--text-muted);
}
.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 1rem;
}
.card-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.card-link:hover {
  color: var(--primary-dark);
  gap: 0.5rem;
}
.cta-section {
  background: var(--text-main);
  color: white;
  padding: 5rem 0;
  border-radius: var(--radius-lg);
  margin: 4rem 1.5rem;
}
.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.2rem;
  color: #94a3b8;
}
.footer {
  background: #0f172a;
  color: white;
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: #94a3b8;
  margin: 1rem 0;
  line-height: 1.6;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  color: #94a3b8;
  padding: 0.5rem;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.social-links a:hover {
  color: white;
  background: var(--primary);
}
.footer-links h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #94a3b8;
  transition: 0.2s;
}
.footer-links a:hover {
  color: white;
  padding-left: 4px;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #64748b;
}
.form-container {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fafafa;
  transition: 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: var(--bg-white);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .tool-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .editor-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: 400px;
  }
  .editor-col:last-child {
    border-bottom: none;
  }
}
@media (max-width: 768px) {
  .header-content {
    height: 64px;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero {
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .cta-section {
    margin: 2rem 1rem;
    padding: 3rem 1.5rem;
  }
}
/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */

/* 1. Global Box Sizing & Body */
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body,
html {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}
img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* 2. Header & Sticky Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white, #ffffff);
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .header-content {
    position: relative;
  }
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white, #ffffff);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease-in-out,
      padding 0.3s ease-in-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border, #e2e8f0);
  }
  .nav-menu.active {
    max-height: 400px;
    padding: 1rem 0;
  }
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  .nav-menu a {
    display: block;
    padding: 1rem;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 0;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main, #0f172a);
  }
}

/* 3. Typography & Spacing adjustments */
@media (max-width: 768px) {
  h1,
  .text-gradient {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 1.75rem !important;
  }
  h3 {
    font-size: 1.5rem !important;
  }
  .section,
  .hero,
  .tool-wrapper {
    padding: 2.5rem 1rem !important;
  }
  .container {
    padding: 0 1rem !important;
  }
}

@media (max-width: 480px) {
  h1,
  .text-gradient {
    font-size: 1.75rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* 4. Grid & Cards */
@media (max-width: 768px) {
  .tools-grid,
  .features-grid,
  .benefits-grid,
  .steps-container,
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .tool-card,
  .card,
  .benefit-item,
  .step {
    padding: 1.5rem !important;
  }
  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* 5. Footer */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .social-links {
    justify-content: center;
  }
}

/* 6. XML Formatter Tool Specific */
@media (max-width: 1024px) {
  .tool-grid {
    grid-template-columns: 1fr !important;
    display: flex;
    flex-direction: column;
  }
  .editor-col {
    border-right: none !important;
    border-bottom: 1px solid var(--border, #e2e8f0);
    height: auto !important;
    min-height: 350px;
  }
  .editor-col:last-child {
    border-bottom: none;
  }
  textarea.form-control,
  .editor-col textarea {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .tool-controls {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .tool-controls .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem !important;
    font-size: 1rem !important;
  }
  textarea,
  input,
  select {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }
  .editor-col textarea {
    padding: 1rem !important;
    min-height: 250px;
  }
}

/* 7. Blog & Content Formatting */
pre {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  overflow-x: auto;
  font-size: 14px;
  padding: 1rem !important;
  border-radius: var(--radius, 8px);
  max-width: 100vw; /* ensure it doesnt cause scrolling */
}
pre code {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
}
table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.content-block-main {
  padding: 0 !important;
}
@media (max-width: 768px) {
  .content-block-main img {
    margin: 1rem 0;
  }
  .accordion-header {
    font-size: 1rem !important;
    padding: 1rem !important;
  }
  .accordion-content {
    padding: 0 1rem !important;
  }
}

/* Hamburger Animation */
.mobile-toggle svg {
  transition: transform 0.3s ease;
}
.mobile-toggle svg line {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}
.mobile-toggle.active svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.active svg line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
