/* ============================================================
   MANIMUS TOOLS — Global Styles
   Matching manimus.online design language
   ============================================================ */

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

/* ── CSS Variables (Neo-Brutalist / Scalrus Inspired) ── */
:root {
  --clr-bg:        #fafafa;
  --clr-bg-soft:   #f4f4f5;
  --clr-bg-card:   #ffffff;
  --clr-navy:      #09090b;
  --clr-navy-mid:  #18181b;
  --clr-navy-lite: #27272a;
  --clr-purple:    #06b6d4; /* Cyan accent for Scalrus look */
  --clr-purple-dk: #0891b2;
  --clr-purple-lt: #cffafe;
  --clr-gold:      #f59e0b;
  --clr-text:      #09090b;
  --clr-muted:     #52525b;
  --clr-border:    #09090b; /* Bold black borders */
  --clr-success:   #10b981;
  --clr-error:     #ef4444;
  --clr-warning:   #f59e0b;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --shadow-sm:     2px 2px 0px rgba(9,9,11,1);
  --shadow-md:     4px 4px 0px rgba(9,9,11,1);
  --shadow-lg:     8px 8px 0px rgba(9,9,11,1);
  --shadow-purple: 4px 4px 0px rgba(6,182,212,1);
  --transition:    all 0.2s ease;
}

