@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Clean & Modern Light Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  --accent-primary: #191BC5;
  --accent-primary-hover: #0046d3;
  --accent-light: #eff6ff;

  --text-dark: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;

  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.12);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 20px 40px -10px rgba(2, 87, 250, 0.08), 0 10px 20px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 15px 30px rgba(2, 87, 250, 0.2);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent-primary);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0px;

  @media (max-width: 768px) {
    padding: 0 24px;
  }
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-primary), #3b82f6);
  color: white;
  box-shadow: 0 4px 12px rgba(2, 87, 250, 0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, var(--accent-primary-hover), var(--accent-primary));
}

.btn-white {
  background: white;
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--accent-primary-hover);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: white;
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;

  @media (max-width: 768px) {
    padding: 10px 32px;
    font-size: 0.9rem;
  }
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  padding: 80px 0 180px;
  position: relative;
  overflow: visible;
  background: radial-gradient(120% 120% at 50% -10%, #ffffff 40%, #eef5ff 100%);

  @media (max-width: 768px) {
    padding: 40px 0 40px;
  }

  &.no-image {
    @media (min-width: 769px) {
      padding-bottom: 120px;
    }
  }
}

.container.hero-container {
  max-width: 1240px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  /* Reduced gap for a tighter look on mobile image insertion */
  padding-bottom: 20px;
}

@media (min-width: 769px) {
  .container.hero-container {
    gap: 20px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ffffff, var(--bg-secondary));
  color: var(--accent-primary);
  border: 1px solid rgba(2, 87, 250, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0 auto 0px;
  box-shadow: 0 4px 12px rgba(2, 87, 250, 0.08);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  order: 1;

  @media (max-width: 769px) {
    font-size: 0.65rem;
  }
}

.badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse-dot 2s infinite;

  @media (max-width: 769px) {
    display: none;
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 87, 250, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(2, 87, 250, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(2, 87, 250, 0);
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  /* margin-bottom: 24px; */
  color: var(--text-dark);
  letter-spacing: -1.5px;
  order: 2;

  @media (max-width: 768px) {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 4px;
  }
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 auto 12px;
  /* max-width: 700px; */
  line-height: 1.5;
  order: 4;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  order: 5;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;

  @media (max-width: 768px) {
    gap: 8px;
  }
}

.stat-item strong {
  font-size: 2.2rem;
  color: transparent;
  background: linear-gradient(135deg, var(--accent-primary), #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;

  @media (max-width: 768px) {
    font-size: 2rem;
  }
}

.stat-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  width: 100%;
  /* max-width: 1000px; */
  margin: 0 auto;
  order: 3;
  /* Mobile: between Title and Subtitle */
}

@media (min-width: 769px) {
  .hero-image-wrapper {
    order: 6;
    /* Desktop: At the bottom */
  }
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    margin-bottom: 8px;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   EDITOR PANEL
========================================= */
.formatter-section {
  padding: 0 0 60px 0;
  margin-top: -120px;
  position: relative;
  z-index: 10;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 1);
}

.blue-panel {
  background: #191BC5;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 1);
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.tool-btn {
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.spacer {
  flex-grow: 1;
}

#text-input {
  width: 100%;
  height: 280px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--text-dark);
  font-size: 1.05rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  line-height: 1.7;
  transition: all 0.3s ease;
}

#text-input:focus {
  background: white;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px var(--accent-light);
}

#text-input::placeholder {
  color: #191BC5;
}

.editor-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* =========================================
   SECTIONS COMMON
========================================= */
section {
  padding: 60px 0;
}

/* Remove bottom padding for any guide section that is immediately followed by another guide section */
.guide:has(+ .guide) {
  padding-bottom: 0;
}

.section-bg {
  background: linear-gradient(180deg, #ffffff, var(--bg-secondary));
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;

  @media (max-width: 768px) {
    text-align: start;
  }
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.4;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
}

.content-container h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.4;
}

