/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(30, 30, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo img,
.nav__logo svg {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  gap: 0.25rem;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav__mobile a:hover { color: var(--text); background: var(--surface-alt); }

.nav__mobile .btn { margin-top: 0.5rem; width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: clamp(4rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}

/* Subtle grid glow background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 122, 204, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 122, 204, 0.12);
  border: 1px solid rgba(0, 122, 204, 0.35);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

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

.hero__headline {
  margin-bottom: 1.25rem;
}

.hero__headline span {
  color: var(--accent);
}

.hero__sub {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 50ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Screenshot placeholder */
.screenshot-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.screenshot-placeholder svg {
  opacity: 0.3;
  display: inline;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ============================================================
   Features grid
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 122, 204, 0.12);
  border: 1px solid rgba(0, 122, 204, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-wrapper {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.pricing-card__badge {
  display: inline-block;
  background: rgba(79, 195, 247, 0.12);
  border: 1px solid rgba(79, 195, 247, 0.3);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.pricing-card__name {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-card__currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--muted);
  align-self: flex-start;
  padding-top: 0.4rem;
}

.pricing-card__once {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}

.pricing-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.45 3.55a.75.75 0 0 1 0 1.06l-7 7a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 1.06-1.06L6 10.94l6.39-6.39a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.45 3.55a.75.75 0 0 1 0 1.06l-7 7a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 1.06-1.06L6 10.94l6.39-6.39a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-card .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 0.85rem; }
.pricing-card__guarantee {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .pricing-card { padding: 2rem 1.5rem; }
}

/* ============================================================
   Page header (download, docs, changelog sub-pages)
   ============================================================ */
.page-header {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0, 122, 204, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.page-header__inner { position: relative; }

/* ============================================================
   Download cards
   ============================================================ */
.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.download-card--primary { border-color: var(--accent); }

.download-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.download-card__desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .download-cards { grid-template-columns: 1fr; }
}

/* Steps list */
.steps { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 1.25rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.steps li p { color: var(--text); font-size: 0.95rem; }
.steps li p span { color: var(--muted); font-size: 0.875rem; display: block; margin-top: 0.15rem; }

/* Sysreq table */
.sysreq {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 1.5rem;
}
.sysreq th, .sysreq td {
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sysreq th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; }
.sysreq td { color: var(--text); }
.sysreq tr:last-child td, .sysreq tr:last-child th { border-bottom: none; }

/* ============================================================
   Docs prose
   ============================================================ */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.docs-sidebar__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.docs-sidebar__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.docs-sidebar__list a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.docs-sidebar__list a:hover,
.docs-sidebar__list a.active {
  color: var(--text);
  background: var(--surface-alt);
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.prose p, .prose li {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.75;
}

.prose ul, .prose ol { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.prose li { color: var(--muted); }

.prose p { margin-bottom: 1rem; }

.prose .note {
  background: rgba(0, 122, 204, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

.prose .note strong { color: var(--cyan); }

@media (max-width: 820px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
}

/* ============================================================
   Changelog timeline
   ============================================================ */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2.5rem;
}

.changelog::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.changelog-entry {
  position: relative;
  padding-bottom: 3rem;
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: calc(-2.5rem + 4px);
  top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.changelog-entry__meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.changelog-entry__version {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.changelog-entry__date {
  font-size: 0.85rem;
  color: var(--muted);
}

.changelog-entry__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: var(--green);
}

.changelog-entry__items {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.changelog-entry__items li {
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.changelog-entry__items li::before {
  content: '+';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__brand img, .footer__brand svg { height: 26px; width: auto; }

.footer__copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s;
}

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

@media (max-width: 600px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Screenshot hero image
   ============================================================ */
.ss-thumb--hero {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  text-decoration: none;
}

.ss-thumb--hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.ss-thumb--hero:hover {
  box-shadow: 0 8px 40px rgba(0,122,204,0.25);
}

/* ============================================================
   Screenshots grid
   ============================================================ */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .ss-grid { grid-template-columns: 1fr; }
}

.ss-thumb {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  cursor: zoom-in;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.ss-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

.ss-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,122,204,0.2);
  transform: translateY(-2px);
}

.ss-thumb:hover img {
  transform: scale(1.02);
}

.ss-thumb__zoom {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}

.ss-thumb:hover .ss-thumb__zoom,
.ss-thumb--hero:hover .ss-thumb__zoom {
  opacity: 1;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lb-in 0.18s ease;
}

.lightbox[hidden] { display: none !important; }

@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  animation: lb-zoom 0.18s ease;
}

@keyframes lb-zoom {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 1001;
}

.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 1001;
}

.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }

.lightbox__counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
}

@media (max-width: 600px) {
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
}