[data-theme="dark"] {
  --clr-bg:        #09090b;
  --clr-bg-soft:   #18181b;
  --clr-bg-card:   #18181b;
  --clr-navy:      #ffffff;
  --clr-navy-mid:  #f4f4f5;
  --clr-navy-lite: #e4e4e7;
  --clr-text:      #fafafa;
  --clr-muted:     #a1a1aa;
  --clr-border:    #ffffff; /* White borders for dark mode */
  --shadow-sm:     2px 2px 0px rgba(255,255,255,1);
  --shadow-md:     4px 4px 0px rgba(255,255,255,1);
  --shadow-lg:     8px 8px 0px rgba(255,255,255,1);
  --shadow-purple: 4px 4px 0px rgba(6,182,212,1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  /* Add grid background */
  background-image: linear-gradient(rgba(9, 9, 11, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 11, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(6,182,212,0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(6,182,212,0.05), transparent 40%);
  pointer-events: none;
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: var(--clr-bg);
  border-bottom: 2px solid var(--clr-border);
  transition: var(--transition);
}
[data-theme="dark"] .navbar {
  background: rgba(10,10,10,0.95);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  color: var(--clr-text);
  white-space: nowrap;
}
.brand-logo {
  width: 38px;
  height: 38px;
  background: var(--clr-navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -1px;
  flex-shrink: 0;
}
[data-theme="dark"] .brand-logo { background: #fff; color: #000; }
.brand-sub { font-size: 0.68rem; color: var(--clr-muted); font-weight: 500; display: block; letter-spacing: 0.5px; line-height: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-navy-lite);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--clr-text);
  background: var(--clr-bg-card);
}
/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content:"▾"; font-size: .7rem; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--clr-bg);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-size: 0.88rem;
}
.dropdown-menu a:hover { background: var(--clr-bg-card); }
.dropdown-menu a span.icon { font-size: 1.1rem; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.btn-theme {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--clr-muted);
  transition: var(--transition);
}
.btn-theme:hover { background: var(--clr-bg-card); color: var(--clr-text); }
.btn-letstalk {
  background: var(--clr-navy);
  color: #fff;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition);
}
.btn-letstalk:hover {
  background: var(--clr-purple);
  transform: translateY(-1px);
  box-shadow: var(--shadow-purple);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  color: var(--clr-text);
}

/* ============================================================
   HERO — INDEX PAGE
   ============================================================ */
.hero {
  padding: 5rem 5% 4rem;
  background: linear-gradient(160deg, #fafafe 0%, #f0ebff 50%, #f8fafc 100%);
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
}
[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,92,246,.1);
  color: var(--clr-purple);
  border: 1px solid rgba(139,92,246,.2);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.2rem; font-weight: 900; }
.hero h1 em { font-style: italic; background: linear-gradient(135deg, var(--clr-purple), #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: var(--clr-muted); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Connected-to-main banner */
.main-link-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--clr-navy);
  color: #fff;
  padding: 0.9rem 5%;
  font-size: 0.875rem;
  font-weight: 500;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.main-link-banner a { color: var(--clr-purple); font-weight: 600; text-decoration: underline; }
.main-link-banner .divider { opacity: .4; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  background: var(--clr-bg);
  color: var(--clr-text);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px rgba(9,9,11,1) !important;
}
.btn-primary {
  background: var(--clr-navy);
  color: var(--clr-bg);
  border: 2px solid var(--clr-border);
}
.btn-primary:hover {
  background: var(--clr-purple);
  box-shadow: var(--shadow-md);
  transform: translate(-2px, -2px);
}
.btn-outline {
  background: var(--clr-bg);
  color: var(--clr-text);
  border: 2px solid var(--clr-border);
}
.btn-outline:hover {
  background: var(--clr-purple-lt);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}
.btn-purple {
  background: var(--clr-purple);
  color: #fff;
  border: 2px solid var(--clr-border);
}
.btn-purple:hover {
  background: var(--clr-purple-dk);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-purple);
}
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ============================================================
   TOOLS GRID — INDEX
   ============================================================ */
.section { padding: 5rem 5%; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-purple);
  margin-bottom: 0.6rem;
}
.section-title { margin-bottom: 0.8rem; }
.section-desc { color: var(--clr-muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 3rem; }
.center { text-align: center; }
.center .section-desc { margin-inline: auto; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.tool-card {
  background: var(--clr-bg-card);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  position: relative;
}
.tool-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
  background: var(--clr-purple-lt);
}
.tool-card-icon {
  width: 52px; height: 52px;
  background: var(--clr-purple-lt);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--clr-purple-dk);
  border: 2px solid var(--clr-border);
  box-shadow: 2px 2px 0 var(--clr-border);
}
.tool-card-icon svg {
  width: 24px; height: 24px;
}
[data-theme="dark"] .tool-card-icon { background: var(--clr-navy-lite); color: var(--clr-purple-lt); }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.875rem; color: var(--clr-muted); flex: 1; }
.tool-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 0;
  border: 2px solid var(--clr-border);
  letter-spacing: 0.5px;
  background: var(--clr-purple-lt);
  color: var(--clr-text);
  margin-top: 1rem;
  box-shadow: 2px 2px 0 var(--clr-border);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--clr-navy);
  color: #fff;
  padding: 3rem 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item h3 { font-size: 2.2rem; font-weight: 900; color: var(--clr-purple); margin-bottom: 0.2rem; }
.stat-item p { font-size: 0.9rem; color: rgba(255,255,255,.7); }

/* ============================================================
   TOOL PAGE — UPLOAD WORKSPACE
   ============================================================ */
.tool-hero {
  padding: 3.5rem 5% 2.5rem;
  background: linear-gradient(160deg, var(--clr-bg) 0%, var(--clr-purple-lt) 100%);
  border-bottom: 1px solid var(--clr-border);
}
[data-theme="dark"] .tool-hero {
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0a2e 100%);
}
.tool-hero-inner { max-width: 700px; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--clr-muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--clr-purple); }
.breadcrumb span { opacity: .5; }
.tool-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.tool-hero p  { color: var(--clr-muted); font-size: 1.05rem; }

.workspace {
  padding: 2.5rem 5%;
  max-width: 860px;
  margin: 0 auto;
}

/* File Size Selector */
.plan-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--clr-warning);
  margin-bottom: 1.5rem;
}

