/* SureWarranty Landing Page — Custom CSS */
:root {
  --blue-950: #0a1628;
  --blue-900: #0f2044;
  --blue-800: #1a3a6e;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-50:  #eff6ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #0f172a;
  margin: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
::selection { background: #bfdbfe; color: #1e40af; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gradient-text-white {
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 60%, #93c5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Hero BG ── */
.hero-bg {
  background: #fafbff;
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.10) 0%, rgba(99,102,241,0.06) 40%, transparent 70%);
  pointer-events: none;
}
.hero-bg::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2), transparent);
}

.grid-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 64px 64px; pointer-events: none;
}

/* ── Navigation ── */
.nav-glass {
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(226,232,240,0.8);
}
.nav-glass.scrolled { box-shadow: 0 1px 40px rgba(0,0,0,0.06); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  background: #2563eb; color: #fff; border-radius: 10px; font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em; transition: all 0.2s ease; border: none; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(37,99,235,0.2), 0 4px 12px rgba(37,99,235,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 1px 2px rgba(37,99,235,0.3), 0 8px 20px rgba(37,99,235,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  background: transparent; color: #0f172a; border-radius: 10px; font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em; transition: all 0.2s ease; border: 1px solid #e2e8f0; cursor: pointer; text-decoration: none;
}
.btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  color: #475569; border-radius: 8px; font-weight: 500; font-size: 14px;
  transition: all 0.15s ease; text-decoration: none; border: none; background: transparent; cursor: pointer;
}
.btn-ghost:hover { background: #f1f5f9; color: #0f172a; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
}
.badge-blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-new {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff); color: #1e40af; border: 1px solid #c7d2fe;
}

/* ── Terminal card ── */
.terminal-card {
  background: #0f1629; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 20px 60px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
}
.terminal-header {
  background: #1a2236; padding: 12px 16px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }

/* ── Stat card ── */
.stat-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 32px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1); opacity: 0; transition: opacity 0.3s ease;
}
.stat-card:hover { border-color: #bfdbfe; box-shadow: 0 8px 32px rgba(59,130,246,0.08); transform: translateY(-2px); }
.stat-card:hover::before { opacity: 1; }

/* ── Tech logos ── */
.tech-logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 36px;
}
.tech-logo-item {
  display: flex; align-items: center; gap: 8px;
  opacity: 0.65; filter: grayscale(60%);
  transition: opacity 0.2s, filter 0.2s;
  white-space: nowrap;
}
.tech-logo-item:hover { opacity: 1; filter: grayscale(0%); }

/* ── Section label ── */
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #2563eb; }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent); }

/* ── Hero glow ── */
.hero-glow { position: relative; }
.hero-glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: 17px;
  background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(99,102,241,0.2), rgba(6,182,212,0.2));
  z-index: -1; filter: blur(8px); opacity: 0.6;
}

/* ── Floating badge ── */
.floating-badge {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 10px 14px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #0f172a;
}

/* ── Animations ── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-glow { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes scan { 0% { top: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delayed { animation: float 4s ease-in-out 1s infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* ── Mobile menu ── */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0; padding: 16px; z-index: 99;
  flex-direction: column; gap: 4px; box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 16px; border-radius: 10px; color: #374151; font-weight: 500; text-decoration: none; font-size: 15px; transition: background 0.15s; }
