/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: #1a56db; color: #fff; border-color: #1a56db; }
.btn-primary:hover { background: #1648b8; border-color: #1648b8; }
.btn-outline { background: transparent; color: #1a56db; border-color: #1a56db; }
.btn-outline:hover { background: rgba(26,86,219,0.06); }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 700; color: #111827; }
.logo span { color: #1a56db; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: #6b7280; transition: color 0.2s; }
.nav-links a:hover { color: #111827; }

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1a56db;
  background: rgba(26,86,219,0.08);
  border: 1px solid rgba(26,86,219,0.15);
  margin-bottom: 24px;
}
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: #111827; }
.hero-sub { font-size: 18px; color: #6b7280; max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 20px; color: #1a56db; }
.stat span { font-size: 13px; color: #9ca3af; }

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: #f8fafc; }
.section-title { font-size: 34px; font-weight: 700; text-align: center; margin-bottom: 12px; color: #111827; }
.section-sub { font-size: 17px; color: #6b7280; text-align: center; margin-bottom: 48px; }

/* App Screenshots */
.screenshots-showcase { max-width: 960px; margin: 0 auto; }
.screenshot-main {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.screenshot-main img {
  width: 100%;
  display: block;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.screenshot-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.screenshot-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.screenshot-item img {
  width: 100%;
  display: block;
}
.screenshot-item span {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 16px; color: #1a56db; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; color: #111827; }
.feature-card p { font-size: 14px; color: #6b7280; line-height: 1.7; }

/* Modes */
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mode-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 36px;
}
.mode-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.mode-badge.master { background: rgba(26,86,219,0.1); color: #1a56db; }
.mode-badge.slave { background: rgba(5,150,105,0.1); color: #059669; }
.mode-card h3 { font-size: 22px; margin-bottom: 16px; color: #111827; }
.mode-card li {
  padding: 8px 0;
  font-size: 15px;
  color: #4b5563;
  padding-left: 24px;
  position: relative;
}
.mode-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #1a56db;
  font-weight: 700;
}

/* Formats */
.formats-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.format-chip {
  padding: 10px 24px;
  border-radius: 6px;
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  font-size: 14px;
  color: #1e40af;
  font-family: 'Consolas', 'Courier New', monospace;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; padding-top: 14px; }
.pricing-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured { border-color: #1a56db; }
.pricing-popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a56db;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 12px;
  z-index: 1;
}
.pricing-header {
  padding: 36px 28px 28px;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 10px 10px 0 0;
}
.pricing-name { font-size: 14px; font-weight: 600; color: #1a56db; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pricing-price { font-size: 44px; font-weight: 800; color: #111827; }
.pricing-term { font-size: 13px; color: #9ca3af; margin-top: 4px; }
.pricing-features { padding: 20px 28px; flex: 1; }
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  padding-left: 24px;
  position: relative;
}
.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-card .btn { margin: 0 28px 24px; width: calc(100% - 56px); }
.pricing-footer-note { text-align: center; font-size: 14px; color: #9ca3af; margin-top: 32px; }

/* Quantity control */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: #f3f4f6;
  border: none;
  color: #374151;
  font-size: 18px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: #e5e7eb; }
.qty-control input {
  width: 56px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  border: none;
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  color: #111827;
  padding: 8px 0;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Download */
.download-note { margin-top: 16px; font-size: 13px; color: #9ca3af; }

/* Footer */
.footer { padding: 60px 0 32px; background: #111827; color: #d1d5db; border-top: none; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: #9ca3af; margin-top: 12px; max-width: 300px; }
.footer-company { font-size: 12px !important; color: #6b7280 !important; margin-top: 16px !important; line-height: 1.6 !important; }
.footer .logo { color: #fff; }
.footer-links h4 { font-size: 13px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: #9ca3af; padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-size: 13px; color: #6b7280; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-header h2 { font-size: 18px; color: #111827; }
.modal-close {
  background: none; border: none; color: #9ca3af; font-size: 24px; cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.modal-close:hover { background: #f3f4f6; color: #111827; }
.modal-body { padding: 24px 28px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #111827;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: #1a56db; box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.form-group input::placeholder { color: #9ca3af; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #374151;
}
.order-summary strong { color: #1a56db; font-size: 18px; }

/* Payment methods */
.payment-methods { display: flex; gap: 12px; margin-bottom: 20px; }
.payment-method {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.2s;
}
.payment-method.active { border-color: #1a56db; color: #111827; background: #f0f5ff; }
.payment-method input { display: none; }

.test-badge {
  text-align: center;
  padding: 8px;
  margin: 16px 0;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Success / Error */
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(5,150,105,0.1);
  color: #059669;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.error-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.license-display {
  margin: 24px 0;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.license-display label { display: block; font-size: 12px; color: #9ca3af; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.license-key {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #1a56db;
  letter-spacing: 2px;
  margin-bottom: 12px;
  word-break: break-all;
}
.success-note { font-size: 13px; color: #6b7280; margin-bottom: 24px; line-height: 1.8; }

/* Spinner */
.spinner {
  width: 48px; height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #1a56db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Info / Legal Pages */
.page-content { padding: 100px 0 60px; }
.page-content h1 { font-size: 36px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.page-content .page-updated { font-size: 13px; color: #9ca3af; margin-bottom: 36px; }
.page-content h2 { font-size: 20px; font-weight: 600; color: #111827; margin: 32px 0 12px; }
.page-content h3 { font-size: 17px; font-weight: 600; color: #374151; margin: 24px 0 8px; }
.page-content p, .page-content li { font-size: 15px; color: #4b5563; line-height: 1.8; margin-bottom: 12px; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: #1a56db; }
.page-content a:hover { text-decoration: underline; }
.page-content .info-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 20px;
}
.page-content .info-card h3 { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }

/* Pricing compare callout */
.pricing-compare {
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
}
.pricing-compare p { margin: 0; font-size: 14px; color: #6b7280; }
.pricing-compare strong { color: #1a56db; }

/* Blog Listing */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.blog-card-date { font-size: 13px; color: #9ca3af; margin-bottom: 10px; }
.blog-card h3 { font-size: 18px; color: #111827; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a { color: #111827; }
.blog-card h3 a:hover { color: #1a56db; }
.blog-card p { font-size: 14px; color: #6b7280; line-height: 1.7; margin-bottom: 16px; flex: 1; }
.blog-card .read-more { font-size: 14px; font-weight: 600; color: #1a56db; }
.blog-card .read-more:hover { text-decoration: underline; }

/* Blog Article */
.blog-article { max-width: 780px; }
.blog-article .blog-meta { font-size: 13px; color: #9ca3af; margin-bottom: 32px; }
.blog-article h1 { margin-bottom: 8px; }
.blog-article h2 { font-size: 22px; font-weight: 700; color: #111827; margin: 36px 0 14px; }
.blog-article h3 { font-size: 18px; font-weight: 600; color: #374151; margin: 28px 0 10px; }
.blog-article p { font-size: 15px; color: #4b5563; line-height: 1.8; margin-bottom: 16px; }
.blog-article ul, .blog-article ol { padding-left: 24px; margin-bottom: 16px; }
.blog-article li { font-size: 15px; color: #4b5563; line-height: 1.8; margin-bottom: 8px; list-style: disc; }
.blog-article ol li { list-style: decimal; }
.blog-article a { color: #1a56db; }
.blog-article a:hover { text-decoration: underline; }
.blog-article code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  color: #1e40af;
}
.blog-article pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.blog-article pre code { background: none; color: inherit; padding: 0; }
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}
.blog-article th, .blog-article td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  text-align: left;
  color: #4b5563;
}
.blog-article th { background: #f8fafc; font-weight: 600; color: #111827; }
.blog-article .info-box {
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
.blog-article .info-box p { margin-bottom: 0; }

/* Blog CTA */
.blog-cta {
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.blog-cta h3 { font-size: 22px; color: #111827; margin-bottom: 10px; }
.blog-cta p { font-size: 15px; color: #6b7280; margin-bottom: 20px; }

/* Blog nav breadcrumb */
.blog-breadcrumb { font-size: 14px; color: #9ca3af; margin-bottom: 16px; }
.blog-breadcrumb a { color: #1a56db; }
.blog-breadcrumb a:hover { text-decoration: underline; }

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 40px;
  background: #f8fafc;
}
.auth-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}
.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}
.auth-error {
  color: #dc2626;
  font-size: 13px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 16px;
  display: none;
}
.auth-success {
  color: #059669;
  font-size: 13px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 16px;
  display: none;
}
.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
}
.auth-link a {
  color: #1a56db;
  font-weight: 600;
}
.auth-link a:hover {
  text-decoration: underline;
}
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #9ca3af;
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.auth-divider span {
  padding: 0 12px;
}
.google-btn-wrapper {
  display: flex;
  justify-content: center;
}

/* Nav Auth */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-auth .nav-user {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}
.nav-auth .btn-nav {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.nav-auth .btn-nav-login {
  background: transparent;
  color: #1a56db;
  border: 1px solid #1a56db;
}
.nav-auth .btn-nav-login:hover {
  background: rgba(26,86,219,0.06);
}
.nav-auth .btn-nav-logout {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}
.nav-auth .btn-nav-logout:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
}
