/* ==========================================================================
   ImagineArt landing-page shell — canonical header + footer.

   This file is IDENTICAL byte-for-byte across every imagine-computer landing
   page repo. It is the plain-CSS translation of the reference implementation
   (imagine-ai-chat-lp's SiteNav.tsx / SiteFooter.tsx), so the shell renders
   the same everywhere regardless of each page's own body styling.

   Google Sans Flex is the single typeface for the whole page, not just the
   shell — matching the reference implementation's house rule.

   Do not hand-edit one copy. Change it in every repo together.
   ========================================================================== */

@font-face {
  font-family: 'Google Sans Flex';
  src: url('https://cdn-imagine.vyro.ai/imagine-static-pages/ai-presentation-maker/assets/google-sans-flex.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Design rule: only weights 300/400/500/600 are used. Never 700+. */
:root {
  --ia-font-sans: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Pages that route their typography through these variables inherit the
     switch without touching their own rules. */
  --font-sans: var(--ia-font-sans);
  --font-display: var(--ia-font-sans);
}

html,
body {
  font-family: var(--ia-font-sans);
}

/* Elements that opt out of inheritance by default still need it stated. */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* ============================ HEADER ============================
   Transparent over the hero, morphs into a floating dark glass pill on
   scroll. Theme colors swap through custom properties so the links, CTA and
   burger all invert together in one place. */

#site-nav {
  --nav-fg: rgba(11, 11, 12, 0.6);
  --nav-fg-hover: #0b0b0c;
  --nav-fg-ghost: rgba(11, 11, 12, 0.28);
  --nav-cta-bg: #0b0b0c;
  --nav-cta-fg: #ffffff;
  --nav-cta-glow: rgba(11, 11, 12, 0.08);
  --nav-burger: rgba(11, 11, 12, 0.8);

  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 60;
  transition: top 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pages whose hero is dark start in the inverted palette instead. */
#site-nav.on-dark {
  --nav-fg: rgba(255, 255, 255, 0.65);
  --nav-fg-hover: #ffffff;
  --nav-fg-ghost: rgba(255, 255, 255, 0.3);
  --nav-cta-bg: #ffffff;
  --nav-cta-fg: #0a0a0b;
  --nav-cta-glow: rgba(255, 255, 255, 0.08);
  --nav-burger: rgba(255, 255, 255, 0.9);
}

#site-nav.is-scrolled {
  top: 16px;
  --nav-fg: rgba(255, 255, 255, 0.65);
  --nav-fg-hover: #ffffff;
  --nav-fg-ghost: rgba(255, 255, 255, 0.3);
  --nav-cta-bg: #ffffff;
  --nav-cta-fg: #0a0a0b;
  --nav-cta-glow: rgba(255, 255, 255, 0.08);
  --nav-burger: rgba(255, 255, 255, 0.9);
}

#site-nav-inner {
  margin-inline: auto;
  max-width: 100%;
  height: 64px;
  /* Keeps the bar's content aligned with the page container (1240px + 32px gutters). */
  padding-left: max(32px, calc((100vw - 1240px) / 2 + 32px));
  padding-right: max(32px, calc((100vw - 1240px) / 2 + 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  transition:
    max-width 480ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 480ms cubic-bezier(0.22, 1, 0.36, 1),
    height 480ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 480ms cubic-bezier(0.22, 1, 0.36, 1),
    background 320ms ease,
    box-shadow 480ms ease;
}

#site-nav.is-scrolled #site-nav-inner {
  max-width: min(1240px, calc(100vw - 32px));
  height: 72px;
  padding-left: 28px;
  padding-right: 16px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.42);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

#site-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#site-nav-logo img {
  display: block;
  height: 24px;
  width: auto;
  filter: none;
  transition: filter 0.3s ease;
}
#site-nav.on-dark #site-nav-logo img,
#site-nav.is-scrolled #site-nav-logo img {
  filter: brightness(0) invert(1);
}

#site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 22px);
}

/* Hover rolls the label up, revealing a dimmed copy underneath. */
.nav-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  height: 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.nav-link-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover .nav-link-inner {
  transform: translateY(-20px);
}
.nav-link-text {
  display: block;
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--nav-fg);
  transition: color 0.3s;
}
.nav-link:hover .nav-link-text {
  color: var(--nav-fg-hover);
}
.nav-link-ghost {
  color: var(--nav-fg-ghost);
}

