/* ==========================================================================
   Packora v5.5.0 — Pure Monochrome Design System
   Sleek, High-Contrast Black & White Aesthetics
   ========================================================================== */

:root {
  --bg-primary: #09090b;
  --bg-secondary: #121215;
  --bg-card: rgba(24, 24, 28, 0.7);
  --bg-card-hover: rgba(32, 32, 38, 0.85);
  --bg-mute: rgba(255, 255, 255, 0.05);
  --bg-mute-active: rgba(255, 255, 255, 0.12);
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-focus: #ffffff;
  
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #000000;
  --btn-secondary-bg: rgba(255, 255, 255, 0.06);
  --btn-secondary-text: #ffffff;
  
  --glass-bg: rgba(18, 18, 22, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.12);
}

/* Light Theme overrides if toggled */
body.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-mute: rgba(0, 0, 0, 0.04);
  --bg-mute-active: rgba(0, 0, 0, 0.08);
  
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.18);
  --border-focus: #000000;
  
  --btn-primary-bg: #09090b;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(0, 0, 0, 0.05);
  --btn-secondary-text: #09090b;
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

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

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.brand-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-mute);
  border: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--text-secondary);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

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

.theme-toggle-btn {
  background: var(--bg-mute);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--bg-mute-active);
  border-color: var(--border-medium);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-mute);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 10px var(--text-primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-mute-active);
  border-color: var(--border-focus);
}

.hero-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Common */
.section {
  padding: 90px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: var(--bg-mute);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

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

/* ==========================================================================
   Interactive Studio Simulator
   ========================================================================== */
.simulator-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.sim-traffic {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-dots {
  display: flex;
  gap: 6px;
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sim-dot.d1 { background: #555555; }
.sim-dot.d2 { background: #888888; }
.sim-dot.d3 { background: #cccccc; }

.sim-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.sim-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-mute);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-body {
  padding: 28px;
}

/* Presets bar */
.sim-presets-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sim-preset-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sim-preset-btn {
  background: var(--bg-mute);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sim-preset-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.sim-preset-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 700;
}

/* Architecture selector grid */
.sim-arch-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.sim-arch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.sim-arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-arch-card:hover {
  border-color: var(--border-medium);
}

.sim-arch-card.active {
  background: var(--bg-mute-active);
  border-color: var(--border-focus);
}

.sim-arch-name {
  font-size: 0.82rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.sim-arch-tag {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg-mute);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  color: var(--text-secondary);
}

/* Input Fields */
.sim-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 14px;
  margin-bottom: 22px;
}

.sim-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.sim-input-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.sim-input-group input:focus {
  border-color: var(--border-focus);
}

/* Toggles Grid */
.sim-toggles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.sim-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.sim-toggle-item:hover {
  border-color: var(--border-medium);
}

.sim-toggle-text b {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sim-toggle-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* iOS Spring Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #27272a;
  transition: .25s ease;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #a1a1aa;
  transition: .25s ease;
  border-radius: 50%;
}

.ios-switch input:checked + .ios-slider {
  background-color: #ffffff;
}

.ios-switch input:checked + .ios-slider:before {
  transform: translateX(18px);
  background-color: #09090b;
}

/* Actions & Progress */
.sim-progress-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.sim-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sim-progress-fill {
  height: 100%;
  background: var(--text-primary);
  width: 0%;
  transition: width 0.3s ease;
}

.sim-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.sim-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-compile-btn {
  flex: 2;
  min-width: 240px;
}

.sim-notif-btn {
  flex: 1;
  min-width: 180px;
}

/* Simulated Android Notification Banner */
.sim-notif-banner {
  margin-top: 16px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-notif-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sim-notif-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-notif-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-mute-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sim-notif-msg b {
  display: block;
  font-size: 0.82rem;
  color: #ffffff;
}

.sim-notif-msg p {
  font-size: 0.76rem;
  color: #a1a1aa;
}

/* ==========================================================================
   Architectures Showcase
   ========================================================================== */
.arch-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arch-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.arch-feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.arch-feature-card.highlight {
  grid-column: span 2;
}

.arch-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-mute);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.arch-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.arch-feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.arch-specs-list {
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.arch-specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.arch-specs-list li:before {
  content: "—";
  color: var(--text-primary);
}

/* ==========================================================================
   Stealth Privacy Shield (50+ Vectors)
   ========================================================================== */
.vectors-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.vector-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s ease;
}

.vector-box:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

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

.vector-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--text-primary);
  color: var(--bg-primary);
}

.vector-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.vector-box .attack-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.45;
}

.vector-box .mitigation-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--text-primary);
  padding-left: 8px;
  line-height: 1.45;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-mute);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table th.highlight-col, .comparison-table td.highlight-col {
  background: var(--bg-mute-active);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Screenshots Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrap {
  width: 100%;
  height: 380px;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.03);
}

.gallery-info {
  padding: 18px 20px;
}

.gallery-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* ==========================================================================
   Call to Action (CTA)
   ========================================================================== */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .sim-arch-grid { grid-template-columns: repeat(3, 1fr); }
  .sim-toggles-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-feature-card.highlight { grid-column: span 1; }
  .vectors-matrix { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats-ribbon { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  
  .sim-inputs-grid { grid-template-columns: 1fr; }
  .sim-arch-grid { grid-template-columns: 1fr; }
  .sim-toggles-grid { grid-template-columns: 1fr; }
  
  .arch-cards-grid { grid-template-columns: 1fr; }
  .vectors-matrix { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-img-wrap { height: 300px; }
  
  .cta-banner { padding: 40px 20px; }
  .footer-content { flex-direction: column; text-align: center; }
}