/* Upload Area */
.upload-zone {
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--clr-bg-soft);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--clr-purple);
  background: var(--clr-purple-lt);
}
[data-theme="dark"] .upload-zone:hover,
[data-theme="dark"] .upload-zone.drag-over {
  background: rgba(139,92,246,.08);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }
.upload-zone h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.upload-zone p { color: var(--clr-muted); font-size: 0.875rem; }
.upload-zone .browse { color: var(--clr-purple); font-weight: 600; }

/* File Queue */
.file-queue { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}
.file-item-icon { font-size: 1.4rem; flex-shrink: 0; }
.file-item-info { flex: 1; min-width: 0; }
.file-item-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item-size { font-size: 0.8rem; color: var(--clr-muted); }
.file-item-remove {
  background: none; border: none; color: var(--clr-muted);
  font-size: 1.2rem; padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.file-item-remove:hover { background: rgba(239,68,68,.1); color: var(--clr-error); }

/* Progress */
.progress-wrap { margin-top: 1.5rem; display: none; }
.progress-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-purple);
  animation: pulse 1s ease-in-out infinite;
}
.progress-bar {
  height: 6px;
  background: var(--clr-border);
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-purple), #ec4899);
  border-radius: 10px;
  width: 0%;
  transition: width 0.4s ease;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Convert Button */
.convert-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Download Area */
.download-card {
  display: none;
  margin-top: 1.5rem;
  background: rgba(16,185,129,.06);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.download-card h3 { color: var(--clr-success); margin-bottom: 0.4rem; }
.download-card p { color: var(--clr-muted); font-size: 0.875rem; margin-bottom: 1.2rem; }

/* Image Editor Controls */
.editor-panel {
  display: none;
  margin-top: 1.5rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.editor-preview {
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin: 0 auto 1.5rem;
  width: 100%;
}
.editor-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.ctrl-group label { display: block; font-size: 0.8rem; color: var(--clr-muted); font-weight: 500; margin-bottom: 0.3rem; }
.ctrl-group input[type="number"],
.ctrl-group input[type="range"] {
  width: 100%;
  background: var(--clr-bg-soft);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  color: var(--clr-text);
  outline: none;
  transition: var(--transition);
}
.ctrl-group input:focus { border-color: var(--clr-purple); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* OCR Result */
.ocr-output {
  display: none;
  margin-top: 1rem;
  background: var(--clr-bg-soft);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
  color: var(--clr-text);
}

/* File History */
.history-section { padding: 3rem 5%; border-top: 1px solid var(--clr-border); }
.history-section h2 { margin-bottom: 1.2rem; font-size: 1.3rem; }
.history-list { display: flex; flex-direction: column; gap: 0.8rem; }
.history-empty { color: var(--clr-muted); font-size: 0.9rem; }
.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--clr-bg-soft);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}
.history-item-icon { font-size: 1.3rem; }
.history-item-info { flex: 1; min-width: 0; }
.history-item-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item-meta { font-size: 0.75rem; color: var(--clr-muted); }
.history-item-type {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--clr-purple-lt);
  color: var(--clr-purple);
  border-radius: 20px;
  white-space: nowrap;
}

