/* ==========================================================================
   ZEFOY APK - Modern Professional Design System
   Dual-Theme Engine (Light & Dark) | No Sidebar | Ultra Fast & Responsive
   ========================================================================== */

/* Light Theme Variables (Default) */
:root {
  --theme-transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                      border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                      color 0.2s ease, 
                      box-shadow 0.3s ease;
  
  --primary: #1877F2;
  --primary-hover: #0d65d9;
  --primary-glow: rgba(24, 119, 242, 0.2);
  --primary-light: #e7f3ff;
  
  --secondary: #00C49F;
  --accent: #6366f1;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #3b82f6;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --max-width: 1140px;
  --article-width: 1140px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --primary-light: rgba(59, 130, 246, 0.15);

  --secondary: #10b981;
  --accent: #818cf8;

  --bg-body: #0b0f19;
  --bg-card: #111827;
  --bg-card-subtle: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.85);

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border: #1e293b;
  --border-subtle: #172033;
  --border-focus: #60a5fa;

  --success: #34d399;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #fbbf24;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.15);

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.5);
}

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

img, iframe, video, pre, table {
  max-width: 100%;
}

html, body {
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  transition: var(--theme-transition);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-body);
  color: var(--text-body);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 2.85rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-top: 2.75rem; border-bottom: 2px solid var(--border); padding-bottom: 0.65rem; }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.55rem); margin-top: 1.85rem; }
h4 { font-size: 1.15rem; margin-top: 1.35rem; }

p {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  color: var(--text-body);
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.6rem;
}

li {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.2em 0.45em;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card-subtle);
  color: var(--primary);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body p, .article-body li, .data-table td {
  overflow-wrap: anywhere;
}

/* ==========================================================================
   HEADER & MODERN NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px var(--primary-glow));
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-title span {
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-body);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  text-decoration: none;
}

/* Theme Toggle Button */
.theme-toggle-li {
  display: flex;
  align-items: center;
}

@media (max-width: 1023px) {
  .theme-toggle-li {
    justify-content: center;
    padding: 0.35rem 0;
  }
}

