/* ==================== */
/* Header / Nav         */
/* ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 36px;
  width: auto;
}

.header__nav {
  display: none;
  gap: var(--space-8);
}

.header__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.header__link:hover {
  color: var(--color-text-on-dark);
}

.header.scrolled .header__link {
  color: var(--color-text-secondary);
}

.header.scrolled .header__link:hover {
  color: var(--color-text);
}

.header__cta {
  display: none !important;
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 101;
}

.header__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-on-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header.scrolled .header__menu-toggle span {
  background-color: var(--color-text);
}

.header__menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.header__nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-dark);
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
  z-index: 100;
}

.header__nav.open .header__link {
  font-size: var(--font-size-xl);
  color: var(--color-text-on-dark);
}

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

  .header__cta {
    display: inline-flex !important;
  }

  .header__menu-toggle {
    display: none;
  }
}


/* ==================== */
/* Buttons              */
/* ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn--sm {
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-6);
  height: 36px;
}

.btn--md {
  font-size: var(--font-size-base);
  padding: var(--space-3) var(--space-8);
  height: 44px;
}

.btn--lg {
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-8);
  height: 52px;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-text-on-dark);
  box-shadow: 0 2px 8px rgba(197, 127, 227, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197, 127, 227, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.header.scrolled .header__cta {
  background: var(--gradient-primary);
  color: var(--color-text-on-dark);
}


/* ==================== */
/* Product Cards        */
/* ==================== */
.product-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card--featured {
  text-align: center;
}

.product-card--featured .product-card__icon {
  margin-inline: auto;
}

.product-card__icon--waffl-ai {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
}

.product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.product-card__name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.product-card__tagline {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.product-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ==================== */
/* Footer               */
/* ==================== */
.footer {
  background-color: var(--color-bg-dark);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-on-dark-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-16);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__heading {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-1);
}

.footer__link {
  font-size: var(--font-size-sm);
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-text-on-dark);
}

.footer__bottom {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  font-size: var(--font-size-xs);
  color: var(--color-text-on-dark-muted);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
