/* ================================
   GOOGLE FONTS
================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ================================
   DESIGN TOKENS
================================ */
:root {
  --bg-main: #f0f4ff;
  --bg-soft: #e8edff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-muted: rgba(15, 23, 42, 0.025);

  --text: #0b1437;
  --text-secondary: #1e293b;
  --muted: #526078;

  --accent: #06b6d4;
  --accent-2: #6366f1;
  --accent-3: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --gradient-primary: linear-gradient(135deg, #06b6d4, #6366f1, #8b5cf6);
  --gradient-warm: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 3px rgba(11, 20, 40, 0.04);
  --shadow-sm: 0 4px 12px rgba(11, 20, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 20, 40, 0.08);
  --shadow-lg: 0 24px 64px rgba(11, 20, 40, 0.12);
  --shadow-xl: 0 40px 80px rgba(11, 20, 40, 0.16);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
  --shadow-card-hover: 0 20px 48px rgba(99, 102, 241, 0.15), 0 8px 16px rgba(11, 20, 40, 0.06);

  --max: 1200px;
  --content: 880px;

  --fs-base: 16px;
  --fs-sm: 0.875rem;
  --fs-h1: clamp(2.2rem, 5.5vw, 3.5rem);
  --fs-h2: clamp(1.4rem, 3vw, 2rem);
  --fs-h3: 1.1rem;
  --fs-lead: clamp(1.05rem, 1.5vw, 1.15rem);

  --lh: 1.7;
  --transition: 280ms cubic-bezier(.2, .9, .2, 1);
  --transition-slow: 500ms cubic-bezier(.2, .9, .2, 1);
}

/* ================================
   RESET & BASE
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated gradient background mesh */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  z-index: -1;
  animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(2%, -1%) scale(1.02);
  }

  66% {
    transform: translate(-1%, 2%) scale(0.98);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================
   TYPOGRAPHY
================================ */
h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.08;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

p {
  margin: 0;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--muted);
}

.desc {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.75;
}

.desc+.desc {
  margin-top: 14px;
}

.muted {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.7;
}

/* Section title decoration */
section>h2 {
  position: relative;
  display: inline-block;
}

section>h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-primary);
}

/* ================================
   NAVIGATION
================================ */
nav[role="navigation"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: 0 1px 24px rgba(11, 20, 40, 0.04);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand .title {
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:not(.cta):hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--accent-2);
}

/* CTA button — used in nav and hero */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--gradient-primary);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}

.cta:hover::before {
  opacity: 1;
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.cta:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.5);
  outline-offset: 3px;
}

/* ================================
   HERO
================================ */
header {
  padding: 48px 24px 64px;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  background: var(--gradient-surface);
  padding: clamp(32px, 6vw, 56px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow:
    var(--shadow-xl),
    var(--shadow-glow);
  display: flex;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

/* Decorative gradient orbs */
.hero-inner::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 1;
}

.logo-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo-hero img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.logo-hero div {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.hero h1 {
  margin-bottom: 18px;
}

.hero .lead {
  margin-bottom: 8px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-actions .cta {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--surface);
  border: 1.5px solid rgba(99, 102, 241, 0.15);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ================================
   MAIN LAYOUT
================================ */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: clamp(48px, 8vw, 88px) 0;
  position: relative;
}

/* Alternating section backgrounds */
section:nth-child(even) {
  background: rgba(99, 102, 241, 0.02);
  border-radius: var(--radius-xl);
  margin: 16px -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
}

/* ================================
   GRID & CARDS
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  position: relative;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}

/* Subtle gradient accent on top of card */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(99, 102, 241, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.05rem;
}

/* Card icon-like number labels for tool cards */
article.card {
  counter-increment: tool-counter;
}

/* ================================
   FORMS
================================ */
form.form-card {
  max-width: 760px;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: var(--shadow-md);
  margin-top: 28px;
}

label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
  margin-top: 16px;
}

label:first-child {
  margin-top: 0;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  margin: 4px 0 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(11, 20, 40, 0.1);
  background: var(--bg-main);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

button {
  cursor: pointer;
}

/* ================================
   BREADCRUMB
================================ */
.breadcrumb-nav {
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
}

.breadcrumb-nav a:hover {
  opacity: 0.7;
}

.breadcrumb-sep {
  color: var(--muted);
  margin: 0 6px;
}

/* ================================
   CONTACT PAGE GRID
================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.contact-info h2 {
  margin-top: 0;
}

.contact-info h3 {
  margin-top: 24px;
}

.contact-info .desc {
  margin-top: 12px;
}

.contact-info a {
  color: var(--accent-2);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================
   FOOTER
================================ */
footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #cbd5e1;
  padding: 64px 24px 48px;
  position: relative;
  overflow: hidden;
  margin-top: 32px;
}

/* Decorative gradient line at top of footer */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

/* Reset leaking styles */
footer * {
  background: transparent !important;
  box-shadow: none !important;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.footer-brand strong {
  font-size: 1.05rem;
  color: #f1f5f9;
}

.footer-tagline {
  font-size: 0.88rem;
  opacity: 0.7;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: #94a3b8 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition) !important;
}

.footer-links a:hover {
  color: #e2e8f0 !important;
  text-decoration: none;
}

.footer-meta {
  text-align: right;
  font-size: 0.88rem;
  color: #64748b;
}

.footer-meta a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-meta a:hover {
  color: #e2e8f0;
}

/* ================================
   REVEAL ANIMATION
================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .9, .2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }

  body::before {
    animation: none;
  }
}

/* ================================
   HAMBURGER MENU
================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(99, 102, 241, 0.06);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 300ms cubic-bezier(.2, .9, .2, 1);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================
   BREADCRUMB (sub-pages)
================================ */
nav[aria-label="Breadcrumb"] {
  position: static !important;
  background: none !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  z-index: auto !important;
}

nav[aria-label="Breadcrumb"] a {
  color: var(--accent-2);
  font-weight: 600;
}

/* ================================
   SUB-PAGE CONTENT STYLES
================================ */
section h2 {
  margin-top: 32px;
}

section h2:first-of-type {
  margin-top: 20px;
}

section h3 {
  margin-top: 24px;
}

section ul {
  padding-left: 24px;
  margin-top: 8px;
  color: var(--muted);
}

section ul li {
  margin-bottom: 6px;
  line-height: 1.7;
}

section ul li::marker {
  color: var(--accent-2);
}

/* ================================
   FAQ CARDS
================================ */
#faq .card {
  margin-top: 16px;
}

#faq .card:first-of-type {
  margin-top: 28px;
}

