:root {
  --bg: #F8FAFC;
  --bg-alt: #EFF6FF;
  --surface: #FFFFFF;
  --surface-elevated: rgba(255, 255, 255, 0.86);
  --surface-muted: #F1F5F9;
  --text: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --indigo: #4F46E5;
  --indigo-hover: #4338CA;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --slate-dark: #0F172A;
  --sky: #0EA5E9;

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

html[data-theme="dark"] {
  --bg: #0B1120;
  --bg-alt: #0F172A;
  --surface: #131C31;
  --surface-elevated: rgba(15, 23, 42, 0.85);
  --surface-muted: #1E293B;
  --text: #F8FAFC;
  --text-muted: #CBD5E1;
  --text-subtle: #94A3B8;
  --border: #1E293B;
  --border-strong: #334155;

  --shadow-sm: 0 2px 10px rgba(2, 6, 23, 0.3);
  --shadow-md: 0 14px 36px rgba(2, 6, 23, 0.45);
  --shadow-lg: 0 28px 64px rgba(2, 6, 23, 0.65);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--indigo);
}

html[data-theme="dark"] code {
  background: rgba(129, 140, 248, 0.16);
  color: #A5B4FC;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Glassmorphism Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-emblem {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.18s ease;
  padding: 8px 4px;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--indigo);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-muted);
  border-color: var(--border-strong);
}

html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 0.97rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--indigo-hover), var(--blue-hover));
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.36);
}

.btn-secondary {
  background: var(--slate-dark);
  color: #FFFFFF;
  border-color: #1E293B;
}

html[data-theme="dark"] .btn-secondary {
  background: #1E293B;
  border-color: #334155;
}

.btn-secondary:hover {
  background: #1E293B;
}

.btn-glass {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: rgba(79, 70, 229, 0.06);
}

.btn-dark {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #FFFFFF;
  border-color: #334155;
}

.btn-dark:hover {
  background: linear-gradient(135deg, #1E293B, #334155);
}

/* Mobile Drawer */
.mobile-only {
  display: none;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(2, 6, 23, 0.56);
  backdrop-filter: blur(4px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  z-index: 200;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav-link:hover {
  background: var(--surface-muted);
  color: var(--indigo);
}

.mobile-drawer-footer {
  margin-top: auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
}

.hero-glow-left {
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.55), transparent 70%);
}

.hero-glow-right {
  top: 40px;
  right: -140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: clamp(2.05rem, 3.6vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-secondary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.inline-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--indigo);
}

html[data-theme="dark"] .inline-portal-link {
  color: #818CF8;
}

.inline-portal-link:hover {
  text-decoration: underline;
}

.hero-visual-wrap {
  position: relative;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.hero-visual-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #F8FAFC;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.floating-chip-top {
  top: -14px;
  right: 20px;
}

.floating-chip-bottom {
  bottom: -14px;
  left: 20px;
}

.chip-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.chip-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.chip-indigo {
  background: rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
}

/* Trust Strip */
.trust-strip {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--indigo);
}

html[data-theme="dark"] .trust-value {
  color: #818CF8;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.04) 0%, rgba(37, 99, 235, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 10px;
}

html[data-theme="dark"] .section-eyebrow {
  color: #818CF8;
}

.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.03rem;
  color: var(--text-muted);
}

