/* ==========================================================================
   Hero (brand row, statement, framed product shot), site header, footer.
   ========================================================================== */

/* --- sticky site header (Adobe-style top nav) ---------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--ink);
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

/* Center nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.site-nav__link {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--ink);
  background: var(--paper-3);
}

/* Right side: github + download CTA */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.github-link:hover {
  color: var(--ink);
  transform: scale(1.08);
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 110px;
  text-align: center;
  background: var(--paper);
}

/*
 * Subtle radial gradient highlight: Adobe uses clean whites with a soft
 * glow rather than warm paper tones.
 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(178, 255, 214, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(178, 255, 214, 0.08), transparent 60%);
}

/* Subtle dot grid: refined and low-key */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 20, 40, 0.06) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 65%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 65%);
}

.hero .shell {
  position: relative;
  z-index: 1;
}

/* Eyebrow above the hero title (optional badge) */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-mid);
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-dark);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/*
 * Accent sub-title line: rendered in a heavier weight to create a clear
 * visual rhythm under the display headline.
 */
.hero__serif {
  margin-top: 16px;
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}

.hero__title {
  margin-inline: auto;
  max-width: 100%;
}

.hero__lead {
  margin-block: 24px 0;
  margin-inline: auto;
  max-width: 58ch;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* Make the primary hero CTA slightly larger */
.hero .btn--primary {
  min-height: 52px;
  padding: 0 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.hero .btn--quiet {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* --- hero product shot ---------------------------------------------------- */

.hero__shot {
  margin: 72px auto 0;
  max-width: 1080px;
}

/* Framed real-product screenshot: a browser-chrome bar over the shot. */
.shot-frame {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line-mid);
  background: var(--dark);
  box-shadow:
    0 4px 6px rgba(20, 20, 40, 0.04),
    0 20px 60px -20px rgba(20, 20, 40, 0.2),
    0 60px 120px -40px rgba(20, 20, 40, 0.12);
}

.shot-frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #15151d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shot-frame__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #363642;
}

.shot-frame__url {
  margin-inline: auto;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 240, 248, 0.55);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.shot-frame img {
  width: 100%;
  height: auto;
}

/* --- footer ------------------------------------------------------------- */

.footer {
  margin-top: 0;
  border-top: 1px solid var(--dark-line);
  background: var(--dark);
  padding-block: 40px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--dark-faint);
  font-size: 13px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__links a {
  color: var(--dark-dim);
  transition: color 0.18s var(--ease);
}

.footer__links a:hover {
  color: var(--dark-text);
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  }

  .nav-toggle:hover {
    background: var(--paper-3);
    border-color: var(--line-strong);
  }

  .nav-toggle .nav-toggle__icon--close {
    display: none;
  }

  .site-header.is-menu-open .nav-toggle .nav-toggle__icon--open {
    display: none;
  }

  .site-header.is-menu-open .nav-toggle .nav-toggle__icon--close {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-mid);
    padding: 16px 24px 20px;
    gap: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  }

  .site-header.is-menu-open .site-nav__link {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    border-radius: var(--radius-lg);
  }

  .site-header.is-menu-open .site-nav__link:hover {
    background: var(--paper-3);
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 80px;
    text-align: left;
  }

  .hero__title,
  .hero__lead {
    margin-inline: 0;
    max-width: none;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__shot {
    margin-top: 48px;
  }

  .footer {
    padding-block: 32px;
  }

  .footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .shell {
    padding-inline: 20px;
  }

  .site-header__row {
    padding-inline: 20px;
  }

  .site-header__actions .github-link {
    display: none;
  }
}

@media (max-width: 330px) {
  .brand span:last-child {
    display: none;
  }
}