/* ============================================================
   PREMIUM MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--clr-bg);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  transform: scale(.9);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-box .modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-box h2 { margin-bottom: 0.5rem; }
.modal-box p { color: var(--clr-muted); margin-bottom: 1.5rem; }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.4rem; color: var(--clr-muted);
}
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.plan-card {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: var(--transition);
}
.plan-card.highlighted { border-color: var(--clr-purple); background: var(--clr-purple-lt); }
.plan-card h4 { margin-bottom: 0.3rem; }
.plan-card .price { font-size: 1.5rem; font-weight: 800; color: var(--clr-purple); }
.plan-card .price span { font-size: 0.8rem; font-weight: 400; color: var(--clr-muted); }
.plan-card ul { font-size: 0.8rem; color: var(--clr-muted); list-style: none; margin-top: 0.6rem; }
.plan-card ul li::before { content: "✓ "; color: var(--clr-success); font-weight: 700; }

/* ============================================================
   TOAST
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.2rem;
  background: var(--clr-navy);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideToast 0.3s ease;
  min-width: 260px;
  max-width: 360px;
}
.toast.success { border-left: 4px solid var(--clr-success); }
.toast.error   { border-left: 4px solid var(--clr-error); }
.toast.warning { border-left: 4px solid var(--clr-warning); }
@keyframes slideToast {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
  background: var(--clr-bg-soft);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.feat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feat-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.feat-item h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feat-item p  { font-size: 0.8rem; color: var(--clr-muted); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: var(--clr-purple); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--clr-purple-lt), rgba(139,92,246,.3));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.blog-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 0.2rem 0.7rem; border-radius: 20px;
  background: var(--clr-purple-lt); color: var(--clr-purple);
}
.blog-date { font-size: 0.78rem; color: var(--clr-muted); }
.blog-card h3 { font-size: 1rem; margin-bottom: 0.6rem; line-height: 1.4; }
.blog-card p { font-size: 0.85rem; color: var(--clr-muted); flex: 1; }
.blog-footer { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--clr-muted); }
.blog-read-more { color: var(--clr-purple); font-weight: 600; font-size: 0.85rem; }

/* ============================================================
   BRAND CONNECTION SECTION
   ============================================================ */
.brand-connect {
  padding: 4rem 5%;
  background: var(--clr-navy);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.brand-connect h2 { color: #fff; margin-bottom: 1rem; }
.brand-connect p { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.brand-connect ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.brand-connect ul li { font-size: 0.9rem; color: rgba(255,255,255,.85); }
.brand-connect ul li::before { content: "→ "; color: var(--clr-purple); }
.services-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.service-pill {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.85);
  transition: var(--transition);
}
.service-pill:hover { background: var(--clr-purple); border-color: var(--clr-purple); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,.75);
  padding: 4rem 5% 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 { color: #fff; font-size: 1.1rem; margin: 0.8rem 0 0.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--clr-purple); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--clr-purple); }

/* ============================================================
   ADS (placeholder blocks)
   ============================================================ */
.ad-block {
  background: var(--clr-bg-soft);
  border: 1px dashed var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--clr-muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}
.ad-block-label { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.3rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .brand-connect { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 4%; border-bottom: none; height: 60px; }
  .nav-links, .nav-actions .btn-letstalk, .mobile-menu-btn { display: none !important; }
  
  /* App-like Bottom Navigation */
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--clr-bg);
    border-top: 2px solid var(--clr-border);
    height: 65px;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  
  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--clr-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    flex: 1;
    transition: var(--transition);
  }
  
  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
  }
  
  .bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--clr-purple-dk);
    transform: translateY(-2px);
  }
  
  /* Make app feel more native */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  .tool-card:active, .btn:active {
    transform: scale(0.98);
  }

  /* Native App List Style for Tool Cards */
  .tools-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  .tool-card {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 2px 2px 0 var(--clr-border);
  }
  .tool-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .tool-card-icon svg {
    width: 20px;
    height: 20px;
  }
  .tool-card h3 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
  }
  .tool-card p {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
  }
  .tool-card-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    margin-top: 0;
    font-size: 0.55rem;
    padding: 0.2rem 0.4rem;
  }

  /* Compact section headers */
  .section-title { font-size: 1.5rem; }
  .section-desc { font-size: 0.9rem; }

  .hero { padding: 2rem 4% 3rem; }
  .section { padding: 3.5rem 4%; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .plan-cards { grid-template-columns: 1fr; }
  .workspace { padding: 1.5rem 4%; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: stretch; }
  .tools-grid { grid-template-columns: 1fr; }
  .editor-controls-grid { grid-template-columns: 1fr 1fr; }
  .brand-connect ul li { font-size: 0.85rem; }
}
