/* ======== Base ======== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0B1120;
  color: #E2E8F0;
  -webkit-font-smoothing: antialiased;
}

/* ======== Colors ======== */
:root {
  --bg: #0B1120;
  --bg-alt: #0F172A;
  --card: #1E293B;
  --card-hover: #243044;
  --border: #1E3A5F;
  --border-subtle: #172554;
  --text: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-subtle: rgba(59,130,246,0.1);
  --accent-glow: rgba(59,130,246,0.15);
}

/* ======== Pages ======== */
.page {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.page.active { display: block; }
.page.visible { opacity: 1; transform: translateY(0); }

/* ======== Navbar ======== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(11,17,32,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border-subtle); }

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 100%; }

/* ======== Mobile Menu ======== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #CBD5E1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-link:hover { background: var(--card); color: var(--text); }

/* ======== Buttons ======== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--card-hover); border-color: var(--accent); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--bg);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-cta:hover { background: #F1F5F9; transform: translateY(-1px); }

/* ======== Cards ======== */
.card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: var(--border);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.glass-card {
  background: rgba(30,41,59,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: var(--border);
}

/* ======== Hero ======== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  top: 10%; right: 10%;
  width: 400px; height: 400px;
  background: rgba(59,130,246,0.08);
  animation: floatGlow 8s ease-in-out infinite;
}
.hero-glow-2 {
  bottom: 15%; left: 5%;
  width: 300px; height: 300px;
  background: rgba(59,130,246,0.05);
  animation: floatGlow 8s ease-in-out infinite;
  animation-delay: -3s;
}
@keyframes floatGlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  color: #4ADE80;
  font-size: 12px;
}
.status-dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

/* ======== Sections ======== */
.section-alt { background: var(--bg-alt); }
.cta-section { background: linear-gradient(135deg, #172554 0%, #0F172A 50%, #1E1B4B 100%); }

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ======== Step Numbers ======== */
.step-num {
  width: 32px; height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

/* ======== Images ======== */
.img-soft {
  border-radius: 16px;
  filter: brightness(0.85) contrast(1.05);
}

/* ======== Instructions Tabs ======== */
.app-tab {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}
.app-tab:hover { border-color: var(--border); color: var(--text); }
.app-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.os-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  background: var(--card);
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.os-tab:hover { color: var(--text-secondary); border-color: var(--border-subtle); }
.os-tab.active {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: rgba(59,130,246,0.3);
}

/* ======== Instruction Steps ======== */
.inst-section { margin-bottom: 48px; }
.inst-section:last-child { margin-bottom: 0; }
.inst-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.inst-section-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.inst-step {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.inst-step:hover { border-color: var(--border); }

.inst-step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
}
.inst-step-num {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 1px;
}
.inst-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.inst-step-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.inst-step-text code {
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

.inst-step-image {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px 20px;
  background: rgba(15,23,42,0.5);
}
.inst-step-image img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  display: block;
}
.inst-step-image-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.inst-hint {
  background: var(--accent-subtle);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.inst-hint-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.inst-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ======== FAQ ======== */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--border); }
.faq-item.open { border-color: var(--accent); }

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  user-select: none;
}
.faq-question {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding-right: 16px;
}
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}
.faq-answer-inner code {
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

.support-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

/* ======== Compare Table ======== */
.compare-table {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}
.compare-head {
  padding: 16px 20px;
  background: rgba(59,130,246,0.08);
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.compare-cell {
  padding: 14px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.compare-cell.border-t { border-top: 1px solid var(--border-subtle); }

/* ======== Timeline ======== */
.timeline-item {
  display: flex;
  gap: 20px;
  position: relative;
}
.timeline-dot {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}
.timeline-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.timeline-line {
  position: absolute;
  left: 19px;
  top: 44px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--border-subtle);
}
.timeline-content {
  padding-bottom: 40px;
}

/* ======== Footer ======== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text-secondary); }
.footer-border { border-top: 1px solid var(--border-subtle); }

/* ======== Logo Icon ======== */
.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======== Animations ======== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.show { opacity: 1; transform: translateY(0); }

/* ======== Toast ======== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 1000;
  transition: transform 0.4s ease;
  pointer-events: none;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ======== Scrollbar ======== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2D4A6F; }

/* ======== Responsive ======== */
@media (max-width: 768px) {
  .hero-glow-1 { width: 250px; height: 250px; }
  .hero-glow-2 { width: 180px; height: 180px; }
  .inst-step-header { padding: 16px 18px; }
  .inst-step-image { padding: 12px 18px 16px; }
  .faq-header { padding: 16px 18px; }
  .faq-answer-inner { padding: 0 18px 16px; padding-top: 12px; }
}