* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  color: #111827;
  background: #ffffff;
  background-image: radial-gradient(circle at 15% 0%, rgba(79, 70, 229, 0.07), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(13, 148, 136, 0.07), transparent 40%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
}

.nav {
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5, #0d9488);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: #374151;
}

.nav-links a.nav-current {
  color: #4338ca;
  font-weight: 600;
}

.nav-cta {
  background: linear-gradient(135deg, #4f46e5, #0d9488);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.nav-lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  color: #4338ca;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.nav-lang-toggle::before {
  content: "🌐";
  font-size: 12px;
}

.nav-lang-toggle:hover {
  background: #e0e7ff;
}

.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 90px 20px 60px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #0d9488);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #fff;
  color: #374151 !important;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  border-color: #a5b4fc;
  background: #f5f6ff;
}

.hero-note {
  font-size: 12.5px;
  color: #9ca3af;
  margin: 16px 0 0;
}

.install-steps {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.install-steps h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.install-steps ol {
  font-size: 14px;
  color: #374151;
  line-height: 2;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  list-style-position: inside;
}

.install-steps code {
  background: #eef2ff;
  color: #4338ca;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.features h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 36px;
}

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

.feature-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0fdfa;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ---- Guide page ---- */

.guide-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 20px 30px;
  text-align: center;
}

.guide-hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.guide-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 90px;
  display: grid;
  gap: 16px;
}

.guide-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.guide-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #0d9488);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.guide-step-help .guide-step-num {
  background: #f3f4f6;
  color: #6b7280;
}

.guide-step h2 {
  font-size: 19px;
  margin: 4px 0 12px;
}

.guide-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 22px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.guide-step p,
.guide-step li {
  font-size: 14.5px;
  color: #374151;
  line-height: 1.75;
}

.guide-step ol,
.guide-step ul {
  margin: 0 0 4px;
  padding-left: 22px;
}

.guide-step li {
  margin-bottom: 6px;
}

.guide-step li:last-child {
  margin-bottom: 0;
}

.guide-step em {
  color: #6b7280;
}

.guide-step p {
  margin: 0 0 10px;
}

.guide-step code {
  background: #eef2ff;
  color: #4338ca;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.guide-tip {
  background: #f9fafb;
  border-left: 3px solid #a5b4fc;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 12px 0 0 !important;
  font-size: 13.5px !important;
  color: #4b5563 !important;
}

/* Floating "Buy Me a Coffee" button. Note the explicit [hidden] rules on
   this and .coffee-modal — a display value set here would otherwise defeat
   the browser's default [hidden] { display: none }. */
.coffee-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #4f46e5, #0d9488);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.coffee-fab[hidden] {
  display: none;
}

.coffee-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.42);
}

.coffee-fab-icon {
  font-size: 18px;
}

.coffee-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.55);
}

.coffee-modal[hidden] {
  display: none;
}

.coffee-modal-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.25);
}

.coffee-modal-box h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.coffee-modal-box p {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 20px;
}

.coffee-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
}

.coffee-modal-close:hover {
  color: #374151;
}

.coffee-qr {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #0d9488;
  font-weight: 600;
  padding: 30px 20px;
}
