:root {
  --bg-dark: #12100E;
  --bg-surface: #1C1917;
  --bg-card: #25211E;
  --bg-card-hover: #2D2824;
  --border-subtle: #38322D;
  --border-focus: #4A423C;
  --amber-primary: #E5A93C;
  --amber-hover: #D4962B;
  --amber-muted: #59431E;
  --amber-glow: rgba(229, 169, 60, 0.15);
  --text-primary: #F5EBE1;
  --text-secondary: #A89F95;
  --text-subtle: #736C65;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --max-width: 1200px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--amber-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.brand-text span {
  color: var(--amber-primary);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

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

.nav-btn {
  background: var(--amber-primary);
  color: var(--bg-dark) !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.1s ease;
}

.nav-btn:hover {
  background: var(--amber-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.12) 0%, rgba(18, 16, 14, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 999px;
  color: var(--amber-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  background: linear-gradient(135deg, #FFF1E6 0%, #E5A93C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber-primary);
  color: var(--bg-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--amber-hover);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(229, 169, 60, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Video Showcase Container */
.video-showcase {
  max-width: 900px;
  margin: 0 auto 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.9) 0%, rgba(18, 16, 14, 0.98) 100%);
  gap: 16px;
  cursor: pointer;
}

.play-button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--amber-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(229, 169, 60, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button svg {
  width: 28px;
  height: 28px;
  fill: var(--bg-dark);
  margin-left: 4px;
}

.video-placeholder:hover .play-button {
  transform: scale(1.08);
  background: var(--amber-hover);
}

.video-tag {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Story Hook Section */
.story-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-content h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.story-content p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 20px;
}

.story-quote {
  border-left: 3px solid var(--amber-primary);
  padding-left: 20px;
  font-style: italic;
  color: var(--text-primary);
  margin: 24px 0;
  font-size: 18px;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--amber-primary);
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features Interactive Showcase */
.features-section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

/* Category Jump Tabs */
.carousel-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.carousel-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.carousel-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(229, 169, 60, 0.4);
}

.carousel-tab.active {
  background: var(--amber-primary);
  color: var(--bg-dark);
  border-color: var(--amber-primary);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.35);
  transform: translateY(-2px);
}

.carousel-tab .tab-icon {
  font-size: 15px;
}

/* Carousel Showcase Wrapper & Viewport */
.device-carousel-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.device-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0 20px;
}

.device-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.device-carousel-track {
  display: flex;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  box-sizing: border-box;
}

/* Realistic Phone Mockup Frame */
.device-mockup-frame {
  position: relative;
  width: 240px;
  height: 490px;
  background: #0d0c0a;
  border: 4px solid #38312a;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(229, 169, 60, 0.12),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.device-mockup-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9),
              0 0 50px rgba(229, 169, 60, 0.22);
}

.phone-speaker {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #25201b;
  border-radius: 10px;
  z-index: 10;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-screen-glare {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

/* Scan beam sweep animation for OCR card on hover */
.scan-beam {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(180deg, rgba(229, 169, 60, 0) 0%, rgba(229, 169, 60, 0.35) 60%, rgba(229, 169, 60, 0.8) 100%);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.device-mockup-frame:hover .scan-beam {
  opacity: 1;
  animation: scanSweep 2s ease-in-out infinite;
}

@keyframes scanSweep {
  0% { top: -50px; }
  50% { top: 100%; }
  100% { top: -50px; }
}

/* Feature Detail Card Below Phone */
.feature-detail-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  text-align: left;
  transition: border-color 0.25s ease;
}

.carousel-slide:hover .feature-detail-card {
  border-color: rgba(229, 169, 60, 0.35);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.feature-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-primary);
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 1px;
}

.feature-detail-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-detail-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

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

.feature-tags .tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Prev / Next Nav Buttons */
.carousel-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  z-index: 5;
}

.carousel-nav-btn:hover {
  background: var(--amber-primary);
  color: var(--bg-dark);
  border-color: var(--amber-primary);
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.35);
}

/* Dots Pagination */
.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #332d27;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.dot-btn.active {
  width: 32px;
  background: var(--amber-primary);
  box-shadow: 0 0 12px rgba(229, 169, 60, 0.5);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 10;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 580px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 169, 60, 0.2);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--amber-primary);
  color: #12100E;
  border-color: var(--amber-primary);
}

.lightbox-image-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
  background: #000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lightbox-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-meta {
  padding: 16px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.lightbox-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 4px;
}

.lightbox-caption {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Screenshots Showcase Section */
.gallery-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-primary);
}

.gallery-card .img-wrapper {
  background: var(--bg-dark);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.gallery-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.gallery-info {
  padding: 16px;
}

.gallery-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gallery-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Privacy Callout */
.privacy-banner {
  padding: 80px 0;
  text-align: center;
}

.privacy-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(37, 33, 30, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-card h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.privacy-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0;
  background: var(--bg-dark);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  color: var(--text-subtle);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--amber-primary);
}

/* Policy Content Pages */
.policy-page {
  padding: 60px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.policy-page h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.policy-meta {
  color: var(--text-subtle);
  font-size: 14px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.policy-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--amber-primary);
}

.policy-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.policy-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.policy-content ul {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 20px;
  padding-left: 24px;
  line-height: 1.7;
}

.policy-content li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-nav-btn {
    display: none; /* Native swipe gesture is primary on mobile */
  }
  .device-mockup-frame {
    width: 210px;
    height: 430px;
    border-radius: 34px;
    margin-bottom: 20px;
  }
  .phone-screen {
    border-radius: 26px;
  }
  .feature-detail-card {
    padding: 20px 22px;
  }
  .feature-detail-card h3 {
    font-size: 20px;
  }
  .feature-detail-card p {
    font-size: 14px;
  }
  .carousel-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .carousel-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story-stats {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
