:root {
  --bg-base: #090a0e;
  --text-primary: #f7f8fa;
  --text-secondary: rgba(240, 242, 247, 0.78);
  --text-muted: rgba(226, 230, 239, 0.54);
  --glass-bg: rgba(22, 24, 30, 0.56);
  --glass-bg-strong: rgba(15, 16, 21, 0.8);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --accent: #ff7426;
  --accent-bright: #ff8a3d;
  --accent-soft: rgba(255, 116, 38, 0.22);
  --accent-border: rgba(255, 138, 61, 0.48);
  --radius-pill: 999px;
  --radius-card: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, "Cascadia Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Ambient blurred mesh waves matching the organic Macwalls style + OpenGame ember palette */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 18% 12%, #1d1512 0%, #090a0e 58%);
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.72;
  will-change: transform;
}

.blob-1 {
  width: 72vw;
  height: 72vw;
  max-width: 1040px;
  max-height: 1040px;
  top: -22%;
  right: -12%;
  background: radial-gradient(circle, rgba(255, 118, 36, 0.56) 0%, rgba(217, 74, 16, 0.24) 52%, transparent 74%);
}

.blob-2 {
  width: 60vw;
  height: 60vw;
  max-width: 880px;
  max-height: 880px;
  bottom: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.44) 0%, rgba(140, 48, 18, 0.22) 50%, transparent 74%);
}

.blob-3 {
  width: 50vw;
  height: 50vw;
  max-width: 760px;
  max-height: 760px;
  top: 24%;
  left: 16%;
  background: radial-gradient(circle, rgba(245, 130, 52, 0.26) 0%, rgba(44, 52, 84, 0.16) 55%, transparent 75%);
}

.blob-4 {
  width: 44vw;
  height: 44vw;
  max-width: 660px;
  max-height: 660px;
  top: 52%;
  right: 8%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.22) 0%, transparent 72%);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 14, 0.15) 0%, rgba(9, 10, 14, 0.48) 55%, rgba(9, 10, 14, 0.84) 100%);
}

/* Shared Glassmorphism Primitives */
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-card);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 20px 32px 0;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand-wrap {
  justify-self: start;
}

.brand-pill {
  padding: 6px 14px 6px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-pill:hover {
  background: rgba(255, 255, 255, 0.13);
}

.brand-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-pill {
  justify-self: center;
  padding: 5px;
  gap: 4px;
}

.nav-link {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.header-actions {
  justify-self: end;
}

.cta-pill {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #fff;
}

.cta-pill:hover {
  background: rgba(255, 116, 38, 0.34);
  transform: translateY(-1px);
}

.gh-icon {
  width: 16px;
  height: 16px;
}

/* Hero Section */
.hero-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 32px 64px;
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(255, 116, 38, 0.25));
}

.hero-title {
  margin: 0;
  font-size: clamp(2.85rem, 5.4vw, 4.45rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: #ffffff;
}

.hero-center {
  width: 100%;
  max-width: 880px;
  margin: 8px auto 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero-lead {
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

.status-pill {
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(16, 18, 24, 0.65);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent);
}

/* macOS Terminal Card */
.terminal-card {
  width: 100%;
  background: var(--glass-bg-strong);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 30px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
  text-align: left;
}

.terminal-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #111111;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 116, 38, 0.32);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.32);
}

.copy-icon {
  width: 14px;
  height: 14px;
}

.terminal-cmd-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  cursor: pointer;
}

.prompt-sign {
  color: var(--accent-bright);
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}

.terminal-cmd-row code {
  color: #f3f5f8;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.terminal-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 20px;
}

.step-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #111111;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.step-copy strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}

.step-copy span {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.4;
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.hero-cta-row {
  margin-top: 4px;
}

.hero-action-btn {
  padding: 14px 30px;
  font-size: 0.98rem;
  font-weight: 600;
  background: rgba(18, 20, 26, 0.72);
}

.hero-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.hero-footnote {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Below-the-Fold Sections */
.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 32px;
  scroll-margin-top: 64px;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 38px;
}

.section-kicker {
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-color: var(--accent-border);
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Interactive Screenshot Showcase */
.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-pill {
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.tab-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.tab-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #fff;
}

.glass-window {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-highlight), 0 28px 80px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.window-caption {
  font-size: 0.84rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screenshot-stage {
  line-height: 0;
}

.screenshot-stage img {
  width: 100%;
  height: auto;
  display: block;
}

/* Architecture Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bento-grid .glass-card {
  padding: 26px;
}

.card-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.bento-grid h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.bento-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Platforms Grid */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.platform-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
}

.badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-verified {
  color: #4ade80;
}

.badge-beta {
  color: #ff9f66;
}

.badge-essential {
  color: #d8b4fe;
}

.platform-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.platform-meta {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.platform-desc {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-bright);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* Footer */
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px 48px;
}

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

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

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-brand strong {
  display: block;
  font-size: 0.96rem;
}

.footer-brand span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-bright);
}

/* Responsive */
@media (max-width: 960px) {
  .platforms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    padding: 16px 18px 0;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 12px;
  }

  .nav-pill {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero-section,
  .content-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .terminal-steps,
  .bento-grid,
  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .terminal-title {
    font-size: 0.75rem;
  }
}
