/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #E53935;
  --primary-dark: #B71C1C;
  --primary-light: #FF6B6B;
  --bg: #0D0D0D;
  --bg2: #161616;
  --bg3: #1E1E1E;
  --border: rgba(255,255,255,0.08);
  --text: #F5F5F5;
  --text2: #A0A0A0;
  --green: #25D366;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.logo-box.small { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }

.logo-text {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text2);
}

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

.nav-link {
  font-size: 14px;
  color: var(--text2);
  transition: color 0.2s;
}

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

.nav-btn {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: opacity 0.2s;
}

.nav-btn:hover { opacity: 0.85; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse at top left, rgba(229,57,53,0.12) 0%, transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(229,57,53,0.15);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(229,57,53,0.3);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(229,57,53,0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(229,57,53,0.4); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-whatsapp {
  background: var(--green);
  color: #fff;
  font-size: 16px;
  padding: 14px 32px;
}

.btn-whatsapp:hover { background: #1ebe57; transform: translateY(-2px); }

/* ===== PHONE MOCK ===== */
.hero-img { display: flex; justify-content: center; }

.phone-mock {
  width: 200px;
  height: 380px;
  background: var(--bg3);
  border-radius: 32px;
  border: 2px solid var(--border);
  padding: 20px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}

.phone-screen { display: flex; flex-direction: column; gap: 12px; }

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mock-logo {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 80px;
  animation: pulse 2s ease-in-out infinite;
}

.mock-card.small {
  height: 56px;
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.categories-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}

.cat-card:hover {
  border-color: rgba(229,57,53,0.4);
  background: rgba(229,57,53,0.08);
}

.cat-icon { font-size: 18px; }

/* ===== TUTORIALS ===== */
.tutorials { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text2);
  font-size: 16px;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tutorial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  display: block;
}

.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229,57,53,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.tutorial-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg1 { background: linear-gradient(135deg, #1a237e, #283593); }
.bg2 { background: linear-gradient(135deg, #b71c1c, #c62828); }
.bg3 { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.bg4 { background: linear-gradient(135deg, #e65100, #ef6c00); }
.bg5 { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.bg6 { background: linear-gradient(135deg, #006064, #00838f); }

.tutorial-icon { font-size: 48px; }

.tutorial-body { padding: 20px; }

.tutorial-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tutorial-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 8px;
  line-height: 1.3;
}

.tutorial-body p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tutorial-meta {
  font-size: 12px;
  color: var(--text2);
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(37,211,102,0.08) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-inner p {
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-desc {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-copy {
  color: var(--text2);
  font-size: 12px;
  opacity: 0.6;
}

/* ===== TUTORIAL PAGE ===== */
.tutorial-page { padding: 60px 0 80px; }

.tutorial-page .breadcrumb {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 32px;
}

.tutorial-page .breadcrumb a { color: var(--primary-light); }
.tutorial-page .breadcrumb a:hover { text-decoration: underline; }

.tutorial-page .page-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: block;
}

.tutorial-page h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.tutorial-page .meta {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 40px;
}

.tutorial-page .content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

.tutorial-page .content p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tutorial-page .content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.tutorial-page .content ul li {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 8px;
}

.step-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.step-num {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--text2);
  margin: 0;
}

.tip-box {
  background: rgba(229,57,53,0.08);
  border: 1px solid rgba(229,57,53,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text2);
}

.tip-box strong { color: var(--primary-light); }

.nav-tutorial {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.nav-tutorial a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  transition: gap 0.2s;
}

.nav-tutorial a:hover { gap: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .hero-text h1 { font-size: 36px; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .nav-link { display: none; }
  .tutorial-page h1 { font-size: 28px; }
}

@media (max-width: 600px) {
  .tutorials-grid { grid-template-columns: 1fr; }
}
