@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-accent: #eef2ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #0ea5e9;
  --accent-2: #22c55e;
  --accent-3: #f97316;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --glass: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 15%, rgba(34, 197, 94, 0.1), transparent 60%),
    radial-gradient(800px 500px at 15% 85%, rgba(249, 115, 22, 0.08), transparent 60%),
    #f7f8fc;
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 10% 10%, rgba(14, 165, 233, 0.14), transparent 70%),
    radial-gradient(500px 280px at 90% 15%, rgba(34, 197, 94, 0.12), transparent 70%),
    radial-gradient(400px 260px at 15% 85%, rgba(249, 115, 22, 0.12), transparent 70%);
  z-index: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.7s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

small {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Utilities (bootstrap replacement) */
.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

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

.text-muted {
  color: var(--muted);
}

.d-flex {
  display: flex;
}

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

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 2.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.w-100 {
  width: 100%;
}

.main-content {
  position: relative;
  z-index: 1;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.col-6 {
  flex: 1 1 220px;
}

/* Navbar */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.88));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  height: 72px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.45);
}

.logo img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.4));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: #e2e8f0;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  position: relative;
}

.nav-links a.active,
.nav-dropdown-toggle.active {
  color: #38bdf8;
}

.nav-item.dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  color: #e2e8f0;
  font-weight: 600;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}

.nav-dropdown {
  list-style: none;
  position: absolute;
  top: 42px;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 10px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  display: none;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 8px 10px;
  color: #e2e8f0;
  border-radius: 8px;
}

.nav-dropdown a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
}

.nav-item.dropdown:hover .nav-dropdown {
  display: block;
}

.nav-item.dropdown.open .nav-dropdown {
  display: block;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after,
.nav-dropdown a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 26px;
  background: transparent;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
}

/* Hero */
.page-hero {
  width: min(920px, 100% - 32px);
  margin: 36px auto 0;
  padding: 34px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: "Fraunces", "Space Grotesk", serif;
  font-size: clamp(2rem, 2.2vw + 1.4rem, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Tool Card */
.compress-card {
  width: 100%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  position: relative;
  z-index: 1;
}

/* Tool Switcher */
.tool-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.02));
  padding: 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.tool-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.tool-btn:hover {
  background: #e0f2fe;
}

.tool-btn.active {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  color: #0f172a;
}

/* Feature Cards */
.feature-section {
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.feature-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.feature-title-lg {
  font-size: clamp(1.4rem, 1.2vw + 1.1rem, 1.9rem);
  margin: 0 0 4px;
}

.feature-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -60% -40%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-title {
  font-weight: 700;
  margin: 10px 0 6px;
}

.feature-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(34, 197, 94, 0.35));
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #0f172a;
  stroke-width: 2;
  fill: none;
}

.input-helper {
  display: grid;
  gap: 6px;
}

.base64-area {
  width: 100%;
  min-height: 180px;
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 12px;
  padding: 12px;
  font-family: \"Space Grotesk\", system-ui, -apple-system, \"Segoe UI\", Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
}

.copy-btn {
  margin-top: 12px;
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.outline-btn {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.outline-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.15);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.meta-list li {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.25);
}

.notice-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #0f172a;
  font-size: 0.92rem;
}

/* Upload Area */
.upload-area {
  border: 2px dashed rgba(14, 165, 233, 0.35);
  border-radius: 16px;
  padding: 28px 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(34, 197, 94, 0.05));
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-area:hover {
  border-color: rgba(14, 165, 233, 0.8);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

.upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-area.dragover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.upload-area.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Form Controls */
.form-label {
  font-weight: 600;
}

.form-control,
.form-select {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
}

/* Buttons */
.btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.compress-btn {
  padding: 13px;
  font-weight: 700;
  border-radius: 12px;
  color: #0f172a;
  background: linear-gradient(135deg, #38bdf8 0%, #22c55e 50%, #facc15 100%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.compress-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}

/* Output */
#output {
  text-align: left;
}

.result-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.35);
  margin-top: 16px;
}

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

.result-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.badge {
  background: #38bdf8;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.image-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #0b1020;
}

.result-info p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  text-align: center;
  padding: 12px 18px;
  background: linear-gradient(90deg, #f97316, #f43f5e);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-premium:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.4);
}

/* Progress */
.progress-box {
  margin-top: 15px;
}

.progress-text {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #0f172a;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  transition: width 0.25s ease;
}

/* Content Sections */
.seo-content {
  position: relative;
  z-index: 1;
}

.seo-content h2 {
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 12px;
}

.seo-content p,
.seo-content li {
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.7;
}

.seo-content ul {
  padding-left: 18px;
}

.content-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Product Hunt embed */
.ph-embed {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  max-width: 520px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 0 auto 24px;
}

.ph-embed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ph-embed-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ph-embed-meta {
  flex: 1 1 0%;
  min-width: 0;
}

.ph-embed-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-embed-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666666;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ph-embed-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 8px 16px;
  background: #ff6154;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.ph-embed-cta:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 97, 84, 0.25);
}

@media (max-width: 520px) {
  .ph-embed {
    padding: 16px;
  }

  .ph-embed-header {
    align-items: flex-start;
  }

  .ph-embed-title {
    white-space: normal;
  }
}

/* Footer */
.site-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 30px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.footer-links a {
  margin: 0 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-credit {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(56, 189, 248, 0.6),
    0 0 24px rgba(34, 197, 94, 0.35);
}

.footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-badge a {
  display: inline-flex;
  align-items: center;
}

.footer-badge img {
  max-width: 140px;
  height: auto;
  opacity: 0.9;
  transition: 0.3s ease;
}

.footer-badge img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-badge .ph-badge img {
  width: 250px;
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .page-hero {
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    right: 18px;
    background: #0f172a;
    flex-direction: column;
    padding: 14px 18px;
    border-radius: 14px;
    display: none;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
    width: 220px;
  }

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

  .logo img {
    height: 44px;
  }

  .nav-item.dropdown:hover .nav-dropdown {
    display: none;
  }

  .nav-item.dropdown.open .nav-dropdown {
    display: block;
    position: static;
    margin-top: 6px;
    background: #0f172a;
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
  }
}

@media (max-width: 768px) {
  .site-navbar {
    height: 64px;
  }

  .nav-container {
    height: 64px;
  }

  .logo {
    padding: 4px 10px;
  }
}

@media (max-width: 576px) {
  .compress-card {
    padding: 20px;
  }

  .page-hero {
    padding: 22px 18px;
  }

  .upload-area {
    padding: 22px 12px;
  }

  .upload-icon {
    width: 62px;
    height: 62px;
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
.app-download-cta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin-top:18px;
  margin-bottom:28px;
}


.app-download-btn{
  background:#38bdf8;
  color:#0f172a;
  font-weight:700;
  padding:14px 22px;
  border-radius:999px;
  text-decoration:none;
  box-shadow:0 10px 30px rgba(56,189,248,.25);
  transition:transform .15s ease, box-shadow .15s ease;
}

.app-download-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(56,189,248,.35);
}

.app-download-note{
  font-size:13px;
  color:#94a3b8;
}

/* Mobile pe aur zyada visible */
@media (max-width: 768px){
  .app-download-btn{
    width:90%;
    text-align:center;
    font-size:16px;
  }
}