.content-container h3 {
  font-size: 1.6rem;
  margin: 32px 0 20px;
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.content-container p {
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* =========================================
   FEATURES GRID
========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.features-grid.has-4-items,
.features-grid.has-5-items {
  grid-template-columns: repeat(2, 1fr);
}

.features-grid.has-5-items .feature-card:nth-child(5) {
  grid-column: 1 / -1;
}

.feature-card {
  background: linear-gradient(135deg, white, #fdfdff);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* box-shadow: var(--shadow-sm); */
  box-shadow: var(--shadow-float);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 87, 250, 0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light), #e0e7ff);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* =========================================
   FREE TOOLS GRID
========================================= */
.free-tools {
  background: #FAF7FF
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding-top: 20px;
  /* Space for the top-absolute badges */
}

.tool-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, #ffffff, #f9fbfd);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  /* More top padding */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border-subtle);
  min-height: 160px;
  position: relative;
}

.tool-link-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
  border-color: transparent;
}

.tool-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  position: relative;
}

.badge-mini {
  align-items: center;
  padding: 4px 12px;
  background: rgb(255, 241, 241);
  color: rgb(255, 0, 0);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tool-title {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.tool-footer {
  display: flex;
  justify-content: space-between;
  /* Aligned left looks modern on small cards */
  align-items: center;
  width: 100%;
}

.btn-try {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: all 0.3s ease;
}

.tool-link-card:hover .btn-try {
  gap: 10px;
  color: var(--accent-primary-hover);
}

/* =========================================
   MASSIVE VALUE CTA
========================================= */
.value-cta-section {
  padding: 60px 0;

  @media (max-width: 768px) {
    padding: 30px 0;
  }
}

.value-cta-card {
  background: var(--text-dark);
  border-radius: 40px;
  padding: 80px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);

  @media (max-width: 768px) {
    padding: 40px
  }
}

.value-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(2, 87, 250, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.value-cta-card .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);

  @media (max-width: 768px) {
    font-size: 0.69rem;
    padding: 8px 12px;
  }
}

.value-cta-card h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;

  @media (max-width: 768px) {
    font-size: 2rem;
  }
}

.value-cta-card p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.7;
  position: relative;
  z-index: 2;

  @media (max-width: 768px) {
    font-size: 0.94rem;
  }
}

.value-cta-card .social-proof {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 24px auto 0;
  font-weight: 600;

  @media (max-width: 768px) {
    font-size: 0.94rem;
  }
}


/* =========================================
   ACCORDION (FAQ)
========================================= */
.accordion {
  display: flex;
  flex-direction: column;
  /* gap: 16px; */
}

.accordion-item {
  background: transparent;
  border-bottom: 1px solid var(--border-strong);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 24px 8px;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: var(--accent-primary);
}

.accordion-header::after {
  content: '+';
  font-size: 2rem;
  color: var(--accent-primary);
  font-weight: 400;
  transition: transform 0.4s ease;
}

.accordion-header.active::after {
  content: '−';
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 8px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.accordion-header.active+.accordion-content {
  max-height: 400px;
  opacity: 1;
}

.accordion-content p {
  color: #535353;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* =========================================
   CTA BANNER SECTION
========================================= */
.cta-banner-section {
  padding: 60px 0;
}

.cta-banner {
  background: linear-gradient(135deg, var(--accent-primary), #1e3a8a);
  border-radius: 40px;
  padding: 80px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);

  @media (max-width: 768px) {
    padding: 32px;
  }
}

.cta-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: white;
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 32px;
  letter-spacing: -1px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;

  @media (max-width: 768px) {
    font-size: 2rem;
  }
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
  z-index: 2;

  @media (max-width: 768px) {
    font-size: 0.94rem;
  }
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}


/* =========================================
   TOAST
========================================= */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  /* .hero-content h1 {
    font-size: 3rem;
  }

  .value-cta-card h2 {
    font-size: 2.5rem;
  }

  .cta-banner h2 {
    font-size: 2.2rem;
  } */

  .features-grid,
  .features-grid.has-4-items,
  .features-grid.has-5-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 30px 0;
  }

  .nav-links {
    display: none;
  }

  .container.hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .subtitle {
    margin: 0 auto 8px;
  }

  .stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }

  .badge {
    margin: 0 auto 0px;
    display: inline-flex;
  }

  .features-grid,
  .features-grid.has-4-items,
  .features-grid.has-5-items,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column !important;
    width: 100%;
    gap: 16px;
  }

  .cta-buttons .btn {
    width: 100% !important;
    text-align: center;
  }
}