﻿/* Wide & Modern Enterprise Theme - HEIC to JPG Tier C Blueprint */
:root {
  --bg-main: #F5F3FF;
  --card-bg: #FFFFFF;
  --card-border: #E0E7FF;
  --card-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.08);
  --primary-purple: #6366F1;
  --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --pill-bg: #F3E8FF;
  --pill-text: #6B21A8;
  --text-dark: #1E1B4B;
  --text-muted: #64748B;
  --text-sub: #475569;
  --radius-card: 28px;
  --radius-inner: 20px;
  --radius-pill: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, #EEF2FF 0%, #F5F3FF 50%, #FAF5FF 100%);
  background-repeat: no-repeat;
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}

/* Navbar - Global Universal Navigation */
.navbar { background: #FFFFFF; border-bottom: 1px solid #E2E8F0; padding: 0.65rem 2rem; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.nav-container { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-left { display: flex; align-items: center; }
.nav-brand-box { display: flex; align-items: center; gap: 0.65rem; }
.nav-logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800; font-family: monospace; box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3); }
.nav-brand-text-box { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-name { font-size: 1.2rem; font-weight: 800; color: #0F172A; letter-spacing: -0.02em; }
.nav-brand-subtitle { font-size: 0.58rem; font-weight: 800; color: #6366F1; letter-spacing: 0.8px; margin-top: 1px; }

.nav-center { flex: 1; max-width: 420px; margin: 0 1rem; }
.nav-search-pill { display: flex; align-items: center; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 9999px; padding: 0.4rem 0.75rem 0.4rem 0.9rem; gap: 0.5rem; width: 100%; transition: all 0.2s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.nav-search-pill:focus-within { border-color: #818CF8; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); }
.nav-search-input { border: none; background: transparent; font-size: 0.85rem; outline: none; width: 100%; color: #334155; }
.kbd-shortcut { background: #F1F5F9; color: #64748B; border-radius: 6px; font-size: 0.7rem; padding: 2px 6px; font-family: monospace; font-weight: 600; white-space: nowrap; border: 1px solid #E2E8F0; }

.nav-right { display: flex; align-items: center; gap: 0.85rem; }
.nav-categories-btn { display: flex; align-items: center; gap: 0.4rem; background: transparent; border: none; font-size: 0.88rem; font-weight: 600; color: #334155; cursor: pointer; padding: 0.4rem 0.6rem; border-radius: 8px; transition: background 0.2s; }
.nav-categories-btn:hover { background: #F8FAFC; color: #0F172A; }
.nav-theme-toggle { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #E0E7FF; background: #EEF2FF; color: #4F46E5; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.95rem; transition: all 0.2s; }
.nav-theme-toggle:hover { background: #E0E7FF; }
.nav-divider-v { width: 1px; height: 22px; background: #E2E8F0; }
.nav-signup-btn { display: flex; align-items: center; gap: 0.45rem; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: #FFFFFF; border: none; padding: 0.45rem 1.1rem; border-radius: 9999px; font-weight: 700; font-size: 0.85rem; cursor: pointer; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); transition: all 0.2s; }
.nav-signup-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4); }

/* Main Container - Expanded Wide Layout (1200px) */
.main-container {
  max-width: 1200px;
  width: 94%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.breadcrumbs a { color: var(--text-muted); text-decoration: none; }

.hero-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 2.65rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-icon-inline {
  width: 52px;
  height: 52px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
}

.trust-badge.purple {
  background: #F3E8FF;
  color: #6B21A8;
  border-color: #E9D5FF;
}

/* Card Wrapper - Compact Height */
.card-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 2.25rem 2.25rem;
  width: 100%;
}

/* Dropzone Canvas - Sleek Compact Height */
.dropzone-canvas {
  border: 2px dashed #C7D2FE;
  border-radius: var(--radius-inner);
  padding: 2.25rem 2rem;
  text-align: center;
  background: #FAF5FF;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.dropzone-canvas:hover, .dropzone-canvas.dragover {
  border-color: #6366F1;
  background: #EEF2FF;
}

.drop-cloud-icon {
  width: 50px;
  height: 50px;
  background: #EEF2FF;
  color: #6366F1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.drop-title-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
}

.drop-sub-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.drop-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.drop-pill-tag {
  background: white;
  border: 1px solid #E0E7FF;
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
}

.drop-pill-tag.sample {
  background: #EEF2FF;
  color: #6366F1;
  border-color: #C7D2FE;
  cursor: pointer;
}

/* CTA Wrapper */
.cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn-primary-cta {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 1.15rem 3.5rem;
  border-radius: var(--radius-pill);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px -5px rgba(99, 102, 241, 0.45);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px -5px rgba(99, 102, 241, 0.55);
}

/* Result Card */
.result-card {
  margin-top: 2.25rem;
  background: #FAF5FF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-inner);
  padding: 2rem;
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.result-title { font-size: 1.15rem; font-weight: 800; }

.result-preview-box {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.result-preview-box svg { max-width: 100%; max-height: 300px; }

.btn-action-sm {
  background: white;
  border: 1px solid var(--card-border);
  color: var(--text-dark);
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-action-sm.success {
  background: #10B981;
  color: white;
  border: none;
  text-decoration: none;
}

/* Section Labels & Headers */
.section-tag {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366F1;
  margin-bottom: 0.5rem;
}

.section-h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* 3 Step Cards - Wide Grid */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 868px) { .steps-row { grid-template-columns: 1fr; } }

.step-card-box {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-inner);
  padding: 2.25rem 1.85rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--card-shadow);
}

.step-card-icon {
  width: 52px;
  height: 52px;
  background: #EEF2FF;
  color: #6366F1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.step-card-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #CBD5E1;
}

.step-card-title { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); }
.step-card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* 2x2 Feature Grid - Wide Grid */
.features-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.25rem;
}

@media (max-width: 768px) { .features-2x2 { grid-template-columns: 1fr; } }

.feature-box {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-inner);
  padding: 1.85rem;
  display: flex;
  gap: 1.35rem;
  box-shadow: var(--card-shadow);
}

.feature-icon-sq {
  width: 50px;
  height: 50px;
  background: var(--primary-purple);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-info h4 { font-size: 1.08rem; font-weight: 800; margin-bottom: 0.35rem; }
.feature-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* FAQ Accordion List - Wide */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 960px;
  margin: 2.25rem auto 0;
}

.faq-card-item {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.45rem 1.75rem;
  box-shadow: var(--card-shadow);
}

.faq-card-title {
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-card-ans {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Carousel Section - Wide Grid */
.carousel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.carousel-title { font-size: 1.4rem; font-weight: 800; }
.carousel-link { color: #6366F1; font-size: 0.92rem; font-weight: 700; text-decoration: none; }

.carousel-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

@media (max-width: 868px) { .carousel-cards-grid { grid-template-columns: repeat(2, 1fr); } }

.mini-tool-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-inner);
  padding: 1.65rem;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  box-shadow: var(--card-shadow);
}

.mini-tool-tag {
  align-self: flex-start;
  background: #F3E8FF;
  color: #6B21A8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.mini-tool-title { font-size: 1rem; font-weight: 800; }
.mini-tool-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Global Footer - Wide Grid (1240px) */
.global-footer-clean {
  background: white;
  border-top: 1px solid var(--card-border);
  padding: 4.5rem 2rem 2.5rem;
  margin-top: 5rem;
}

.footer-inner-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3.5rem;
}

@media (max-width: 868px) { .footer-inner-grid { grid-template-columns: repeat(2, 1fr); } }

.footer-brand-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.6rem; }
.footer-brand-desc { font-size: 0.88rem; color: var(--text-muted); max-width: 320px; line-height: 1.6; }

.footer-col-title { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; margin-bottom: 1rem; letter-spacing: 0.05em; }
.footer-col-links a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.6rem; }

.footer-copyright-row {
  max-width: 1240px;
  margin: 3.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.drop-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.drop-preview-img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
  border: 3px solid white;
  background: white;
}

.drop-preview-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.drop-preview-size {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.drop-preview-change {
  font-size: 0.78rem;
  color: #6366F1;
  font-weight: 700;
  background: #EEF2FF;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid #C7D2FE;
}

.hidden { display: none !important; }


/* Custom In-Page Popup Modal (Replaces native browser alert) */
#custom-popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
}
#custom-popup-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}
.custom-modal-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.custom-modal-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}
.custom-modal-msg {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.5;
  word-break: break-word;
}
.custom-modal-actions {
  width: 100%;
  margin-top: 8px;
}
.custom-modal-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}
.custom-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}