/* Calming mist & forest palette — inspired by Boosterify UI */
:root {
  --rose-mist: #c9b5b0;
  --lavender-mist: #b8b0bc;
  --fog: #d4ccc8;
  --sage: #8a9e92;
  --sage-deep: #5c6f64;
  --forest: #3d4a42;
  --forest-deep: #2a332e;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.92);
  --white-glass: rgba(255, 255, 255, 0.14);
  --white-border: rgba(255, 255, 255, 0.35);
  --accent: #9db8a8;
  --accent-strong: #7fa892;
  --text-on-mist: #3d4540;
  --text-soft: #5a6560;
  --text-light: rgba(255, 255, 255, 0.95);
  --text-muted-light: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 4px 24px rgba(45, 55, 48, 0.12);
  --shadow-lift: 0 12px 40px rgba(45, 55, 48, 0.18);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", monospace;
  --max: 68rem;
  --radius-pill: 9999px;
  --radius-card: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  background: linear-gradient(
    165deg,
    var(--rose-mist) 0%,
    var(--lavender-mist) 28%,
    var(--sage) 62%,
    var(--sage-deep) 88%,
    var(--forest-deep) 100%
  );
  background-attachment: fixed;
  color: var(--text-on-mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--forest-deep);
}

a {
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--forest);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest);
  text-decoration: none;
}

.site-header.is-scrolled .logo {
  color: var(--forest-deep);
}

.site-header:not(.is-scrolled) .logo {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.88;
}

.nav-desktop {
  display: none;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header:not(.is-scrolled) .nav-desktop a {
  color: var(--text-muted-light);
}

.site-header:not(.is-scrolled) .nav-desktop a:hover {
  color: var(--white);
}

.site-header.is-scrolled .nav-desktop a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.nav-cta {
  display: none;
}

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

.nav-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--forest);
  cursor: pointer;
}

.site-header:not(.is-scrolled) .nav-toggle {
  color: var(--white);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--white-border);
  list-style: none;
  margin: 0;
}

.site-header.is-scrolled .nav-mobile {
  border-color: rgba(61, 74, 66, 0.12);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Buttons — pill style like the app */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--white-soft);
  color: var(--forest);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.btn:hover {
  background: var(--white);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
}

.site-header.is-scrolled .btn-outline,
.site-header.is-scrolled .btn {
  border: none;
}

.site-header.is-scrolled .btn-outline {
  background: transparent;
  border: 1.5px solid var(--sage-deep);
  color: var(--forest);
  box-shadow: none;
}

.site-header.is-scrolled .btn-outline:hover {
  background: rgba(255, 255, 255, 0.6);
}

.btn-primary {
  background: var(--white);
  color: var(--forest-deep);
}

/* Hero */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 181, 176, 0.4) 0%,
    rgba(184, 176, 188, 0.25) 40%,
    rgba(92, 111, 100, 0.35) 100%
  );
  pointer-events: none;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(ellipse 50% 50% at 85% 70%, rgba(157, 184, 168, 0.25), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.hero-tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-muted-light);
  letter-spacing: 0.04em;
}

.hero-lead {
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  max-width: 32rem;
  color: var(--text-muted-light);
  font-weight: 400;
}

.product-banner {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

.product-banner a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-shot {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-shot img {
  width: 100%;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.08);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.section:not(.hero) .section-header h2,
#about .section-header h2 {
  color: var(--forest-deep);
}

.section-header p {
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.section-alt .section-header p,
.section-alt .section-header h2 {
  color: var(--text-light);
}

.section-alt .eyebrow {
  color: var(--accent);
}

#about .eyebrow,
#features .eyebrow,
#download .eyebrow {
  color: var(--accent-strong);
}

/* Highlights */
.highlight-grid {
  display: grid;
  gap: 1.5rem;
}

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

.highlight-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-card);
  border: 1px solid var(--white-border);
  background: var(--white-glass);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--shadow-soft);
}

.highlight-card:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.highlight-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.highlight-card-hint {
  display: block;
  padding: 0 1.5rem 1rem;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.highlight-card:hover .highlight-card-hint {
  opacity: 1;
}

.highlight-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid var(--white-border);
}

.highlight-card-body {
  padding: 1.5rem;
}

.highlight-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.highlight-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted-light);
  line-height: 1.6;
}

/* Highlight modal — centered on viewport */
.highlight-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.highlight-modal.is-open {
  display: block;
}

.highlight-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 51, 46, 0.88);
  backdrop-filter: blur(12px);
  border: none;
  cursor: pointer;
}

.highlight-modal-center {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .highlight-modal-center {
    padding: 2rem;
  }
}

.highlight-modal-dialog {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: 100%;
  max-width: min(56rem, 100%);
  max-height: min(calc(100dvh - 2rem), 52rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--white-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lift);
}

.highlight-modal-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.highlight-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--forest);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s, color 0.2s;
}

.highlight-modal-close:hover {
  background: var(--white);
  color: var(--accent-strong);
}

.highlight-modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(61, 74, 66, 0.1);
}

@media (min-width: 640px) {
  .highlight-modal-image {
    aspect-ratio: 2 / 1;
  }
}

.highlight-modal-body {
  padding: 2rem 2rem 2.5rem;
}

@media (min-width: 640px) {
  .highlight-modal-body {
    padding: 2.25rem 2.5rem 3rem;
  }
}

.highlight-modal-title {
  margin: 0;
  padding-right: 2.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--forest-deep);
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .highlight-modal-title {
    font-size: 1.75rem;
  }
}

.highlight-modal-text {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
}

@media (min-width: 640px) {
  .highlight-modal-text {
    font-size: 1.125rem;
  }
}

.highlight-modal-text a {
  color: var(--accent-strong);
  font-weight: 500;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-strong);
  letter-spacing: 0.04em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.feature-card .learn-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--sage-deep);
}

/* Screenshots */
.gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--white-border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: var(--shadow-soft);
}

.gallery-item:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.02);
  box-shadow: var(--shadow-lift);
}

.gallery-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.gallery-caption {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-light);
  background: var(--white-glass);
  backdrop-filter: blur(8px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(42, 51, 46, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(56rem, 100%);
  width: 100%;
}

.lightbox img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--white-border);
  box-shadow: var(--shadow-lift);
}

.lightbox-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text-light);
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted-light);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--white);
}

/* Download */
.download-panel {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--white-border);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.download-panel h2 {
  margin: 0;
  color: var(--forest-deep);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.download-panel .eyebrow {
  color: var(--accent-strong);
}

.download-panel p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--text-soft);
}

.download-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.site-footer a {
  color: var(--text-light);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--white);
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
