/* ===========================
   WatermarkFast – style.css
   =========================== */

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

:root {
  --brand:       #1a56db;
  --brand-dark:  #1239a5;
  --brand-light: #ebf2ff;
  --accent:      #f59e0b;
  --success:     #059669;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-light:  #9ca3af;
  --bg:          #ffffff;
  --bg-subtle:   #f9fafb;
  --bg-card:     #ffffff;
  --border:      #e5e7eb;
  --border-dark: #d1d5db;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --font-body:   'DM Sans', sans-serif;
  --font-mono:   'DM Mono', monospace;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
}

.logo-icon { font-size: 1.2rem; }

.nav { display: flex; gap: 1.5rem; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav a:hover { color: var(--brand); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand-light); }
.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover { background: #047857; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-blue   { background: #dbeafe; color: #1e3a8a; }
.badge-amber  { background: #fef3c7; color: #92400e; }

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 60%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--brand); }
.hero-sub { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Trust bar ── */
.trust-bar { background: var(--bg-subtle); border-bottom: 1px solid var(--border); padding: 1.2rem 0; }
.trust-inner {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.trust-icon { font-size: 1rem; }

/* ── Tools section ── */
.tools-section { padding: 5rem 0; }
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tool-card--featured {
  border-color: var(--brand);
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
}
.tool-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tool-icon { font-size: 2rem; margin-bottom: 1rem; }
.tool-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.tool-card p { font-size: 0.88rem; color: var(--text-secondary); flex: 1; margin-bottom: 1.25rem; }
.tool-link { font-size: 0.88rem; font-weight: 600; color: var(--brand); }

/* ── How section ── */
.how-section {
  padding: 5rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { text-align: center; }
.step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--brand-light);
  border: 2px solid var(--brand-light);
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: var(--brand);
}
.step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; color: var(--text-secondary); }

/* ── FAQ ── */
.faq-section { padding: 5rem 0; }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: 1.1rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}
.faq-item summary:hover { color: var(--brand); }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--text-light); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-bottom: 1.1rem;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 2rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-brand .logo-icon { font-size: 1.4rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ===========================
   Tool Page Styles
   =========================== */
.tool-page { padding: 3rem 0 5rem; }
.tool-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tool-page-header h1 { font-size: 2rem; font-weight: 600; margin-bottom: 0.5rem; }
.tool-page-header p { color: var(--text-secondary); font-size: 0.95rem; }

/* Drop zone */
.dropzone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-subtle);
  position: relative;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--brand);
  background: var(--brand-light);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.dropzone h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.dropzone p { font-size: 0.85rem; color: var(--text-secondary); }

/* Controls panel */
.controls-panel {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.control-group { margin-bottom: 1.25rem; }
.control-group:last-child { margin-bottom: 0; }
.control-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color 0.15s;
  outline: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus { border-color: var(--brand); }

input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
  height: 4px;
  cursor: pointer;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range-row input[type="range"] { flex: 1; }
.range-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-width: 36px;
  text-align: right;
}

/* Position grid */
.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pos-btn {
  padding: 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.15s;
}
.pos-btn:hover { border-color: var(--brand); color: var(--brand); }
.pos-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Tool layout */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .tool-layout { grid-template-columns: 1fr; }
}

/* Preview */
.preview-area {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.preview-area canvas,
.preview-area img { max-width: 100%; max-height: 480px; display: block; }
.preview-placeholder { text-align: center; color: var(--text-light); }
.preview-placeholder p { font-size: 0.88rem; margin-top: 8px; }

/* Download bar */
.download-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}
.download-bar p { flex: 1; font-size: 0.88rem; color: #065f46; }

/* Color picker */
input[type="color"] {
  width: 40px; height: 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 2px;
  background: var(--bg);
}

/* Color row */
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="text"] { flex: 1; }

/* hidden */
.hidden { display: none !important; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 0.6rem 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--brand); }
.breadcrumb span { margin: 0 6px; }

/* ── Content section (SEO text blocks) ── */
.content-section {
  padding: 3rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .content-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.content-block h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.content-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.content-block p:last-child { margin-bottom: 0; }

/* ── Feature list ── */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive nav */
@media (max-width: 480px) {
  .nav { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .trust-inner { gap: 1rem; flex-direction: column; align-items: center; }
}
