:root {
  --main: #f1f9f6;
  --card: rgba(255, 255, 255, 0.6);
  --text-primary: #0f291e;
  --text-secondary: #4a6b5d;
  --shadow: rgba(15, 41, 30, 0.08);
  --lens-color: #00b22d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--main);
  background-image: url('/assets/bg/bg1.png');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 5%;
  border-bottom: 1px solid rgba(0, 178, 45, 0.08);
  box-shadow: 0px 4px 20px var(--shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  font-size: 1.5rem;
  text-decoration: none;
}

.logo1 { color: #90ee90; font-weight: 800; letter-spacing: -0.5px; }
.logo2 { color: var(--lens-color); font-weight: 800; letter-spacing: -0.5px; }

.btnVideo {
  padding: 8px 18px; 
  border: none;
  background: var(--lens-color);
  border-radius: 8px; 
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 178, 45, 0.2);
}

.btnVideo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 178, 45, 0.3);
}

.guide-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 5%;
}

.guide-header {
  text-align: center;
  margin-bottom: 50px;
}

.brand-badge {
  display: inline-block;
  background-color: #e3f4ee;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--lens-color);
}

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

.api-section {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.api-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.api-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 35px var(--shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 178, 45, 0.1);
}

.api-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.api-icon {
  width: 45px;
  height: 45px;
  background: var(--text-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 800;
}

.api-title h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.btn-action {
  background: transparent;
  color: var(--lens-color);
  border: 2px solid var(--lens-color);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-action:hover {
  background: var(--lens-color);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 178, 45, 0.2);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.step-item {
  display: flex;
  gap: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #e3f4ee;
  color: var(--lens-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.slider-wrapper {
  background: rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed rgba(0, 178, 45, 0.2);
}

.slider-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.slider-hint::before {
  content: '↔';
  font-size: 1rem;
}

.screenshot-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: 10px;
}

.screenshot-slider::-webkit-scrollbar {
  height: 6px;
}

.screenshot-slider::-webkit-scrollbar-track {
  background: transparent;
}

.screenshot-slider::-webkit-scrollbar-thumb {
  background: rgba(0, 178, 45, 0.2);
  border-radius: 10px;
}

.screenshot-slider:active {
  cursor: grabbing;
}

.screenshot-slider img {
  height: 240px;
  min-width: 350px;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  pointer-events: none;
}

footer {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 25px 5%;
  border-top: 1px solid rgba(0, 178, 45, 0.08);
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 50px;
}

.linkTutor {
  text-decoration: none;
  color: var(--lens-color);
}

@media (max-width: 600px) {
  .api-card { 
    padding: 25px; 
  }
  
  .card-header { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  
  .btn-action { 
    width: 100%; 
    text-align: center; 
  }
  
  .screenshot-slider img { 
    height: 180px; 
    min-width: 280px; 
  }
}