#faq .card h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.05rem;
}

/* ================================
   PRIVACY SUMMARY LINK
================================ */
a[href="/privacy-policy.html"],
a[href="/contact.html"] {
  color: var(--accent-2);
  font-weight: 700;
  transition: opacity var(--transition);
}

a[href="/privacy-policy.html"]:hover,
a[href="/contact.html"]:hover {
  opacity: 0.8;
}

/* ================================
   TOOL PAGE HEADER
================================ */
.tool-header {
  max-width: var(--content);
  margin: 0 auto;
  padding: 40px 0 24px;
}

.tool-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.tool-header .lead {
  max-width: 64ch;
}

.tool-intro {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 0 32px;
}

.tool-intro p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 72ch;
}

/* ================================
   DROP ZONE
================================ */
.drop-zone {
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(99, 102, 241, 0.03);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-2);
  background: rgba(99, 102, 241, 0.08);
  transform: scale(1.01);
}

.drop-zone .icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.drop-zone p {
  color: var(--muted);
}

.drop-zone p strong {
  color: var(--text);
}

.drop-zone input[type="file"] {
  display: none;
}

/* ================================
   SLIDER
================================ */
.slider-group {
  margin: 20px 0;
}

.slider-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--gradient-primary);
  outline: none;
  border: none;
  margin: 0;
  padding: 0;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  border: 2px solid var(--accent-2);
}

.slider-val {
  font-weight: 700;
  color: var(--accent-2);
  min-width: 48px;
  text-align: center;
  font-size: 0.95rem;
}

.slider-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ================================
   STATS GRID
================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-card .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-top: 4px;
}

.stat-card .value.green {
  color: #10b981;
}

/* ================================
   PREVIEW GRID
================================ */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.preview-box {
  text-align: center;
}

.preview-box img {
  max-width: 100%;
  max-height: 250px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.1);
  object-fit: contain;
}

.preview-box p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* ================================
   TOOL BUTTONS
================================ */
.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-tool.primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-tool.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}

.btn-tool.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid rgba(99, 102, 241, 0.15);
  box-shadow: var(--shadow-xs);
}

.btn-tool.secondary:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ================================
   OUTPUT BOX
================================ */
.output-section {
  margin-top: 24px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.output-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-2);
}

.char-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.output-box {
  background: var(--bg-main);
  border: 1.5px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px;
  min-height: 120px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: break-word;
}

/* ================================
   SCORE CIRCLE
================================ */
.score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle .bg {
  fill: none;
  stroke: rgba(99, 102, 241, 0.1);
  stroke-width: 10;
}

.score-circle .progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* ================================
   TAG LIST
================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ================================
   TRUST BADGE
================================ */
.trust-badge {
  text-align: center;
  padding: 12px 20px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  color: #059669;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
}

/* ================================
   TOAST NOTIFICATION
================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gradient-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

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

/* ================================
   TOOL FORM
================================ */
.tool-card {
  max-width: var(--content);
  margin: 0 auto;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: var(--shadow-md);
}

.tool-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  margin-top: 0;
  margin-bottom: 6px;
}