/* Purpose & Story */
.purpose-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.problem-card h3 {
  font-size: 1.05rem;
  margin: 12px 0 8px;
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.problem-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.problem-badge-amber { background: rgba(245, 158, 11, 0.14); color: #D97706; }
.problem-badge-rose { background: rgba(244, 63, 94, 0.14); color: #E11D48; }
.problem-badge-indigo { background: rgba(79, 70, 229, 0.14); color: #4F46E5; }
.problem-badge-blue { background: rgba(37, 99, 235, 0.14); color: #2563EB; }

html[data-theme="dark"] .problem-badge-amber { color: #FBBF24; }
html[data-theme="dark"] .problem-badge-rose { color: #FB7185; }
html[data-theme="dark"] .problem-badge-indigo { color: #A5B4FC; }
html[data-theme="dark"] .problem-badge-blue { color: #60A5FA; }

.story-solution-card {
  background: linear-gradient(155deg, #0F172A, #1E1B4B);
  color: #F8FAFC;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.story-solution-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.story-solution-card > p {
  color: #CBD5E1;
  font-size: 0.96rem;
  margin-bottom: 22px;
}

.solution-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #E2E8F0;
}

.check-circle {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.2);
  color: #34D399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-indigo { background: rgba(79, 70, 229, 0.12); color: #4F46E5; }
.icon-blue { background: rgba(37, 99, 235, 0.12); color: #2563EB; }
.icon-sky { background: rgba(14, 165, 233, 0.14); color: #0284C7; }
.icon-rose { background: rgba(244, 63, 94, 0.12); color: #E11D48; }
.icon-emerald { background: rgba(16, 185, 129, 0.14); color: #059669; }
.icon-violet { background: rgba(139, 92, 246, 0.14); color: #7C3AED; }

html[data-theme="dark"] .icon-indigo { color: #A5B4FC; }
html[data-theme="dark"] .icon-blue { color: #60A5FA; }
html[data-theme="dark"] .icon-sky { color: #38BDF8; }
html[data-theme="dark"] .icon-rose { color: #FB7185; }
html[data-theme="dark"] .icon-emerald { color: #34D399; }
html[data-theme="dark"] .icon-violet { color: #C4B5FD; }

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Screenshots Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-tab:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.filter-tab.is-active {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.24);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-card-wide {
  grid-column: span 3;
}

.gallery-trigger {
  width: 100%;
  border: 0;
  padding: 22px 22px 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, transparent 100%);
  cursor: zoom-in;
  text-align: left;
}

html[data-theme="dark"] .gallery-trigger {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.device-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0F172A;
  padding: 10px;
  border: 1px solid var(--border-strong);
}

.device-phone .gallery-img {
  max-height: 390px;
  width: auto;
  border-radius: 12px;
}

.device-desktop .gallery-img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 10px;
}

.preview-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #E2E8F0;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.gallery-meta {
  padding: 14px 22px 22px;
}

.gallery-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.platform-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.chip-android { background: rgba(16, 185, 129, 0.14); color: #059669; }
.chip-ios { background: rgba(37, 99, 235, 0.14); color: #2563EB; }
.chip-admin { background: rgba(79, 70, 229, 0.14); color: #4F46E5; }

html[data-theme="dark"] .chip-android { color: #34D399; }
html[data-theme="dark"] .chip-ios { color: #60A5FA; }
html[data-theme="dark"] .chip-admin { color: #A5B4FC; }

.zoom-hint {
  font-size: 0.76rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.gallery-meta h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.gallery-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Downloads Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-card-admin {
  border-color: rgba(79, 70, 229, 0.35);
}

.download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.platform-android { background: rgba(16, 185, 129, 0.14); color: #059669; }
.platform-ios { background: rgba(37, 99, 235, 0.14); color: #2563EB; }
.platform-windows { background: rgba(14, 165, 233, 0.14); color: #0284C7; }
.platform-admin { background: rgba(79, 70, 229, 0.14); color: #4F46E5; }

html[data-theme="dark"] .platform-android { color: #34D399; }
html[data-theme="dark"] .platform-ios { color: #60A5FA; }
html[data-theme="dark"] .platform-windows { color: #38BDF8; }
html[data-theme="dark"] .platform-admin { color: #A5B4FC; }

.version-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.version-badge-live {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

html[data-theme="dark"] .version-badge-live {
  color: #34D399;
}

.download-card h3 {
  font-size: 1.24rem;
}

.download-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.guide-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.download-actions {
  margin-top: auto;
  padding-top: 4px;
}

.download-actions-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.is-open {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: var(--shadow-md);
}

.faq-heading {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  min-height: 60px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.faq-trigger:hover {
  background: rgba(79, 70, 229, 0.04);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: -2px;
}

.faq-item.is-open .faq-trigger {
  color: var(--indigo);
}

html[data-theme="dark"] .faq-item.is-open .faq-trigger {
  color: #A5B4FC;
}

.faq-chevron {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.28s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--indigo);
}

html[data-theme="dark"] .faq-item.is-open .faq-chevron {
  color: #A5B4FC;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #E2E8F0;
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .brand-tag {
  color: #94A3B8;
}

.footer-tagline {
  margin-top: 14px;
  color: #94A3B8;
  font-size: 0.93rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.release-pill, .creator-credit {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.8rem;
  color: #CBD5E1;
}

.footer-columns {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.92rem;
  color: #E2E8F0;
  padding: 2px 0;
}

.footer-col a:hover {
  color: #60A5FA;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #94A3B8;
}

.back-to-top:hover {
  color: #FFFFFF;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 92vh;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-head h3 {
  font-size: 1.15rem;
}

.lightbox-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.lightbox-stage {
  padding: 20px;
  background: #0B1120;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.lightbox-stage img {
  max-height: 70vh;
  width: auto;
  border-radius: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .purpose-layout {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card-wide {
    grid-column: span 2;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-admin-btn {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero-section {
    padding: 40px 0 44px;
  }

  .problem-grid,
  .features-grid,
  .gallery-grid,
  .downloads-grid,
  .download-actions-split {
    grid-template-columns: 1fr;
  }

  .gallery-card-wide {
    grid-column: span 1;
  }

  .floating-chip {
    display: none;
  }

  .footer-columns {
    gap: 32px;
  }
}
