:root {
  --bg: #f8fafc;
  --bg-elevated: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --accent-border: rgba(37, 99, 235, 0.25);
  --green: #10b981;
  --radius: 14px;
  --radius-sm: 9px;
  --max-w: 1080px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: #0f172a;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-ver {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  text-decoration: none;
}

.site-nav a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  margin-left: 4px;
}

.site-nav a.nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* AdSense slots */
.ad-slot {
  display: block;
  text-align: center;
  margin: 14px auto 0;
  max-width: 100%;
  overflow: hidden;
}

.ad-slot-footer {
  margin: 28px auto 0;
}

.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* Hero */
.hero {
  padding: 44px 0 36px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-sub {
  margin: 0 auto 26px;
  max-width: 660px;
  color: var(--text-muted);
  font-size: 18px;
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  background: var(--bg-elevated);
  border-color: rgba(15, 23, 42, 0.28);
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: transparent;
  color: #ffffff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
  border-radius: 8px;
}

/* Interactive Launcher Screenshots */
.demo-shell {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.demo-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.demo-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.demo-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-hover);
}

.screenshot-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 220px;
}

.demo-shot {
  display: block;
  max-width: 660px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.14));
}

/* Sections & Cards */
.section {
  padding: 34px 0 8px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.card-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Press Quotes */
.press-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s ease;
}

a.press-item:hover {
  text-decoration: none;
  border-color: var(--border-strong);
}

.press-item img.logo {
  max-height: 30px;
  width: auto;
  flex-shrink: 0;
}

.press-source {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.press-quote {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.press-meta {
  font-size: 13.5px;
  color: var(--text-muted);
}

.press-meta strong {
  display: block;
  color: var(--text);
}

/* PayPal Donate Box */
.donate-box {
  margin-top: 16px;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.paypal-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.paypal-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
}

.paypal-submit {
  display: block;
  height: 38px;
  width: auto;
  border-radius: 6px;
}

/* Page header */
.page-header {
  padding: 36px 0 24px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.025em;
  color: var(--text);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 680px;
}

/* Lists & Tables */
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.meta-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.meta-list li + li {
  margin-top: 4px;
}

.legacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 12px;
}

.legacy-table th,
.legacy-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.legacy-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legacy-table tr:last-child td {
  border-bottom: none;
}

.android-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.android-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.android-left img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding: 28px 0 42px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-row {
    height: auto;
    padding: 12px 0;
  }
}
