/* ========================================
   OPENMINDED BOT — LAYOUT
   ======================================== */

/* ----------------------------------------
   Header
   ---------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.header__logo {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__logo:hover {
  border-bottom: none;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }
}

.header__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: none;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header__link:hover {
  color: var(--text);
  border-bottom: none;
}

.header__item {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast),
              visibility var(--transition-fast);
  z-index: 50;
}

.header__item:hover .header__dropdown,
.header__item:focus-within .header__dropdown {
  opacity: 1;
  visibility: visible;
}

.header__dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: var(--text-sm);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--transition-fast);
  border-bottom: none;
  white-space: nowrap;
}

.header__dropdown a:hover {
  background-color: var(--surface-hover);
  color: var(--text);
  border-bottom: none;
}

.header__actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__actions .btn-primary,
.header__actions .btn--sm {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .header__actions {
    display: flex;
  }
}

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

@media (min-width: 1024px) {
  .header__mobile-actions {
    display: none;
  }
}

.header__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
}

/* ----------------------------------------
   Mobile Menu
   ---------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--gap);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base),
              visibility var(--transition-base);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }
}

.mobile-menu__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__link {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--accent);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--transition-fast);
  border-bottom: none;
}

.footer__col a:hover {
  color: var(--text);
  border-bottom: none;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
  }
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: none;
}

.footer__socials a:hover {
  color: var(--accent);
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}

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

/* ----------------------------------------
   Section titles
   ---------------------------------------- */
.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
}
