/* ====== imacbits.com Design System ====== */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --max-width: 1152px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --hero-bg: linear-gradient(135deg, #eef2ff 0%, #f3f6ff 50%, #eff6ff 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p + p { margin-top: 0.75rem; }

/* ====== Layout ====== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ====== Navigation ====== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo-icon { width: 24px; height: 24px; vertical-align: middle; margin-right: 0.4rem; flex-shrink: 0; }
.site-logo:hover { text-decoration: none; color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.15s;
}

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

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; z-index: 101; }
  .site-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
}

/* ====== Footer ====== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 { margin-bottom: 0.75rem; color: var(--text); font-size: 0.95rem; }
.footer-col a { display: block; color: var(--text-light); font-size: 0.875rem; margin-bottom: 0.4rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; color: var(--text-light); font-size: 0.875rem; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none !important;
}

.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-appstore {
  background: #000;
  color: #fff;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
}

.btn-appstore:hover { background: #1a1a1a; }

.btn-appstore .apple-icon { width: 20px; height: 20px; fill: #fff; }

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* ====== Hero Section ====== */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: var(--hero-bg);
}

.hero h1 { font-size: 2.75rem; margin-bottom: 1.75rem; letter-spacing: -0.02em; }
.hero-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto 2rem;
}
.hero-tool-name { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.hero-tool-desc { font-size: 0.9rem; color: var(--text-light); margin-top: 0.15rem; }
.hero-privacy { font-size: 1rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-tools { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero p { font-size: 1rem; }
  .hero-privacy { font-size: 0.9rem; }
}

/* ====== Content Sections ====== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); }

/* ====== Scene Guide ====== */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.scene-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.scene-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.scene-heading {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.scene-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  flex: 1;
}
.scene-match {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ====== Product Showcase ====== */
.product-showcase {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}
.product-showcase-main {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  min-width: 320px;
}
.product-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
}
.product-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.product-tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}
.product-features li::before {
  content: "· ";
  color: var(--primary);
  font-weight: bold;
}
.product-screenshot {
  flex: 1;
  max-width: 540px;
  min-width: 280px;
}
.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .product-showcase {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .product-screenshot {
    max-width: 100%;
    min-width: 0;
  }
}

/* ====== Product Cards (Homepage) ====== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s;
}

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

.product-card-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.product-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.25rem; }
.product-card .btn { width: 100%; }

/* ====== Feature Cards ====== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ====== Comparison Table ====== */
.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th:nth-child(1) { width: 42%; }
.comparison-table th:nth-child(2) { width: 24%; }
.comparison-table th:nth-child(3) { width: 34%; }

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.comparison-table th:first-child,
.comparison-table td:first-child { padding-left: 1.5rem; }

.comparison-table th:last-child,
.comparison-table td:last-child { padding-right: 1.5rem; }

.comparison-table tr:hover td { background: var(--bg-alt); }

.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; }
.partial { color: #f59e0b; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

@media (max-width: 768px) {
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.5rem; }
}

/* ====== CTA Section ====== */
/* ====== Stats Section ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label { font-size: 0.95rem; color: var(--text-light); margin-top: 0.35rem; }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2rem; }
}

/* ====== Feature Cards with Icons ====== */
.feature-card .feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }

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

/* ====== FAQ ====== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-light);
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ====== Steps ====== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-item {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-item p { color: var(--text-light); font-size: 0.95rem; }

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

/* ====== CTA Section ====== */
.cta-section {
  text-align: center;
  background: var(--primary-light);
  padding: 3rem 1.5rem;
  border-radius: 12px;
  margin: 3rem auto;
  max-width: var(--max-width);
}

.cta-section h2 { margin-bottom: 0.5rem; }
.cta-sub { color: var(--text-light); font-size: 1rem; margin-bottom: 1rem; }
.cta-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cta-links a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.cta-links a:hover {
  border-bottom-color: var(--primary);
  text-decoration: none;
}
.cta-links a + a::before {
  content: "·";
  color: var(--text-light);
  margin-right: 0.5rem;
}

/* ====== System Requirements ====== */
.specs-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.specs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.specs-list .spec-label { font-weight: 600; font-size: 0.85rem; color: var(--text-light); }
.specs-list .spec-value { font-weight: 500; }

/* ====== User Guide Content ====== */
.guide-content { padding: 3rem 0 2rem; }

.guide-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.guide-content h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }

.guide-content ul, .guide-content ol { padding-left: 1.5rem; margin: 0.75rem 0; }
.guide-content li { margin-bottom: 0.35rem; }

.guide-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.guide-content th, .guide-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.guide-content th { background: var(--bg-alt); font-weight: 600; }

.guide-content kbd {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
}

.guide-content code {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}

.guide-content .tip {
  background: #f0f7ff;
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.guide-content .note {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.guide-content .warn {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.guide-content .toc {
  background: var(--bg-alt);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.guide-content .toc ol { margin: 0.5rem 0 0; }
.guide-content .toc li { margin: 0.25rem 0; }

.guide-content .method-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}

.guide-content .method-card h4 { margin-bottom: 0.35rem; }

.guide-content .glossary dt { font-weight: 600; margin-top: 0.75rem; }
.guide-content .glossary dd { margin-left: 0; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-light); }

.guide-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ====== Contact Form ====== */
.contact-email {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.form-divider {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-divider span { flex-shrink: 0; }

.contact-form { max-width: 560px; margin: 0 auto; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ====== Download Card ====== */
.download-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.download-card h2 { margin-bottom: 0.5rem; }
.download-card .version { color: var(--text-light); margin-bottom: 1.5rem; }
.download-card .specs { font-size: 0.875rem; color: var(--text-light); margin-top: 1.5rem; }
.download-card .specs p { margin: 0.25rem 0; }

/* ====== Legal Pages ====== */
.legal-content { max-width: 700px; margin: 0 auto; padding: 3rem 0; }
.legal-content h1 { margin-bottom: 0.25rem; }
.legal-content .last-updated { color: var(--text-light); margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-content p, .legal-content li { color: var(--text-light); }
.legal-content ul { padding-left: 1.5rem; margin: 0.5rem 0; }

/* ====== 404 Page ====== */
.not-found-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.not-found-page h1 { font-size: 5rem; color: var(--primary); margin-bottom: 0.5rem; }
.not-found-page p { color: var(--text-light); margin-bottom: 2rem; }

/* ====== Breadcrumb ====== */
.breadcrumb { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); }

/* ====== Utility ====== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