.form-group label .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  margin: 4px 0 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(11, 20, 40, 0.1);
  background: var(--bg-main);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
  outline: none;
  cursor: pointer;
}

.form-group select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fff;
}

/* ================================
   TEMPLATE CHIPS
================================ */
.template-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--accent-2);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ================================
   FAQ ACCORDION (tool pages)
================================ */
.faq-section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px 0;
}

.faq-section h2 {
  margin-bottom: 20px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion .faq-item {
  cursor: pointer;
}

.faq-accordion .faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background var(--transition);
  font-size: 0.95rem;
}

.faq-accordion .faq-q:hover {
  background: rgba(99, 102, 241, 0.03);
}

.faq-accordion .faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent-2);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-accordion .faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-accordion .faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.93rem;
}

.faq-accordion .faq-item.open .faq-a {
  padding: 0 20px 16px;
  max-height: 500px;
}

/* ================================
   HOW-TO SECTION
================================ */
.how-to {
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px 0;
}

.how-to h2 {
  margin-bottom: 12px;
}

.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.how-to-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.how-to-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.how-to-step p {
  color: var(--muted);
  line-height: 1.65;
  padding-top: 6px;
}

.how-to-step strong {
  color: var(--text);
}

/* ================================
   NAV DROPDOWN
================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown>a::after {
  content: '▾';
  font-size: 0.7em;
  transition: transform var(--transition);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
  opacity: 1;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--accent-2);
}

/* ================================
   RESULTS TOGGLE
================================ */
.results {
  display: none;
}

.results.show {
  display: block;
}

/* ================================
   BATCH FILE LIST
================================ */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-glass);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.06);
  font-size: 0.9rem;
}

.file-item .name {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.file-item .size {
  color: var(--muted);
  font-size: 0.82rem;
}

.file-item .status {
  font-size: 0.82rem;
  font-weight: 600;
}

.file-item .status.done {
  color: #10b981;
}

/* ================================
   SCROLLBAR
================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
}

/* ================================
   SELECTION
================================ */
::selection {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 68px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    z-index: 150;
    padding: 48px 32px;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 28px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .nav-links a:not(.cta):hover {
    background: rgba(99, 102, 241, 0.06);
  }

  header {
    padding: 32px 16px 48px;
  }

  .hero-inner {
    flex-direction: column;
    padding: clamp(24px, 5vw, 36px);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .cta,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  main {
    padding: 0 16px;
  }

  section {
    padding: 40px 0;
  }

  section:nth-child(even) {
    margin: 8px -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

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

  form.form-card {
    padding: 20px;
  }

  /* Footer mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-meta {
    text-align: center;
  }

  /* Contact page 2-col grid → single col */
  section>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Tool pages mobile */
  .tool-card {
    padding: 20px;
  }

  .tool-form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-tool {
    justify-content: center;
  }

  /* Mobile nav dropdown */
  .nav-dropdown>a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: auto;
    width: 100%;
    padding: 0;
    display: block;
    opacity: 1;
    background: transparent;
  }

  .dropdown-menu a {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-h1: clamp(1.75rem, 7vw, 2.4rem);
    --fs-h2: clamp(1.2rem, 4vw, 1.6rem);
  }

  .nav-wrap {
    padding: 10px 16px;
  }

  .hero-inner {
    border-radius: var(--radius-lg);
  }

  .card {
    padding: 20px;
  }
}

/* HOW IT WORKS – DevTechSoft Theme */
#how {
  padding: 5rem 1.5rem;
  radial-gradient(circle at bottom right,
    rgba(124, 58, 237, 0.12),
    /* purple */
    transparent 42%),
  #f5f7ff;
  /* matches site background */
}

/* Heading */
#how h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #0b1220;
  /* same as hero text */
  margin-bottom: 0.5rem;
}

/* Accent underline */
#how h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg,
      #3b82f6,
      /* blue */
      #7c3aed
      /* purple */
    );
  border-radius: 999px;
  margin-top: 0.6rem;
}

/* Description text */
#how .desc {
  max-width: 640px;
  margin-top: 1rem;
  margin-bottom: 3.2rem;
  font-size: 1.05rem;
  color: #475569;
}

/* Steps grid */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.25rem;
}

/* Step card */
.step {
  position: relative;
  padding: 2.2rem 2.2rem 2.2rem 4.2rem;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.75));
  border-radius: 1.4rem;
  box-shadow:
    0 10px 28px rgba(30, 64, 175, 0.08),
    0 2px 8px rgba(124, 58, 237, 0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
.step:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 44px rgba(30, 64, 175, 0.14),
    0 6px 18px rgba(124, 58, 237, 0.12);
}

/* Step number */
.step-number {
  position: absolute;
  top: 2rem;
  left: 1.6rem;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Step title */
.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0b1220;
  margin-bottom: 0.6rem;
}

/* Step description */
.step p {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.6;
  max-width: 38ch;
}