/* ==========================================================================
   Pixelon Labs - Master Design System & Core Stylesheet
   Version: 1.0.0 (Dark Glassmorphic Studio Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  /* Canvas & Surface Colors */
  --bg-canvas: #090D16;
  --bg-elevated: #0B1120;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-glass-nav: rgba(9, 13, 22, 0.85);

  /* Borders & Separation */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(56, 189, 248, 0.35);
  --border-emerald: rgba(16, 185, 129, 0.35);

  /* Brand Accents */
  --accent-emerald: #10B981;
  --accent-emerald-hover: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  
  --accent-cyan: #38BDF8;
  --accent-indigo: #6366F1;
  --accent-amber: #F59E0B;
  --accent-purple: #A855F7;

  /* Typography Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-link: #38BDF8;

  /* Typography Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevation Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows & Ambient Glows */
  --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-glow-emerald: 0 0 40px -10px rgba(16, 185, 129, 0.35);
  --shadow-glow-cyan: 0 0 40px -10px rgba(56, 189, 248, 0.35);

  /* Layout Widths */
  --container-max: 1200px;
  --container-doc: 860px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Radial Background Glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -100px;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

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

.container-doc {
  max-width: var(--container-doc);
}

/* Typography Helpers */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; font-weight: 600; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #F8FAFC 20%, #38BDF8 60%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-emerald {
  color: var(--accent-emerald);
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-amber {
  color: var(--accent-amber);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--bg-glass-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
}

.brand-logo-svg {
  height: 38px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 4px;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

/* Mobile Nav Toggle */
.btn-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.btn-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
  z-index: 99;
  border-top: 1px solid var(--border-subtle);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.mobile-drawer .nav-links a {
  font-size: 1.25rem;
  font-weight: 600;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent-emerald);
  color: #06281E;
  box-shadow: 0 4px 20px -4px var(--accent-emerald-glow);
}

.btn-primary:hover {
  background: var(--accent-emerald-hover);
  color: #FFFFFF;
  box-shadow: 0 6px 24px -2px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-play-badge {
  display: inline-block;
  height: 52px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play-badge img,
.btn-play-badge svg {
  height: 100%;
  width: auto;
  display: block;
}

.btn-play-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
}

/* Badges & Status Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38BDF8;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #FBBF24;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.status-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

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

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-title {
  max-width: 900px;
  margin: 0 auto 24px;
}

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

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

.trust-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* ==========================================================================
   Section Common Layouts
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

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

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

/* App Showcase Cards */
.apps-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.app-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.app-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.app-card-ok {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(6, 40, 30, 0.4) 100%);
}

.app-card-odia {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(45, 25, 10, 0.35) 100%);
}

.app-card-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-header-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.app-title-wrap h3 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.app-category {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.app-features-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

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

.app-card-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.app-screenshot-frame {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease;
}

.app-card:hover .app-screenshot-frame {
  transform: scale(1.02);
}

/* Studio Philosophy / Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.value-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.value-icon-box svg {
  width: 26px;
  height: 26px;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.contact-card h2 {
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 28px;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-emerald);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.email-pill:hover {
  background: var(--accent-emerald);
  color: #06281E;
  transform: scale(1.03);
}

/* ==========================================================================
   Documentation & Legal Pages (Privacy Policy, Terms, Support)
   ========================================================================== */
.doc-header {
  padding: 60px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  list-style: none;
}

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

.breadcrumbs span.separator {
  color: var(--border-card);
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.doc-content {
  color: var(--text-primary);
  line-height: 1.8;
}

.doc-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-content h3 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #E2E8F0;
}

.doc-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.doc-content ul, 
.doc-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-secondary);
}

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

.doc-content strong {
  color: var(--text-primary);
}

/* Compliance Notice Boxes */
.callout-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--accent-emerald);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  color: var(--text-secondary);
}

.callout-box-blue {
  background: rgba(56, 189, 248, 0.08);
  border-left-color: var(--accent-cyan);
}

.callout-box-amber {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--accent-amber);
}

.callout-box h4 {
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* FAQ Accordion Component */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-card);
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  display: none;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  margin-top: 80px;
  font-size: 0.9rem;
}

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

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

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.footer-col a {
  color: var(--text-secondary);
}

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

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .app-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .btn-mobile-toggle {
    display: flex;
  }
  .trust-metrics-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0 40px;
  }
  .app-card {
    padding: 24px 18px;
  }
  .app-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .email-pill {
    font-size: 0.95rem;
    padding: 10px 18px;
    word-break: break-all;
  }
}
