:root {
  --primary: #0ea5e9;
  --dark: #020617;
  --card: #0f172a;
  --muted: #94a3b8;
  --border: #1e293b;
}

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

body {
  font-family: "Inter", sans-serif;
  /* background: radial-gradient(circle at top, #020617, #020617);
  color: white; */
  background:
    linear-gradient(
      rgba(2, 6, 23, 0.88),
      rgba(2, 6, 23, 0.88)
    ),
    url("./assets/bg.png") center / cover no-repeat fixed;

  color: #e5e7eb;
}

/* HEADER */
/* NAVBAR */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  z-index: 100;
}

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

.logo {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
}

.brand {
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
  margin-right: 16px;
  text-decoration: none;
}

.nav-links a:hover {
  color: white;
}


/* BUTTONS */
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.btn-secondary {
  background: #020617;
  border: 1px solid var(--border);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
}

.large {
  padding: 14px 22px;
}

/* Remove anchor styling for button-wrapped links */
.btn-link {
  text-decoration: none;
  color: inherit;
}

.btn-link:visited,
.btn-link:hover,
.btn-link:active {
  color: inherit;
  text-decoration: none;
}

/* Buttons with icons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Button icons */
.btn-icon-img {
  width: 18px;
  height: 18px;

  /* Match icon color to text */
  filter: invert(100%);
  opacity: 0.9;
}

button:hover .btn-icon-img {
  opacity: 1;
}


/* HERO PAGE / INDEX PAGE */
.hero {
  padding: 140px 20px 80px;
  text-align: center;

  /* lighter glass layer instead of heavy block */
  /* background: rgba(2, 6, 23, 0.55); */
  background: transparent;
  backdrop-filter: blur(2px);
  border-radius: 24px;

  /* NEW: constrain width like guide page */
  max-width: 1200px;
  margin: 120px auto 0;
}


.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero span {
  color: var(--primary);
}

.subtitle {
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero action button hover effect */
.hero-actions button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}

.hero-content .code-block {
  margin-top: 40px;
  max-width: 800px;
  font-size: 1rem;
  text-align: left;
}

/* DOWNLOAD PAGES */

.download-cta {
  margin: 24px 0 40px;
}

.download-cta button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-cta button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}

.download-section {
  margin-top: 40px;
}

.download-section:first-of-type {
  margin-top: 0;
}

/* GUIDE PAGE */

/* CODE BLOCK */
.code-block {
  background: linear-gradient(180deg, #020617, #020617);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 0px auto 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;     /* allow wrapping */
  word-wrap: break-word;     /* legacy support */
  overflow-wrap: break-word; /* modern support */
  color: #38bdf8;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* DOCS */
.docs {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1200px;
  margin: 80px auto;
  gap: 32px;
  padding: 0 20px;
}

.sidebar {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
}

.sidebar h3 {
  margin-bottom: 12px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}

.sidebar li.active,
.sidebar li:hover {
  background: #020617;
  color: white;
}

/* Sidebar dropdowns */
.sidebar .has-children > .sub-list {
  list-style: none;
  margin-top: 8px;
  margin-left: 12px;
  display: none;
}

.sidebar .has-children.open > .sub-list {
  display: block;
}

.sidebar .sub-list li {
  padding: 6px 10px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
}

.sidebar .sub-list li:hover {
  background: #020617;
  color: white;
}

.sidebar .parent {
  display: block;
  cursor: pointer;
}

/* Dropdown icon */
.dropdown-icon {
  width: 14px;
  height: 14px;
  margin-right: 8px;

  /* match sidebar text color */
  filter: invert(80%);
  transition: transform 0.25s ease;
}

/* Rotate icon when submenu is open */
.has-children.open .dropdown-icon {
  transform: rotate(90deg);
}

.docs-content {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--border);
  padding: 28px;
  backdrop-filter: blur(6px);
  border-radius: 16px;
}

.docs-content > * {
  margin-left: 12px;
}

.docs-content .code-block {
  margin-left: 0;
}

.docs-page {
  padding-top: 120px;
}

.hidden {
  display: none;
}

/* Installation Guide h2 spacing */
#install h2 {
  margin-top: 56px;
  /* margin-bottom: 32px; */
}

#install h2:first-of-type {
  margin-top: 0;
}

#install p {
  margin-bottom: 24px;
}

/* Syntax & Code spacing normalization */
#syntax h3 {
  margin-top: 48px;
  margin-bottom: 16px;
}

#syntax p {
  margin-bottom: 24px;
}

#syntax .code-block {
  margin-top: 0;
  margin-bottom: 48px;
}

/* Syntax block visibility */
.syntax-block {
  display: none;
}

.syntax-block.active {
  display: block;
}

/* Example block */

#examples h3 {
  margin-top: 48px;
  margin-bottom: 16px;
}

#examples h3:first-of-type {
  margin-top: 0;
}

/* FAQ question spacing */
#faq h3 {
  margin-top: 48px;
}

#faq h3:first-of-type {
  margin-top: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}

.comparison-table th {
  font-weight: 600;
  color: #e5e7eb;
}

#faq .faq-code-block-para {
  margin-bottom: 24px;
}

.release-block {
  border-left: 3px solid #cbd5e1;
  padding-left: 28px;
  margin: 28px 0;
}

.release-block.highlight {
  border-left-color: #38bdf8;
}

.release-block ul {
  margin-left: 18px;
}

.release-block li {
  padding-left: 4px;
}

.release-date {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 400;
}

.badge {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 4px 10px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  border-radius: 999px;
}

.roadmap-card {
  background: linear-gradient(180deg, #020617, #020617);
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.roadmap-card ul {
  margin-left: 18px;
}

.roadmap-card li {
  padding-left: 4px;
}

/* HELP PAGE */

/* Docs layout without sidebar (Help page) */
.docs.no-sidebar {
  display: flex;
  justify-content: center;
}

.docs.no-sidebar .docs-content {
  max-width: 900px;
  width: 100%;
}

.centered-docs {
  margin-left: 0;
}

/* FUTURE PAGE */

.docs-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.docs-content h2:first-of-type {
  margin-top: 0;
}

.docs-content p {
  margin-bottom: 24px;
}

/* FOOTER */

.site-footer {
  background: #020617;
  border-top: 1px solid #1e293b;
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.4rem;
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 6px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials img {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: #64748b;
}

/* Footer social icon styling */
.footer-socials img {
  width: 22px;
  height: 22px;
  filter: invert(72%) sepia(8%) saturate(600%) hue-rotate(180deg)
          brightness(95%) contrast(90%);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

/* Hover effect */
.footer-socials img:hover {
  filter: invert(90%) sepia(20%) saturate(1400%) hue-rotate(170deg)
          brightness(105%) contrast(100%);
  opacity: 1;
  transform: translateY(-2px);
}