#site-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  padding: 8px 16px;
  border: none;
  border-radius: 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  color: var(--nav-cta-fg);
  background: var(--nav-cta-bg);
  transition: box-shadow 0.2s, transform 0.2s, background 0.3s, color 0.3s;
}
.nav-cta:hover {
  box-shadow: 0 0 0 6px var(--nav-cta-glow);
  transform: scale(1.02);
}

#site-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--nav-burger);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.3s ease;
}
.ham-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ham-lines span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 250ms ease;
}
#site-nav-toggle.is-open .ham-lines span:first-child,
#site-nav-toggle[aria-expanded="true"] .ham-lines span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
#site-nav-toggle.is-open .ham-lines span:last-child,
#site-nav-toggle[aria-expanded="true"] .ham-lines span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 1080px) {
  #site-nav-links,
  #site-nav-actions {
    display: none !important;
  }
  #site-nav-toggle {
    display: inline-flex !important;
  }
}

/* ---------------------- Mobile fullscreen menu ---------------------- */

#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 101;
  background: #ffffff;
  flex-direction: column;
}
#mobile-menu.is-open,
#mobile-menu.open {
  display: flex;
  animation: navMenuIn 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
#mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  flex-shrink: 0;
}
#mobile-menu-top img {
  display: block;
  height: 24px;
  width: auto;
}
#mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  background: transparent;
  color: rgba(11, 11, 12, 0.6);
  cursor: pointer;
}
#mobile-menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}
#mobile-menu-body nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mobile-nav-link {
  display: block;
  text-align: center;
  padding: 10px 32px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: rgba(11, 11, 12, 0.7);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.mobile-nav-link:hover {
  color: #0b0b0c;
  background: rgba(11, 11, 12, 0.05);
}
#mobile-menu-divider {
  width: calc(100% - 48px);
  height: 1px;
  background: rgba(11, 11, 12, 0.08);
  margin: 16px 0;
}
#mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #171717;
  text-decoration: none;
}

/* ============================ FOOTER ============================ */

.ia-footer {
  background: #070707;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: hidden;
}

.ia-footer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}

.ia-footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.ia-footer-brand {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.ia-footer-logo {
  display: block;
  width: 28px;
  height: 28px;
}

.ia-footer-tagline {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  max-width: 220px;
}

.ia-footer-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ia-footer-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 4px;
}

.ia-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ia-store-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.ia-store-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ia-footer-heading {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 20px;
}

.ia-footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ia-footer-links a {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ia-footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.ia-footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: space-between;
  column-gap: 24px;
  row-gap: 40px;
  flex: 1;
  min-width: 0;
}

.ia-footer-subsection {
  margin-top: 32px;
}
.ia-footer-subsection .ia-footer-heading {
  margin-bottom: 20px;
}

/* ---------------------- Watermark ---------------------- */

.ia-watermark-wrap {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  user-select: none;
  pointer-events: none;
  padding: 16px 20px 0;
  line-height: 0;
}
.ia-watermark {
  width: 100%;
  max-width: 1240px;
  height: auto;
  display: inline-block;
}

/* ---------------------- Bottom bar ---------------------- */

.ia-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 24px;
}
.ia-footer-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.ia-footer-legal {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.ia-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}
.ia-copyright strong {
  font-weight: 600;
}
.ia-cookie-btn {
  font-family: inherit;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  padding: 0 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.ia-cookie-btn:hover {
  color: rgba(255, 255, 255, 0.55);
}
.ia-socials {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ia-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.15s ease, background 0.15s ease;
}
.ia-social-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}
.ia-social-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------------------- Footer breakpoints ---------------------- */

@media (min-width: 640px) {
  .ia-footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ia-footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .ia-footer-wrap {
    padding: 56px 40px 32px;
  }
  .ia-footer-top {
    flex-direction: row;
  }
  .ia-footer-brand {
    width: 128px;
    gap: 32px;
  }
  .ia-watermark-wrap {
    padding-left: 40px;
    padding-right: 40px;
  }
  .ia-footer-bottom {
    padding: 0 40px 32px;
  }
}

@media (min-width: 1024px) {
  .ia-footer-columns {
    grid-template-columns: repeat(4, auto);
  }
}