.mobile-menu a:hover { background: #f1f5f9; }

/* ── Lifecycle Timeline ── */
.lifecycle-section { background: linear-gradient(180deg, #fafbff 0%, #f0f4ff 100%); }

.timeline-container { position: relative; }
.timeline-container::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #3b82f6 0%, #6366f1 50%, #e2e8f0 100%);
}
@media (max-width: 1023px) {
  .timeline-container::before { left: 28px; transform: none; }
}

.timeline-step { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 40px; align-items: start; margin-bottom: 60px; }
.timeline-step:last-child { margin-bottom: 0; }

.timeline-step.right .step-content { grid-column: 3; }
.timeline-step.right .step-empty { grid-column: 1; }
.timeline-step.left .step-content { grid-column: 1; text-align: right; }
.timeline-step.left .step-empty { grid-column: 3; }
.timeline-node { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 0; }

@media (max-width: 1023px) {
  .timeline-step { grid-template-columns: auto 1fr; gap: 0 20px; }
  .timeline-step.left .step-content, .timeline-step.right .step-content { grid-column: 2; text-align: left; }
  .timeline-step.left .step-empty, .timeline-step.right .step-empty { display: none; }
  .timeline-node { grid-column: 1; }
  .timeline-container::before { left: 20px; }
}

.timeline-icon {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #3b82f6; box-shadow: 0 0 0 6px rgba(59,130,246,0.1);
  position: relative; z-index: 2; flex-shrink: 0;
}

.step-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.3s ease;
  position: relative;
}
.step-card:hover { border-color: #bfdbfe; box-shadow: 0 8px 32px rgba(59,130,246,0.08); transform: translateY(-2px); }

.step-number {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #2563eb; margin-bottom: 6px; display: block;
}

/* ── Comparison ── */
.comparison-table { border-collapse: collapse; width: 100%; }
.comparison-col-problem { background: #fff5f5; }
.comparison-col-solution { background: #f0fdf4; }

/* ── Module cards ── */
.module-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 28px;
  transition: all 0.3s ease; position: relative; overflow: hidden; cursor: default;
}
.module-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(59,130,246,0.04), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.module-card:hover { border-color: #93c5fd; box-shadow: 0 12px 40px rgba(59,130,246,0.1); transform: translateY(-3px); }
.module-card:hover::after { opacity: 1; }

.module-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ── Feature tabs ── */
.tab-btn {
  padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.2s; border: 1px solid #e2e8f0; background: transparent; color: #64748b;
  white-space: nowrap;
}
.tab-btn:hover { background: #f8fafc; color: #0f172a; }
.tab-btn.active-tab { background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.25); }

/* ── Screenshot card ── */
.screenshot-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06); transition: all 0.3s ease;
}
.screenshot-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.12); transform: translateY(-4px); }

.screenshot-placeholder {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* ── Industry card ── */
.industry-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 24px;
  text-align: center; transition: all 0.25s ease; cursor: default;
}
.industry-card:hover { border-color: #93c5fd; box-shadow: 0 8px 32px rgba(59,130,246,0.1); transform: translateY(-3px); }
.industry-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }

/* ── FAQ ── */
.faq-item { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: #bfdbfe; }
.faq-trigger {
  width: 100%; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: none; cursor: pointer; text-align: left;
}
.faq-trigger-text { font-size: 16px; font-weight: 600; color: #0f172a; }
[data-faq-panel] { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
[data-faq-panel].open { }
[data-faq-icon] { transition: transform 0.3s ease; flex-shrink: 0; }

/* ── CTA section ── */
.cta-dark {
  background: linear-gradient(135deg, #0a1628 0%, #0f2044 50%, #1a1040 100%);
  position: relative; overflow: hidden;
}
.cta-dark::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Pricing card ── */
.price-card {
  background: #fff; border: 2px solid #e2e8f0; border-radius: 24px; padding: 36px;
  transition: all 0.3s ease; position: relative;
}
.price-card.featured {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6, 0 20px 60px rgba(37,99,235,0.15);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #6366f1); color: #fff;
  padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}

/* ── Why choose ── */
.why-card {
  padding: 32px; border-radius: 20px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.why-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(59,130,246,0.4); }

/* ── Admin preview ── */
.admin-window {
  background: #1e2433; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(0,0,0,0.4);
}
.admin-titlebar {
  background: #161c2d; height: 40px; display: flex; align-items: center; padding: 0 16px; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-sidebar { background: #161c2d; width: 180px; min-height: 300px; padding: 12px; border-right: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.admin-nav-item {
  padding: 8px 12px; border-radius: 8px; font-size: 12px; color: #64748b; cursor: pointer;
  transition: all 0.15s; display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.admin-nav-item.active { background: rgba(59,130,246,0.15); color: #60a5fa; }
.admin-nav-item:hover:not(.active) { background: rgba(255,255,255,0.04); color: #94a3b8; }

/* ── QR batch visual ── */
.qr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qr-cell {
  aspect-ratio: 1; background: #1e2a3a; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-mini {
  width: 80%; height: 80%;
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  background-image:
    repeating-linear-gradient(0deg, #0f1629 0px, #0f1629 2px, transparent 2px, transparent 6px),
    repeating-linear-gradient(90deg, #0f1629 0px, #0f1629 2px, transparent 2px, transparent 6px);
}

/* ── Counterfeit visual ── */
.scan-result-genuine { border: 2px solid #22c55e; border-radius: 12px; }
.scan-result-fake { border: 2px solid #ef4444; border-radius: 12px; }

/* ── Doc card ── */
.doc-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px;
  transition: all 0.25s; display: flex; gap: 16px; align-items: flex-start;
}
.doc-card:hover { border-color: #93c5fd; box-shadow: 0 4px 20px rgba(59,130,246,0.08); }

/* ── Counter number ── */
.counter-number {
  font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

@media (max-width: 640px) {
  .hero-bg::before { width: 400px; height: 400px; }
  .counter-number { font-size: 2.5rem; }
}