.theme-toggle-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-nav-download {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px var(--primary-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-download:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px var(--primary-glow);
}

.nav-toggle {
  display: none;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Laptop & Intermediate Screens (1024px to 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
  .nav-menu {
    gap: 0.45rem;
  }
  .nav-link {
    font-size: 0.86rem;
    padding: 0.35rem 0.5rem;
  }
  .btn-nav-download {
    font-size: 0.84rem;
    padding: 0.45rem 0.95rem;
  }
  .brand-title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   HERO SECTION (Centered & High Authority)
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at 50% 0%, var(--primary-light) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 3rem;
  transition: var(--theme-transition);
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-official {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-glow);
}

.badge-safe {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-updated {
  background-color: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-title {
  margin-bottom: 1.15rem;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--primary-glow);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--text-muted);
  text-decoration: none;
}

.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Hero App Showcase Box */
.hero-app-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  position: relative;
  transition: var(--theme-transition);
}

.hero-app-icon-wrapper {
  width: 105px;
  height: 105px;
  margin: 0 auto 1.35rem;
  background: var(--primary-light);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px var(--primary-glow);
  padding: 18px;
}

.hero-app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-app-title {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.hero-app-version {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.hero-app-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 1.35rem;
}

.hero-app-rating span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.hero-spec-table {
  width: 100%;
  font-size: 0.9rem;
  text-align: left;
  border-collapse: collapse;
  margin-top: 1rem;
}

.hero-spec-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-spec-table tr:last-child td {
  border-bottom: none;
}

.hero-spec-table td:first-child {
  color: var(--text-muted);
}

.hero-spec-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   LIVE SERVER STATUS BAR (Modern Clean Grid)
   ========================================================================== */
.status-section {
  padding: 2.25rem 1.5rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: var(--theme-transition);
}

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

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  border: none;
  padding: 0;
  margin-bottom: 0.4rem;
}

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

.status-card {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.status-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.status-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.status-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-active {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-updating {
  background-color: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   MAIN CONTENT LAYOUT (Centered Professional Layout - NO SIDEBAR)
   ========================================================================== */
.main-content {
  padding: 3.5rem 1.5rem;
  flex: 1;
}

.content-container-center {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.article-body {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

/* Mandatory First Paragraph Special Style */
.article-body .first-para {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text-main);
  background-color: var(--primary-light);
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-sm);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.article-body .first-para a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
}

/* Quick Glance Metric Bar (Replacing clunky sidebar) */
.quick-glance-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.75rem;
}

.quick-glance-item {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 1rem;
}

.quick-glance-item:last-child {
  border-right: none;
}

.quick-glance-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.quick-glance-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* Modern Pill Navigation Table of Contents */
.toc-box {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}

.toc-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 0.6rem 2rem;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc-grid li {
  margin-bottom: 0;
}

.toc-grid a {
  color: var(--text-body);
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.toc-grid a:hover {
  color: var(--primary);
  background-color: var(--primary-light);
  text-decoration: none;
  transform: translateX(4px);
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.25rem 0;
}

.feature-box {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all 0.2s ease;
}

.feature-box:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.15rem;
}

.feature-box h4 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* Clean Modern Comparison Data Table */
.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  margin: 2.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: var(--bg-card);
}

.data-table th, .data-table td {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.data-table tr:hover td {
  background-color: var(--bg-body);
}

/* Callout Alert Boxes */
.callout {
  padding: 1.35rem 1.75rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border-left: 5px solid;
  font-size: 1.02rem;
}

.callout-info {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--text-main);
}

.callout-warning {
  background-color: var(--warning-bg);
  border-color: var(--warning);
  color: var(--text-main);
}

.callout-success {
  background-color: var(--success-bg);
  border-color: var(--success);
  color: var(--text-main);
}

/* Accessible Interactive FAQ Accordion */
.faq-group {
  margin: 2.25rem 0;
}

.faq-item {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.35rem 1.65rem;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.65rem 1.5rem;
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  margin: 0 0.5rem;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-form {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.75rem;
}

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

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.form-input, .form-textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ==========================================================================
   FOOTER (Modern Sleek Grid)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-card);
  color: var(--text-muted);
  padding: 4.5rem 1.5rem 2.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  transition: var(--theme-transition);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1.15rem;
  margin-bottom: 1.35rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-disclaimer-box {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.9rem;
}

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

.footer-bottom a:hover {
  color: var(--primary);
}

.hero-app-btn-wrap {
  margin-top: 1.25rem;
}

/* ==========================================================================
   OFFICIAL ZEFOY WEB TOOL INTERFACE STYLES (Captcha, Dashboard, URL & Timer)
   ========================================================================== */
.tool-section {
  padding: 3rem 1.5rem 4rem;
  min-height: calc(100vh - 350px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tool-wrapper {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.tool-brand-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.tool-brand-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.tool-brand-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-xl);
  transition: var(--theme-transition);
  position: relative;
}

/* Tool Step 1: Captcha Verification */
.captcha-box {
  text-align: center;
}

.captcha-header-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.captcha-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.captcha-canvas-wrap {
  background: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 2px dashed #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.captcha-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #1e293b;
  user-select: none;
  font-style: italic;
  text-decoration: line-through;
}

.btn-captcha-refresh {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-captcha-refresh:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(45deg);
}

.tool-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tool-input {
  flex: 1;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  color: var(--text-main);
  transition: all 0.2s ease;
  text-align: center;
  letter-spacing: 0.05em;
}

.tool-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-tool-submit {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-tool-submit:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

/* Tool Step 2: Service Selection Grid */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.service-item:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}

.service-title {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.service-title svg {
  color: var(--primary);
}

.btn-service-action {
  background: var(--primary);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px var(--primary-glow);
}

.btn-service-action:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.service-disabled-label {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tool Step 3: URL Input & Submission */
.tool-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.tool-back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-back-btn:hover {
  text-decoration: underline;
}

.timer-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  animation: pulseTimer 2s infinite ease-in-out;
}

@keyframes pulseTimer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

.timer-clock {
  font-size: 2rem;
  font-weight: 800;
  color: var(--warning);
  font-family: monospace;
  margin: 0.5rem 0;
}

.tool-result-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--success);
  font-weight: 600;
}

/* ==========================================================================
   DESKTOP COMPACT HERO (Fits 100% on PC screen above the fold without scrolling)
   ========================================================================== */
@media (min-width: 993px) {
  .hero-app-btn-wrap {
    margin-top: 0.65rem;
  }

  .hero-section {
    padding: 1.5rem 1.5rem 1.75rem;
  }

  .hero-container {
    gap: 2.25rem;
    align-items: center;
  }

  .badge-wrapper {
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }

  .badge {
    font-size: 0.78rem;
    padding: 0.22rem 0.65rem;
  }

  .hero-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    margin-bottom: 0.6rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .hero-cta-group {
    gap: 0.85rem;
    margin-bottom: 1.15rem;
  }

  .hero-cta-group .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.96rem;
  }

  .hero-meta-list {
    font-size: 0.85rem;
    gap: 1.15rem;
  }

  /* Compact Hero App Box on PC */
  .hero-app-box {
    max-width: 330px;
    padding: 1.35rem 1.4rem 1.15rem;
    border-radius: 16px;
  }

  .hero-app-icon-wrapper {
    width: 68px;
    height: 68px;
    padding: 10px;
    border-radius: 18px;
    margin: 0 auto 0.65rem;
  }

  .hero-app-title {
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
  }

  .hero-app-version {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .hero-app-rating {
    font-size: 0.86rem;
    margin-bottom: 0.65rem;
  }

  .hero-spec-table {
    margin-top: 0.4rem;
    font-size: 0.82rem;
  }

  .hero-spec-table td {
    padding: 0.32rem 0;
  }

  .hero-app-box .btn {
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile Phones)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .badge-wrapper, .hero-cta-group, .hero-meta-list {
    justify-content: center;
  }
  .hero-app-box {
    margin: 0 auto;
    max-width: 420px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .toc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 9999;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }
  .btn-nav-download {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    margin-top: 0.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .article-body {
    padding: 1.75rem 1.25rem;
  }
  .quick-glance-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem;
    gap: 1.5rem;
  }
  .quick-glance-item {
    min-width: 0;
    padding: 0 0.5rem;
    border-right: none;
  }
  .quick-glance-value, .quick-glance-label {
    overflow-wrap: anywhere;
  }
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.6rem; }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Promotional Showcase Banner
   ========================================================================== */
.banner-section {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.banner-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 25px rgba(24, 119, 242, 0.2);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.banner-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.5), 0 0 35px rgba(24, 119, 242, 0.35);
  border-color: var(--primary);
}

.banner-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
}

.responsive-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .banner-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  .banner-container {
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   Dedicated Native Tool App Mode (When Launched via APK)
   ========================================================================== */
.app-standalone-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-brand-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-brand-inline-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
}

.app-brand-inline-text span {
  color: var(--primary);
}

.app-badge-inline {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

@media all and (display-mode: standalone), (display-mode: fullscreen) {
  .site-header, .breadcrumbs, .first-para, .site-footer {
    display: none !important;
  }
  .app-standalone-bar {
    display: flex !important;
  }
  .tool-section {
    padding-top: 1.25rem !important;
    padding-bottom: 2rem !important;
  }
}

html.app-mode .site-header,
html.app-mode .breadcrumbs,
html.app-mode .first-para,
html.app-mode .site-footer {
  display: none !important;
}

html.app-mode .app-standalone-bar {
  display: flex !important;
}

html.app-mode .tool-section {
  padding-top: 1.25rem !important;
  padding-bottom: 2rem !important;
}
