/* ==========================================================================
   Proof Camera - Landing Page Stylesheet
   Modern, Ultra-Fast, Responsive, Dark/Light Mode with Zero Layout Shift
   ========================================================================== */

:root {
  /* Color Palette - Dark by Default for High-Tech / Field Work Vibe */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(56, 189, 248, 0.3);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;

  --glow-amber: rgba(245, 158, 11, 0.25);
  --glow-cyan: rgba(56, 189, 248, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 32px var(--glow-cyan);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(37, 99, 235, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 32px rgba(37, 99, 235, 0.15);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.88);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast);
}
.brand:hover .brand-icon {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .brand-title {
  background: linear-gradient(135deg, #0f172a 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.lang-switch:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--accent-amber);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-amber) 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-amber) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

/* App Store Buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
}
[data-theme="light"] .store-btn.btn-ios {
  background: #000000;
  color: #ffffff;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.store-btn-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.store-btn.btn-android {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  cursor: default;
}
[data-theme="light"] .store-btn.btn-android {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-secondary);
}
.store-btn.btn-android:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent-amber);
}

.store-badge-soon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, var(--accent-amber) 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Mockup & Phone Showcase
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(145deg, #2d3748, #1a202c);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.12),
              0 0 40px var(--glow-cyan);
  transition: transform var(--transition-smooth);
}

.phone-inner {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Proof Live Stamping Overlay */
.proof-stamp-card {
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 14px;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 5;
  animation: stamp-drop 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes stamp-drop {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stamp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  margin-bottom: 6px;
  color: var(--accent-amber-light);
  font-weight: 700;
}

.stamp-tag {
  background: var(--accent-amber);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.stamp-line {
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e2e8f0;
}

.stamp-line b {
  color: var(--accent-cyan);
}

.stamp-id {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #10b981;
  font-weight: 700;
  font-size: 0.62rem;
}

/* Rubber Stamp Seal Graphic */
.rubber-stamp {
  position: absolute;
  top: 45%;
  right: 12px;
  transform: rotate(-14deg) scale(0);
  width: 90px;
  height: 90px;
  border: 3px double #ef4444;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.58rem;
  line-height: 1.1;
  text-align: center;
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
  animation: seal-slam 0.8s 0.9s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  pointer-events: none;
  z-index: 6;
}

@keyframes seal-slam {
  0% { transform: rotate(-25deg) scale(2.5); opacity: 0; }
  100% { transform: rotate(-14deg) scale(1); opacity: 0.92; }
}

.rubber-stamp span {
  letter-spacing: 0.04em;
}
.rubber-stamp-date {
  font-size: 0.52rem;
  border-top: 1px solid #ef4444;
  border-bottom: 1px solid #ef4444;
  padding: 1px 4px;
  margin: 2px 0;
}

/* Floating Badges around mockup */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 7;
  animation: float-slow 4s ease-in-out infinite alternate;
}
[data-theme="light"] .float-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
}

.chip-1 {
  top: 15%;
  left: -40px;
  border-color: rgba(56, 189, 248, 0.4);
}
.chip-2 {
  bottom: 22%;
  right: -30px;
  animation-delay: -2s;
  border-color: rgba(245, 158, 11, 0.4);
}

@keyframes float-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip-1 .chip-icon {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}
.chip-2 .chip-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

/* ==========================================================================
   Section Headers & Shared Layouts
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

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

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   2-in-1 Tabs & Feature Showcase
   ========================================================================== */
.feature-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.tab-buttons {
  display: inline-flex;
  padding: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  gap: 6px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tab-btn svg {
  width: 20px;
  height: 20px;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-amber) 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}
.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.feature-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.feat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
}
.feat-icon-box.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}
.feat-icon-box.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.feat-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feat-info p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Document Interactive Visual: A4 & ID Card Animation */
.interactive-canvas {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

/* Simulated A4 Paper */
.a4-sheet {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.414; /* A4 aspect ratio */
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  color: #1e293b;
}

/* Ruler Scale Indicators */
.a4-header-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 6px;
}

/* Simulated ID Card 1:1 Scale */
.sim-id-card {
  position: relative;
  width: 82%;
  margin: 0 auto;
  aspect-ratio: 85.6 / 53.98;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1.5px solid #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-smooth);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-flag {
  font-size: 0.55rem;
  font-weight: 800;
  color: #b91c1c;
  text-transform: uppercase;
}
.card-chip-sim {
  width: 22px;
  height: 16px;
  background: #f59e0b;
  border-radius: 3px;
}

.card-body {
  display: flex;
  gap: 10px;
  align-items: center;
}
.card-avatar {
  width: 38px;
  height: 48px;
  background: #94a3b8;
  border-radius: 4px;
  flex-shrink: 0;
}
.card-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c-line {
  height: 6px;
  background: #64748b;
  border-radius: 3px;
  width: 100%;
}
.c-line.short { width: 65%; }

.card-dim-badge {
  position: absolute;
  bottom: -10px;
  right: 12px;
  background: #0369a1;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Laser Scanner Beam */
.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #38bdf8 50%, transparent 100%);
  box-shadow: 0 0 15px #38bdf8, 0 0 30px #38bdf8;
  animation: scan-vertical 3s infinite ease-in-out;
  pointer-events: none;
  z-index: 5;
}

@keyframes scan-vertical {
  0% { top: 5%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

/* ==========================================================================
   Trust & Security Matrix (Why You Can Trust Proof)
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.trust-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  margin-bottom: 20px;
}
.trust-icon-wrap.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
}
.trust-icon-wrap.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}
.trust-icon-wrap.purple {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

.trust-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.trust-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Live Counter Section */
.counter-strip {
  margin-top: 56px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
[data-theme="light"] .counter-strip {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.counter-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-amber);
  line-height: 1.1;
  font-family: ui-monospace, monospace;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Use Cases (Tình Huống Sử Dụng)
   ========================================================================== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.usecase-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.usecase-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-amber);
  box-shadow: var(--shadow-lg);
}

.usecase-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.usecase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.usecase-card:hover .usecase-img {
  transform: scale(1.05);
}

.usecase-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-amber-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.usecase-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.usecase-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.usecase-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.usecase-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.usecase-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.usecase-bullets li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   Screenshots Showcase (Gallery)
   ========================================================================== */
.gallery-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-primary);
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}
.gallery-track::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
}

.screenshot-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  background: #000;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.screenshot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-cyan);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  padding: 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(10, 14, 23, 0.9);
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item:hover {
  border-color: var(--accent-cyan);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition-smooth);
}
.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
  background: var(--bg-glass);
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Bottom CTA Section
   ========================================================================== */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-box {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 32px;
  padding: 64px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--glow-amber);
  max-width: 920px;
  margin: 0 auto;
}
[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.cta-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 60px 0 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-desc {
  color: var(--text-secondary);
  max-width: 380px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* ==========================================================================
   Prefers-Reduced-Motion & Responsive Media Queries
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rubber-stamp, .proof-stamp-card, .scan-beam, .hero-pill-dot, .float-chip {
    animation: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust-badges {
    justify-content: center;
  }
  .feature-grid-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .counter-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* toggle via JS */
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
  }
  .btn-header-cta {
    display: none;
  }
  .usecase-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .counter-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-track {
    grid-template-columns: repeat(5, 260px);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .float-chip {
    display: none; /* Avoid overlapping on narrow screens */
  }
}
