/* ==========================================================================
   CIM SCAN QR - DESIGN SYSTEM & STYLESHEET
   Brand Colors: #131418 (Midnight), #0066FF (Electric Blue), #00F5D4 (Neon Cyan)
   ========================================================================== */

:root {
  --bg-dark: #131418;
  --bg-card: #1e2026;
  --bg-card-hover: #262932;
  --bg-glass: rgba(30, 32, 38, 0.82);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 245, 212, 0.35);
  
  --primary-blue: #0066ff;
  --primary-glow: rgba(0, 102, 255, 0.35);
  --accent-cyan: #00f5d4;
  --accent-glow: rgba(0, 245, 212, 0.3);
  --warning-amber: #f59e0b;
  --danger-red: #ef4444;
  --success-green: #10b981;
  
  --text-white: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gradient-brand: linear-gradient(135deg, #00f5d4 0%, #0066ff 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-white);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.12) 0%, rgba(19, 20, 24, 1) 70%);
  min-height: 100vh;
}

/* Atmosphere background glow */
.bg-glow-top {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 245, 212, 0.15), rgba(0, 102, 255, 0.08), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(19, 20, 24, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.btn-nav-cta {
  background: var(--gradient-brand);
  color: #131418;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.45);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.25);
  border-radius: 50px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary-store {
  background: #000;
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.btn-primary-store:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 245, 212, 0.25);
}

.btn-secondary-link {
  background: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary-link:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Feature Graphic Showcase */
.hero-showcase {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 102, 255, 0.2);
  position: relative;
  background: var(--bg-card);
}

.hero-showcase img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-showcase:hover img {
  transform: scale(1.015);
}

/* Trust Pill Badges */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--accent-cyan);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   THE 7 PILLARS GRID
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 212, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 212, 0.1);
  background: var(--bg-card-hover);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 102, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.pillar-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pillar-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Highlight Featured Pillar */
.pillar-card.featured {
  grid-column: span 1;
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.12) 0%, rgba(30, 32, 38, 0.95) 100%);
  border-color: rgba(0, 245, 212, 0.35);
}

/* ==========================================================================
   INTERACTIVE BANNER & TECH SPECS
   ========================================================================== */
.security-banner {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 245, 212, 0.05) 100%);
  border: 1px solid rgba(0, 245, 212, 0.25);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.security-text {
  max-width: 600px;
}

.security-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.security-text p {
  color: var(--text-muted);
  font-size: 1rem;
}

.shield-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(19, 20, 24, 0.9);
  padding: 16px 24px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.shield-badge svg {
  color: var(--accent-cyan);
}

/* ==========================================================================
   HELP CENTER & FAQ ACCORDION
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #0f1013;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  color: var(--text-white);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   POLICIES & LEGAL PAGES STYLING
   ========================================================================== */
.legal-container {
  max-width: 840px;
  margin: 50px auto 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 48px;
}

.legal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.legal-section p, .legal-section ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .legal-container {
    padding: 24px;
  }
}
