@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #08090c;
  --bg-light: #101218;
  --panel: #14161d;

  --text: #f2f3f5;
  --muted: #9297a3;

  --accent: #25a95b;
  --accent-dark: #166f3b;

  --border: rgba(255, 255, 255, 0.09);

  --container: 1200px;
  --radius: 16px;
}


/* =========================
   DEVICE LIGHT THEME
========================= */

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f0;
    --bg-light: #ffffff;
    --panel: #e9ebe5;

    --text: #10120d;
    --muted: #5d6258;

    --accent: #25a95b;
    --accent-dark: #32cd7c;

    --border: rgba(0, 0, 0, 0.1);
  }
}


/* =========================
   MANUAL LIGHT THEME
========================= */

body.light-mode {
  --bg: #f4f5f0;
  --bg-light: #ffffff;
  --panel: #e9ebe5;

  --text: #10120d;
  --muted: #5d6258;

  --accent: #25a95b;
  --accent-dark: #32cd7c;

  --border: rgba(0, 0, 0, 0.1);
}


/* =========================
   MANUAL DARK THEME
========================= */

body.dark-mode {
  --bg: #08090c;
  --bg-light: #101218;
  --panel: #14161d;

  --text: #f2f3f5;
  --muted: #9297a3;

  --accent: #25a95b;
  --accent-dark: #166f3b;

  --border: rgba(255, 255, 255, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;

  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(
    calc(100% - 48px),
    var(--container)
  );

  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 14px;

  color: var(--accent);

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 24px;

  border-radius: 8px;

  font-size: 0.9rem;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--accent);
  color: #080900;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================
   NAVIGATION
========================= */

.navbar {
  position: absolute;
  z-index: 10;

  top: 0;
  left: 0;

  width: 100%;

  border-bottom: 1px solid rgba(255,255,255,0.06);

  background: rgba(0, 0, 0, 0.1);

  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand img {
  width: 36px;
  height: 36px;

  object-fit: cover;

  image-rendering: pixelated;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);

  font-size: 0.85rem;
  font-weight: 600;

  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* =========================
   BACK TO TOP
========================= */

#backToTop {
  position: fixed;

  right: 25px;
  bottom: 25px;

  width: 45px;
  height: 45px;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--panel);
  color: var(--text);

  cursor: pointer;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-4px);

  border-color: var(--accent);
  color: var(--accent);
}

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

.footer {
  border-top: 1px solid var(--border);

  padding: 45px 0;

  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.footer strong {
  color: var(--text);
}

.footer p {
  margin: 5px 0 0;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  font-size: 0.8rem;
}

/* =========================
   THEME TOGGLE
========================= */

.theme-toggle {
  position: fixed;
  z-index: 100;

  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--panel);
  color: var(--text);

  font-size: 1.1rem;

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.08);

  background: var(--accent);
  color: #080900;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

  .container {
    width: min(
      calc(100% - 32px),
      var(--container)
    );
  }

  .nav-links {
    display: none;
  }

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

}

/* ============================================================
   SCREENSHOTS
============================================================ */

.screenshots-section {
  padding: 140px 0;

  background: var(--bg);
}


.screenshot-feature {
  position: relative;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--panel);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12);
}


.screenshot-main {
  position: relative;

  display: block;

  width: 100%;

  padding: 0;

  border: 0;
  border-radius: inherit;

  background: transparent;

  overflow: hidden;

  cursor: pointer;
}


.screenshot-main img {
  display: block;

  width: 100%;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  transition:
    transform 500ms ease,
    filter 500ms ease;
}


.screenshot-main::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.04),
      transparent 55%,
      rgba(0, 0, 0, 0.18)
    );

  pointer-events: none;

  transition:
    background 300ms ease;
}


.screenshot-main:hover img {
  transform: scale(1.025);

  filter: brightness(1.06);
}


.screenshot-main:hover::after {
  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.02),
      transparent 55%,
      rgba(0, 0, 0, 0.12)
    );
}


.screenshot-expand {
  position: absolute;

  right: 22px;
  bottom: 20px;

  z-index: 3;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--panel);

  backdrop-filter: blur(12px);

  color: var(--text);

  font-size: 1.2rem;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}


.screenshot-main:hover .screenshot-expand {
  transform: translateY(-2px);

  border-color: var(--accent);

  background: var(--panel);

  color: var(--accent);
}


.screenshot-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 14px;

  margin-top: 14px;
}


.screenshot-thumb {
  position: relative;

  display: block;

  width: 100%;

  padding: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel);

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}


.screenshot-thumb img {
  display: block;

  width: 100%;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  transition:
    transform 450ms ease,
    filter 450ms ease;
}


.screenshot-thumb:hover {
  border-color: var(--accent);

  transform: translateY(-2px);
}


.screenshot-thumb:hover img {
  transform: scale(1.04);

  filter: brightness(1.06);
}


/* ============================================================
   LIGHTBOX
============================================================ */

.lightbox {
  position: fixed;

  inset: 0;

  z-index: 300;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background: var(--bg);

  backdrop-filter: blur(16px);

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 220ms ease;
}


.lightbox.active {
  opacity: 1;

  pointer-events: auto;
}


.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border: 1px solid var(--border);
  border-radius: 8px;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.5);
}


.lightbox-close {
  position: absolute;

  top: 24px;
  right: 24px;

  width: 45px;
  height: 45px;

  display: grid;

  place-items: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  backdrop-filter: blur(12px);

  color: var(--text);

  font-size: 1.5rem;

  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;

  background: var(--panel);
  color: var(--text);

}


.lightbox-close:hover {
  transform: scale(1.05);

  border-color: var(--accent);

  background: var(--panel);

  color: var(--accent);
}


/* ============================================================
   SCREENSHOTS — MOBILE
============================================================ */

@media (max-width: 800px) {

  .screenshots-section {
    padding: 90px 0;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-expand {
    right: 14px;
    bottom: 14px;

    width: 38px;
    height: 38px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 82vh;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;

    width: 40px;
    height: 40px;
  }
}