:root {
  --bg: #0c0f16;
  --panel: #121726;
  --text: #e9edf5;
  --muted: #9aa3b8;
  --accent: #7df5c9;
  --accent-2: #5bc0ff;
  --border: rgba(255, 255, 255, 0.08);
  --card: #161c2d;
  --warning: #ffb347;
  --font: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); overflow-x: hidden; max-width: 100vw; }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.legal-page { background: var(--bg); color: var(--text); }
.legal-hero { padding: 64px 0 32px; background: linear-gradient(135deg, rgba(125,245,201,0.12), rgba(91,192,255,0.08)); border-bottom: 1px solid var(--border); }
.legal-content { padding: 32px 0 72px; }
.legal-content article { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.legal-content h2 { margin-top: 18px; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.7; }
.legal-content ul { padding-left: 20px; }

.page-shell { position: relative; overflow: hidden; }
.shell { width: min(1120px, 92vw); margin: 0 auto; }
.top-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); background: rgba(12, 15, 22, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3); }
.top-nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 14px; }
.top-nav__brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; transition: transform 0.2s ease, filter 0.2s ease; }
.top-nav__brand:hover { transform: scale(1.02); filter: drop-shadow(0 0 8px rgba(125, 245, 201, 0.3)); }
.top-nav__brand-line { display: inline-flex; gap: 6px; letter-spacing: 0.12em; font-weight: 700; font-size: 13px; }
.brand-blue { color: #227bff; }
.brand-red { color: #ff3a3a; }
.top-nav__tag { font-size: 10px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.top-nav__links { display: none; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--muted); }
.top-nav__links a { padding-bottom: 4px; border-bottom: 1px solid transparent; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.top-nav__links a::before { content: ''; position: absolute; inset: -4px -8px; border-radius: 8px; background: radial-gradient(circle at center, rgba(125, 245, 201, 0.1), transparent 70%); opacity: 0; transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.top-nav__links a:hover::before { opacity: 1; }
.top-nav__links a:hover { color: var(--accent); border-color: rgba(125,245,201,0.5); text-shadow: 0 0 12px rgba(125, 245, 201, 0.4); }
.top-nav__cta { display: none; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px; color: var(--text); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.top-nav__cta::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent); pointer-events: none; }
.top-nav__cta:hover { border-color: rgba(125,245,201,0.5); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(125, 245, 201, 0.2); }

.hero { position: relative; padding: 64px 0 56px; background: linear-gradient(160deg, rgba(125,245,201,0.08), rgba(91,192,255,0.08)); }
.hero__bg-line { position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(125,245,201,0.18), transparent 32%), radial-gradient(circle at 70% 30%, rgba(91,192,255,0.16), transparent 36%); pointer-events: none; }
.hero__logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; position: relative; z-index: 1; }
.logo { height: 42px; }
.badge { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.hero__copy { position: relative; z-index: 1; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 12px; letter-spacing: -0.02em; }
.subhead { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; letter-spacing: 0.01em; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #0a0d14; border: none; box-shadow: 0 10px 30px rgba(125,245,201,0.25); }
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn:hover { transform: translateY(-2px); border-color: rgba(125,245,201,0.35); box-shadow: 0 10px 24px rgba(91,192,255,0.18); }

.price-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.provider-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 14px; }
.provider-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(125,245,201,0.08); color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.provider-chip__icon { width: 16px; height: 16px; display: block; }
.provider-link { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text); font-weight: 600; letter-spacing: 0.02em; transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.provider-link:hover { border-color: rgba(125,245,201,0.45); color: var(--accent); transform: translateY(-1px); }

.section { padding: 72px 0; }
.section--warning { background: #0f1320; }
.section__header { margin-bottom: 28px; }
.section__eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(125,245,201,0.12); color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }
h2 { margin: 14px 0 8px; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; }
.lede { margin: 0; color: var(--muted); max-width: 720px; line-height: 1.6; }

.pill-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.pill { padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 15px; line-height: 1.5; }
.pill--outline { background: transparent; border-color: rgba(255,179,71,0.35); color: #ffd9a0; }
.pill-grid--outline .pill { border-color: rgba(255,179,71,0.35); }

.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 24px; }
.mockup { background: linear-gradient(160deg, rgba(125,245,201,0.12), rgba(91,192,255,0.08)); border: 1px dashed rgba(255,255,255,0.18); border-radius: 18px; min-height: 220px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }

.legal { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.legal__card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.legal__title { margin: 0 0 10px; font-weight: 600; letter-spacing: 0.02em; }
.legal ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }

.faq { display: grid; gap: 12px; margin-top: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.faq__question { width: 100%; background: none; border: none; color: var(--text); text-align: left; padding: 14px 16px; font-size: 15px; letter-spacing: 0.01em; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.faq__question::after { content: '+'; color: var(--accent); font-weight: 700; }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.2s ease, padding 0.2s ease; padding: 0 16px; color: var(--muted); line-height: 1.6; }
.faq__item.is-open .faq__answer { max-height: 200px; padding: 0 16px 14px; }
.faq__item.is-open .faq__question::after { content: '–'; }

/* Carousel */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.carousel__track-container {
  overflow: hidden;
  border-radius: 20px;
  flex: 1;
}
.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel__slide {
  min-width: 100%;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel__slide img {
  max-height: 580px;
  width: auto;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(125, 245, 201, 0.08);
  object-fit: contain;
}
.carousel__caption {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}
.carousel__btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.carousel__btn:hover {
  background: rgba(125, 245, 201, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}
.carousel__btn:active {
  transform: scale(0.95);
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.carousel__dot:hover {
  background: rgba(125, 245, 201, 0.4);
}
.carousel__dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(125, 245, 201, 0.6);
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .carousel__btn { width: 40px; height: 40px; }
  .carousel__slide img { max-height: 420px; }
}

.footer { padding: 32px 0 40px; background: #0a0d14; border-top: 1px solid var(--border); }
.footer__grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: 14px; }
.footer__tag { color: var(--muted); margin: 8px 0 0; }

@media (min-width: 768px) {
  .hero { padding: 88px 0 84px; }
  .legal { grid-template-columns: 1.2fr 0.8fr; }
  .footer__grid { grid-template-columns: 1fr auto; }
  .top-nav__links { display: flex; }
  .top-nav__cta { display: inline-flex; }
}

/* Contact Modal */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.contact-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.contact-modal-overlay.is-open .contact-modal {
  transform: translateY(0);
}
.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}
.contact-modal__close:hover { color: var(--text); }
.contact-modal__title {
  margin: 0 0 8px;
  font-size: 24px;
}
.contact-modal__desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.contact-form__row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.contact-form__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select { cursor: pointer; }
.contact-form select option { background: var(--bg); }
.contact-form__submit {
  width: 100%;
  margin-top: 8px;
}
.contact-form__status {
  font-size: 14px;
  margin: 8px 0 0;
  text-align: center;
}
.contact-form__status.success { color: var(--accent); }
.contact-form__status.error { color: #ff6b6b; }

/* ============ DOWNLOAD SECTION ============ */
.section--download {
  background: linear-gradient(135deg, rgba(125,245,201,0.08), rgba(91,192,255,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.download-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.download-card__logo {
  height: 60px;
}

.download-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.download-card__meta span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.download-card__version {
  color: var(--accent) !important;
  border-color: rgba(125, 245, 201, 0.3) !important;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.btn-download svg {
  flex-shrink: 0;
}

.download-card__note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* SideLoadR Upsell */
.sideloadr-upsell {
  margin-top: 32px;
}

.sideloadr-upsell .upsell-card {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.04), rgba(125, 245, 201, 0.02));
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.sideloadr-upsell .upsell-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #39ff14, var(--accent));
  border-radius: 16px 16px 0 0;
}

.sideloadr-upsell .upsell-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(57, 255, 20, 0.12);
  color: #39ff14;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sideloadr-upsell .upsell-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.sideloadr-upsell .upsell-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid rgba(57, 255, 20, 0.25);
  flex-shrink: 0;
}

.sideloadr-upsell .upsell-text {
  flex: 1;
  min-width: 180px;
}

.sideloadr-upsell .upsell-text h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--white);
}

.sideloadr-upsell .upsell-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.sideloadr-upsell .upsell-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #39ff14, #2ed00a);
  color: #000;
  font-weight: 600;
  font-size: 13px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.sideloadr-upsell .upsell-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(57, 255, 20, 0.25);
}

.sideloadr-upsell .upsell-cta .price-tag {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}

@media (max-width: 540px) {
  .sideloadr-upsell .upsell-content {
    flex-direction: column;
    text-align: center;
  }
  
  .sideloadr-upsell .upsell-cta {
    width: 100%;
    justify-content: center;
  }
}
/* Changelog Box - What's New */
.changelog-box {
    margin-top: 1.25rem;
    background: rgba(125, 245, 201, 0.05);
    border: 1px solid rgba(125, 245, 201, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
}
.changelog-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.changelog-icon {
    font-size: 1.1rem;
}
.changelog-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--mint);
}
.changelog-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: auto;
}
.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.changelog-list li {
    font-size: 0.85rem;
    color: var(--text);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}
.changelog-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--mint);
    font-size: 0.8rem;
}

/* Changelog Box - What's New */
.changelog-box {
    margin-top: 1.25rem;
    background: rgba(125, 245, 201, 0.05);
    border: 1px solid rgba(125, 245, 201, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
}
.changelog-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.changelog-icon {
    font-size: 1.1rem;
}
.changelog-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--mint);
}
.changelog-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: auto;
}
.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.changelog-list li {
    font-size: 0.85rem;
    color: var(--text);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}
.changelog-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--mint);
    font-size: 0.8rem;
}
