:root {
  --main-bg: #0e0e0e;
  --sidebar-bg: #1a1a1a;
  --text-color: #fff;
  --accent: rgb(106, 122, 174);
  --accent-red: #e74c3c;
  --accent-text: var(--accent);

  --bg-card: rgba(22, 22, 22, 0.9);
  --bg-input: #171717;
  --bg-elevated: rgba(26, 26, 26, 0.95);

  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.4);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);

  --overlay-weak: rgba(255, 255, 255, 0.04);
  --overlay-strong: rgba(255, 255, 255, 0.1);

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
}

[data-theme="light"] {
  --main-bg: #f5f6fa;
  --sidebar-bg: #e9ecf5;
  --text-color: #1a1a1a;
  --accent-text: #445179;

  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-elevated: #ffffff;

  --text-muted: rgba(0, 0, 0, 0.6);
  --text-faint: rgba(0, 0, 0, 0.4);

  --border-subtle: rgba(0, 0, 0, 0.1);
  --border-medium: rgba(0, 0, 0, 0.16);

  --overlay-weak: rgba(0, 0, 0, 0.04);
  --overlay-strong: rgba(0, 0, 0, 0.06);

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

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  font-size: 118%; /* scale the whole site up a bit — everything below is in rem */
}
@media (max-width: 640px) {
  html { font-size: 106%; } /* keep mobile from feeling oversized */
}

body {
  background: var(--main-bg);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--sidebar-bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  margin-right: auto;
}
.brand-mark { border-radius: 6px; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-color); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pill-btn, .icon-btn {
  background: var(--overlay-weak);
  border: 1px solid var(--border-subtle);
  color: var(--text-color);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pill-btn { padding: 0.4rem 0.85rem; font-size: 0.85rem; font-weight: 600; }
.icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.pill-btn:hover, .icon-btn:hover { background: var(--overlay-strong); border-color: var(--border-medium); }

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-alt { background: var(--overlay-weak); border-radius: var(--radius); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.75rem; }
.section-head p { color: var(--text-muted); margin: 0; }
.block-line { display: block; }

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-inner .eyebrow {
  color: var(--accent-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin: 0 0 1rem;
}
.hero-inner h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
}
.hero-inner .lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 1.75rem;
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-disclaimer { grid-column: 1 / -1; text-align: center; margin-top: 1rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--border-medium); color: var(--text-color); }

.hero-shot .browser-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 0.6rem 0.8rem;
  background: var(--sidebar-bg);
}
.browser-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-medium);
}
.hero-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  .hero-shot .browser-frame { animation: none; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
}
.stat strong { display: block; font-size: 1.4rem; color: var(--accent-text); margin-bottom: 0.3rem; }
.stat span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.feature-card-soon { position: relative; border-style: dashed; }
.soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-red);
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  transition: transform 0.25s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-4deg); }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.gallery-tab {
  background: var(--overlay-weak);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}
.gallery-tab.is-active { background: var(--accent); color: #fff; border-color: transparent; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.gallery-item img { aspect-ratio: 16/10; object-fit: cover; background: var(--overlay-weak); width: 100%; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: scale(1); }
.gallery-item figcaption {
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Mobile showcase (phone frames) ---------- */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center;
  gap: 2rem;
}
.phone-item .phone-frame {
  border-radius: 32px;
  border: 10px solid var(--sidebar-bg);
  box-shadow: var(--shadow);
  background: var(--sidebar-bg);
  position: relative;
}
.phone-item .phone-frame::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 18px;
  background: var(--sidebar-bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-item img { aspect-ratio: 390/844; object-fit: cover; object-position: top; border-radius: 22px; width: 100%; }
.phone-item:hover img { transform: scale(1.03); }

@media (max-width: 900px) {
  .phone-grid { grid-template-columns: repeat(2, minmax(0, 240px)); }
}
@media (max-width: 640px) {
  .phone-grid { grid-template-columns: minmax(0, 260px); }
}

/* ---------- Roles ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.role-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.role-chip:hover { transform: translateY(-3px); border-color: var(--accent); }
.role-chip strong { color: var(--accent-text); }
.role-chip span { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.why-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.why-col h3 { margin-top: 0; }
.why-col ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.why-col li { margin-bottom: 0.5rem; }
.why-col-after { border-color: var(--accent); }
.why-col-after h3 { color: var(--accent-text); }

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
  max-width: 720px;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}
.site-footer .rights { color: var(--text-faint); font-size: 0.8rem; margin: 0.5rem 0 0; }
.site-footer .credit { color: var(--text-faint); font-size: 0.8rem; margin: 0.75rem 0 0; }
.site-footer .credit a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.site-footer .credit a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger .reveal { transition-delay: var(--reveal-delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-shot .browser-frame { animation: none; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.25rem;
  animation: lightbox-fade 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.lightbox-open { overflow: hidden; }
.lightbox-figure {
  margin: 0;
  max-width: min(97vw, 1900px);
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-figure figcaption {
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.85;
}
.lightbox-close, .lightbox-nav {
  position: fixed;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav[hidden] { display: none; }
.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .back-to-top { right: 1rem; bottom: 1rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    display: none;
    gap: 0.9rem;
  }
  .nav-links.is-open { display: flex; }
  .menu-btn { display: flex; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .gallery-grid, .roles-grid { grid-template-columns: 1fr; }
}
