@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #071224;
  --bg-secondary: #0c1730;
  --surface: rgba(14, 23, 43, 0.72);
  --surface-card: rgba(18, 28, 52, 0.88);

  --text-primary: #f5f7ff;
  --text-secondary: #a8b3cf;
  --text-muted: #7d8aaa;

  --border-soft: rgba(255, 255, 255, 0.08);

  --accent-primary: #7c5cff;
  --accent-secondary: #4da3ff;
  --accent-highlight: #a970ff;

  --shadow-lg: 0 20px 60px rgba(2, 8, 23, 0.45);
  --shadow-md: 0 12px 30px rgba(2, 8, 23, 0.35);
  --shadow-sm: 0 8px 18px rgba(2, 8, 23, 0.28);

  --container-width: 1240px;
  --transition: 0.3s ease;
}

/* ================= RESET & GENERAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.12), transparent 28%),
    radial-gradient(circle at right center, rgba(77, 163, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #081121 0%, #071224 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ================= BACKGROUND DECOR ================= */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.8;
  pointer-events: none;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(124, 92, 255, 0.16);
  top: 120px;
  left: -80px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(77, 163, 255, 0.12);
  right: -100px;
  top: 360px;
}

.bg-grid {
  position: fixed;
  width: 160px;
  height: 240px;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(124, 92, 255, 0.6) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.left-grid {
  left: 0;
  top: 340px;
}

.right-grid {
  right: 0;
  bottom: 120px;
}

/* ================= HEADER / NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 20px 24px 0;
}

.navbar {
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 84px;
  padding: 16px 20px;
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-text span {
  background: linear-gradient(135deg, var(--accent-highlight), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  opacity: 0.88;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.portfolio-btn {
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #8b5cf6, #6d5efc);
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(124, 92, 255, 0.36);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* ================= PAGE SHELL & HERO ================= */
.page-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 46px 24px 70px;
}

.guide-hero {
  position: relative;
  padding: 34px 18px 24px;
  text-align: center;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: #d8d4ff;
  font-size: 0.95rem;
  font-weight: 600;
}

.guide-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.guide-hero h1 span {
  background: linear-gradient(135deg, #a970ff 0%, #7c5cff 50%, #4da3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 850px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.85;
}

/* ================= CONTENT ARCHITECTURE ================= */
.content-section {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.section-heading .line {
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* ================= GLASS CARD GUIDE CODES ================= */
.glass-card {
  padding: 40px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(21, 31, 58, 0.92), rgba(14, 22, 42, 0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 28px rgba(0,0,0,0.24);
}

.intro-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  width: 100%;
}

.text-accent {
  color: var(--accent-secondary);
  font-size: 1.3rem;
}

/* ================= STEPS ORDERED LIST ================= */
.steps-list {
  padding-left: 24px;
  color: var(--text-secondary);
}

.steps-list li {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.steps-list li strong {
  color: var(--text-primary);
}

.inline-link {
  color: #d9d1ff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(169, 112, 255, 0.4);
  transition: color var(--transition), border-color var(--transition);
}

.inline-link:hover {
  color: white;
  border-color: rgba(255,255,255,0.7);
}

/* ================= INTEGRATED CODE BOX CONSOLE ================= */
.code-container {
  margin: 24px 0;
  background: #091122;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.code-title {
  margin-left: 10px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.code-block {
  padding: 22px 24px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.code-comment {
  color: #64748b;
  font-style: italic;
}

/* ================= SUCCESS BANNER ================= */
.success-banner {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(62, 201, 107, 0.15), transparent);
  border: 1px solid rgba(79, 204, 111, 0.3);
  color: #7de26d;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(62, 201, 107, 0.1);
}

.success-banner i {
  font-size: 1.7rem;
}

/* ================= BUTTON RETURN ROW ================= */
.action-row {
  text-align: center;
  margin-bottom: 20px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #8b5cf6, #6d5efc);
  padding: 15px 24px;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(124, 92, 255, 0.36);
}

/* ================= FOOTER ================= */
.footer {
  max-width: var(--container-width);
  margin: 10px auto 30px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-secondary);
}

.footer p {
  font-size: 0.95rem;
}

/* ================= RESPONSIVE LAYOUTS ================= */
@media (max-width: 768px) {
  .site-header {
    padding: 14px 14px 0;
  }

  .navbar {
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
    position: relative;
  }

  .brand-text {
    font-size: 1.7rem;
  }

  .menu-toggle {
    display: block;
  }

  .portfolio-btn {
    display: none;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
  }

  .page-shell {
    padding: 28px 16px 50px;
  }

  .guide-hero {
    padding: 12px 0 10px;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.75;
  }

  .content-section {
    margin-top: 40px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-heading .line {
    width: 52px;
  }

  .glass-card {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .intro-text {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .steps-list li {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .code-block {
    padding: 16px;
  }

  .code-block code {
    font-size: 0.85rem;
  }

  .success-banner {
    font-size: 1rem;
    padding: 16px;
    flex-direction: column;
    gap: 8px;
  }

  .back-home-btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    margin: 8px 14px 24px;
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .guide-hero h1 {
    font-size: 2.05rem;
  }
}