:root {
  color-scheme: dark;
  color: #f3f3f3;
  background: #0f172a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url("assets/background.jpg") center / cover fixed no-repeat;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem; /* smaller banner height */
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.logo-name {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.site-header h1,
.site-header p {
  margin: 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  background: rgba(100, 116, 139, 0.14);
  border: 1px solid rgba(226, 232, 240, 0.15);
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

nav a:hover {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-1px);
}

main {
  flex: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.hero p {
  color: #94a3b8;
  max-width: 40rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.card-image {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0.25rem;
  overflow: hidden;
  margin: 0.5rem auto 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1.25rem;
}

.card-content {
  padding: 0.6rem 1.0rem 0.9rem;
  width: 100%;
  text-align: center;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.card-content p {
  margin: 0;
  color: #cbd5e1;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
}

.content-page section {
  margin-bottom: 2rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.75rem;
}

.setup-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.setup-controls {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.setup-item,
.setup-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.setup-brand-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(100, 116, 139, 0.12);
  color: #f3f3f3;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.setup-brand-button.active {
  background: rgba(96, 165, 250, 0.22);
}

.setup-brand-button:hover {
  background: rgba(96, 165, 250, 0.15);
}

.setup-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 1.5rem 0;
}

.setup-panel.active {
  opacity: 1;
  max-height: 1200px;
  padding: 0.75rem 1.5rem 1.5rem;
}

.setup-panel h3 {
  margin-top: 0;
}

.setup-item + .setup-item .setup-brand-button {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.setup-item {
  width: 100%;
  scroll-margin-top: 92px;
}

.content-page a {
  color: #60a5fa;
}

.page-nav {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1.25rem;
  padding: 1.25rem 0;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.page-nav a:hover {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.footer {
  text-align: center;
  padding: 1rem 0 2rem;
  color: #94a3b8;
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
  }

  .logo-group {
    gap: 0.6rem;
    min-width: 0;
  }

  .logo-mark {
    width: 72px;
  }

  .logo-name {
    height: 36px;
  }

  nav a {
    padding: 0.55rem 0.8rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  main {
    padding-top: 1rem;
  }
}

/* Responsive header/logo tweaks for medium screens */
@media (max-width: 900px) {
  .site-header {
    padding: 0.6rem 0.9rem;
  }
  .logo-mark {
    width: 80px;
  }
  .logo-name {
    height: 44px;
  }
  nav a {
    padding: 0.45rem 0.75rem;
  }
}
